CVE-2026-3281libvips bandrank.c vips_bandrank_build heap-based overflow
A vulnerability was detected in libvips 8.19.0. This affects the function vips_bandrank_build of the file libvips/conversion/bandrank.c. Performing a manipulation of the argument index results in heap-based buffer overflow. The attack must be initiated from a local position. The exploit is now public and may be used. The patch is named fd28c5463697712cb0ab116a2c55e4f4d92c4088. It is suggested to install a patch to address this issue.
What to do
Fixed builds are available from Debian: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | vips | Fix pending | UBUNTU-CVE-2026-3281 | |
| Ubuntu 26.04 | vips | Fix pending | UBUNTU-CVE-2026-3281 | |
| Ubuntu 25.10 | vips | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-3281 | |
| Ubuntu 24.04 | vips | Fix pending | UBUNTU-CVE-2026-3281 | |
| Ubuntu 22.04 | vips | Fix pending | UBUNTU-CVE-2026-3281 | |
| Ubuntu 20.04 | vips | Fix pending | UBUNTU-CVE-2026-3281 | |
| Ubuntu 18.04 | vips | Fix pending | UBUNTU-CVE-2026-3281 | |
| Ubuntu 16.04 | vips | Fix pending | UBUNTU-CVE-2026-3281 | |
| Debian 14 | vips | Fixed | 8.18.0-3 | DEBIAN-CVE-2026-3281 |
| Debian 13 | vips | Fixed | 8.16.1-1+deb13u1 | DEBIAN-CVE-2026-3281 |
| Debian 12 | vips | Fixed | 8.14.1-3+deb12u3 | DEBIAN-CVE-2026-3281 |
What the vendor says
As published in the CVE record by VulDB, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- libvips: affected: 8.19.0
Vendor advisories:
- https://github.com/libvips/libvips/pull/4895 (patch)
- https://github.com/libvips/libvips/commit/fd28c5463697712cb0ab116a2c55e4f4d92c4088 (patch)
References
- https://vuldb.com/?id.348010
- https://vuldb.com/?ctiid.348010
- https://vuldb.com/?submit.758861
- https://github.com/libvips/libvips/issues/4878
- https://github.com/libvips/libvips/pull/4895
- https://github.com/libvips/libvips/issues/4878#issue-3944209102
- https://github.com/libvips/libvips/commit/fd28c5463697712cb0ab116a2c55e4f4d92c4088
- https://github.com/libvips/libvips/
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.