Libvips
libvips: Integer overflow leading to heap buffer overflow leading to possible attacker-controlled mmap-resident write
libvips is a fast image processing library with low memory needs. Prior to version 8.18.3, a crafted many-band TIFF processed through VipsForeignLoadTiff can evade scanline validation in libvips/iofuncs/image.c and cause an integer overflow in vips_image_sanity. The resulting buffer-region calculation can access attacker-controlled negative offsets in mmap-resident allocations, allowing reads or writes of other image data, possible data disclosure through uncompressed .v output, and likely process crashes. Remote code execution has not been demonstrated but cannot be ruled out. This issue is fixed in version 8.18.3.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 8.18.3
Fixed in 8.18.3
Mitigation
Upgrade libvips to 8.18.3 or later.
References
- Vendor advisory github.com/libvips/libvips/security/advisories…
- Patch github.com/libvips/libvips/pull/5012
- Patch github.com/libvips/libvips/commit/c72f50927413…
1 more
- Release notes github.com/libvips/libvips/releases/tag/v8.18.…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.