Buffer overflow in Libvips
CVE-2025-29769
libvips is a demand-driven, horizontally threaded image processing library. The heifsave operation could incorrectly determine the presence of an alpha channel in an input when it was not possible to determine the colour interpretation, known internally within libvips as "multiband". There aren't many ways to create a "multiband" input, but it is possible with a well-crafted TIFF image. If a "multiband" TIFF input image had 4 channels and HEIF-based output was requested, this led to libvips creating a 3 channel HEIF image without an alpha channel but then attempting to write 4 channels of data. This caused a heap buffer overflow, which could crash the process. This vulnerability is fixed in 8.16.1.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.5 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H.
EPSS exploit prediction
EPSS: 0.003 (18.7th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 19th percentile — 18.7% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.003 · newest: 0.003 · change: +0.000
Affected products
- Libvips — versions < 8.16.1
- Debian Linux — versions 11.0
Weakness classification (CWE)
Public proof-of-concept exploits
References
- github.com/libvips/libvips/security/advisories/GHSA-f8r8-43hh-rghm (Patch, Vendor Advisory)
- github.com/libvips/libvips/pull/4392 (Issue Tracking)
- github.com/libvips/libvips/pull/4394 (Issue Tracking)
- github.com/libvips/libvips/commit/9ab6784f693de50b00fa535b9efbbe9d2cbf71f2 (Patch)
- issues.oss-fuzz.com/issues/396460413 (Exploit, Third Party Advisory, Issue Tracking)
- af854a3a-2127-422b-91ae-364da2661108 (Mailing List, Third Party Advisory)
Frequently asked questions
- What is CVE-2025-29769?
- CVE-2025-29769 is a medium-severity vulnerability in Libvips, classified under Heap-based Buffer Overflow. CVSS score: 5.5/10. Published 2025-04-07.
- How severe is CVE-2025-29769?
- Medium severity. CVSS v3 base score is 5.5 out of 10.
- Is CVE-2025-29769 known to be exploited?
- 1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.