CVE-2026-70654 libvips: A well-crafted PPM image processed via a custom source could lead to possible heap buffer write overflow
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- UbuntuDebian
Description
libvips is a fast image processing library with low memory needs. Prior to version 8.18.3, applications that define unusual custom libvips sources and use them to process untrusted uncompressed PPM images can trigger a max/min error in vips_source_read_to_memory in libvips/iofuncs/source.c. The function uses VIPS_MAX instead of VIPS_MIN when selecting the remaining read size, allowing up to 4032 bytes to be written beyond the allocated heap buffer and causing memory corruption or a process crash. This issue is fixed in version 8.18.3.
Upgrade path
7 packages: 5 fixed, 1 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/vips(Debian 12) | = 8.14.1-3; = 8.14.1-3+deb12u1; = 8.14.1-3+deb12u2; = 8.14.1-3+deb12u3 +32 more | No fix listed | No fix yet |
| debian/vips(Debian 13) | < 8.16.1-1+deb13u2; = 8.16.1-1; = 8.16.1-1+deb13u1 | 8.16.1-1+deb13u2 | Fixed |
| debian/vips(Debian 14) | < 8.18.3-1; = 8.16.1-1; = 8.16.1-2; = 8.17.3-1 +6 more | 8.18.3-1 | Fixed |
| ubuntu/vips(Ubuntu 22.04) | < 8.12.1-1ubuntu0.1~esm3 | 8.12.1-1ubuntu0.1~esm3 | Fixed |
| ubuntu/vips(Ubuntu 24.04) | < 8.15.1-1.1ubuntu0.1~esm2 | 8.15.1-1.1ubuntu0.1~esm2 | Fixed |
| ubuntu/vips(Ubuntu 26.04) | < 8.18.0-1ubuntu0.1~esm2 | 8.18.0-1ubuntu0.1~esm2 | Fixed |
| libvips | = < 8.18.3 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| libvips | = < 8.18.3 | No fix listed |
| debian/vips(Debian:12) | All versions | No fix listed |
| debian/vips(Debian:12) | = 8.14.1-3 | No fix listed |
| debian/vips(Debian:12) | = 8.14.1-3+deb12u1 | No fix listed |
| debian/vips(Debian:12) | = 8.14.1-3+deb12u2 | No fix listed |
| debian/vips(Debian:12) | = 8.14.1-3+deb12u3 | No fix listed |
| debian/vips(Debian:12) | = 8.14.2-1 | No fix listed |
| debian/vips(Debian:12) | = 8.14.3-1 | No fix listed |
| debian/vips(Debian:12) | = 8.14.4-1 | No fix listed |
| debian/vips(Debian:12) | = 8.14.5-1 | No fix listed |
| debian/vips(Debian:12) | = 8.15.0-1 | No fix listed |
| debian/vips(Debian:12) | = 8.15.0-2 | No fix listed |
| debian/vips(Debian:12) | = 8.15.0~rc2-1 | No fix listed |
| debian/vips(Debian:12) | = 8.15.0~rc2-2 | No fix listed |
| debian/vips(Debian:12) | = 8.15.1-1 | No fix listed |
| debian/vips(Debian:12) | = 8.15.1-1.1 | No fix listed |
| debian/vips(Debian:12) | = 8.15.1-1.1~exp1 | No fix listed |
| debian/vips(Debian:12) | = 8.15.2-1 | No fix listed |
| debian/vips(Debian:12) | = 8.15.2-2 | No fix listed |
| debian/vips(Debian:12) | = 8.15.3-1 | No fix listed |
| debian/vips(Debian:12) | = 8.16.0-1 | No fix listed |
| debian/vips(Debian:12) | = 8.16.0-2 | No fix listed |
| debian/vips(Debian:12) | = 8.16.1-1 | No fix listed |
| debian/vips(Debian:12) | = 8.16.1-2 | No fix listed |
| debian/vips(Debian:12) | = 8.17.3-1 | No fix listed |
Show 28 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/vips(Debian:12) | = 8.17.3-2 | No fix listed |
| debian/vips(Debian:12) | = 8.18.0-1 | No fix listed |
| debian/vips(Debian:12) | = 8.18.0-2 | No fix listed |
| debian/vips(Debian:12) | = 8.18.0-3 | No fix listed |
| debian/vips(Debian:12) | = 8.18.1-1 | No fix listed |
| debian/vips(Debian:12) | = 8.18.2-1 | No fix listed |
| debian/vips(Debian:12) | = 8.18.3-1 | No fix listed |
| debian/vips(Debian:12) | = 8.18.4-1 | No fix listed |
| debian/vips(Debian:12) | = 8.18.5-1 | No fix listed |
| debian/vips(Debian:12) | = 8.18.6-1 | No fix listed |
| debian/vips(Debian:12) | = 8.18.6-2 | No fix listed |
| debian/vips(Debian:12) | = 8.18.7-1 | No fix listed |
| debian/vips(Debian:13) | < 8.16.1-1+deb13u2 | 8.16.1-1+deb13u2 |
| debian/vips(Debian:13) | = 8.16.1-1 | No fix listed |
| debian/vips(Debian:13) | = 8.16.1-1+deb13u1 | No fix listed |
| debian/vips(Debian:14) | < 8.18.3-1 | 8.18.3-1 |
| debian/vips(Debian:14) | = 8.16.1-1 | No fix listed |
| debian/vips(Debian:14) | = 8.16.1-2 | No fix listed |
| debian/vips(Debian:14) | = 8.17.3-1 | No fix listed |
| debian/vips(Debian:14) | = 8.17.3-2 | No fix listed |
| debian/vips(Debian:14) | = 8.18.0-1 | No fix listed |
| debian/vips(Debian:14) | = 8.18.0-2 | No fix listed |
| debian/vips(Debian:14) | = 8.18.0-3 | No fix listed |
| debian/vips(Debian:14) | = 8.18.1-1 | No fix listed |
| debian/vips(Debian:14) | = 8.18.2-1 | No fix listed |
| ubuntu/vips(Ubuntu:22.04) | < 8.12.1-1ubuntu0.1~esm3 | 8.12.1-1ubuntu0.1~esm3 |
| ubuntu/vips(Ubuntu:24.04) | < 8.15.1-1.1ubuntu0.1~esm2 | 8.15.1-1.1ubuntu0.1~esm2 |
| ubuntu/vips(Ubuntu:26.04) | < 8.18.0-1ubuntu0.1~esm2 | 8.18.0-1ubuntu0.1~esm2 |
References
- https://github.com/libvips/libvips/security/advisories/GHSA-rjmm-3qch-m9rg
- https://github.com/libvips/libvips/pull/5038
- https://github.com/libvips/libvips/commit/80e021c6cdda0f80b756c2109d99839c94c03258
- https://github.com/libvips/libvips/releases/tag/v8.18.3
- Red Hat CVE page vendor-advisory
- Red Hat Bugzilla 2520800 issue-tracking
- www.cve.org
- nvd.nist.gov
- Debian Security Tracker CVE-2026-70654 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- USN-8994-1 vendor-advisory
- ENISA EUVD EUVD-2026-63656 third-party-advisory