Vulnerability · Published Apr 7, 2025 · Assigned by GitHub_M

CVE-2025-29769libvips has a potential heap-based buffer overflow when attempting to convert multiband TIFF input to HEIF output

High 8.5

In plain English

A high-severity heap buffer overflow in libvips from libvips. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 22% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)8.5High
Exploit odds (30 days)0.3%top 78.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12vips8.14.1-3+deb12u2DSA-5915-1
Debian:12vips8.14.1-3+deb12u2DEBIAN-CVE-2025-29769
Debian:13vips8.16.1-1DEBIAN-CVE-2025-29769
Debian:14vips8.16.1-1DEBIAN-CVE-2025-29769
Ubuntu:25.10vipsno fix listedUBUNTU-CVE-2025-29769

Affected products (as reported)

VendorProductVersions
libvips libvips < 8.16.1

Weakness: CWE-122 · Vector: CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

References