{"id":"CVE-2026-3281","summary":"libvips bandrank.c vips_bandrank_build heap-based overflow","details":"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.","modified":"2026-08-12T15:32:25.361378Z","published":"2026-02-27T02:02:10.922Z","database_specific":{"cna_assigner":"VulDB","cwe_ids":["CWE-119","CWE-122"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/3xxx/CVE-2026-3281.json","unresolved_ranges":[{"extracted_events":[{"introduced":"8.19.0"},{"last_affected":"8.19.0"}],"source":"AFFECTED_FIELD"}]},"references":[{"type":"WEB","url":"https://github.com/libvips/libvips/"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/3xxx/CVE-2026-3281.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-3281"},{"type":"ADVISORY","url":"https://vuldb.com/?id.348010"},{"type":"ADVISORY","url":"https://vuldb.com/?submit.758861"},{"type":"REPORT","url":"https://github.com/libvips/libvips/issues/4878"},{"type":"REPORT","url":"https://github.com/libvips/libvips/issues/4878#issue-3944209102"},{"type":"REPORT","url":"https://vuldb.com/?ctiid.348010"},{"type":"FIX","url":"https://github.com/libvips/libvips/commit/fd28c5463697712cb0ab116a2c55e4f4d92c4088"},{"type":"FIX","url":"https://github.com/libvips/libvips/pull/4895"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/libvips/libvips","events":[{"introduced":"0"},{"fixed":"fd28c5463697712cb0ab116a2c55e4f4d92c4088"}],"database_specific":{"source":"REFERENCES"}}],"versions":["v8.18.0","v8.18.0-rc3","v8.18.0-rc2","v8.18.0-rc1","v8.18.0-alpha2","v8.18.0-alpha1","v8.17.0-rc1","v8.17.0","v8.17.0-test4","v8.17.0-test3","v8.17.0-test2","v8.17.0-test1","v8.16.0","v8.16.0-rc2","v8.16.0-rc1","v8.15.0","v8.15.0-rc2","v8.14.0","v8.14.0-rc1","v8.13.0","v8.13.0-rc2","v8.13.0-rc1","v8.13.0-pre1","v8.12.0","v8.12.0-rc1","v8.11.0","v8.11","v8.11.0-rc1","v8.10.6-beta2","v8.10.0","v8.10.0-rc2","v8.10.0-rc1","v8.10.0-beta2","v8.10.0-beta1","v8.9.0","v8.9.0-rc4","v8.9.0-rc3","v8.9.0-rc2","v8.9.0-rc1","v8.9.0-beta2","v8.9.0-beta1","v8.9.0-alpha1","v8.8.0-rc3","v8.8.0","v8.8.0-rc2","v8.8.0-rc1","v8.7.0","v8.7.0-rc3","v8.7.0-rc2","v8.7.0-rc1","v8.7.0-alpha2","v8.6.0","v8.6.0-beta2","v8.6.0-beta1","v8.6.0-alpha2","v8.6.0-alpha1","v8.5.3","v8.5.2","v8.5.1","v8.3.0","v8.2.2","v8.1","v8.0-beta","v7.28.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-3281.json","vanir_signatures_modified":"2026-08-12T15:32:25Z","vanir_signatures":[{"target":{"file":"libvips/conversion/bandrank.c","function":"vips_bandrank_build"},"deprecated":false,"digest":{"function_hash":"64737474583627862420267642810450278","length":819},"id":"CVE-2026-3281-d055aac2","signature_type":"Function","signature_version":"v1","source":"https://github.com/libvips/libvips/commit/fd28c5463697712cb0ab116a2c55e4f4d92c4088"},{"id":"CVE-2026-3281-e3939894","signature_type":"Line","signature_version":"v1","source":"https://github.com/libvips/libvips/commit/fd28c5463697712cb0ab116a2c55e4f4d92c4088","target":{"file":"libvips/conversion/bandrank.c"},"deprecated":false,"digest":{"line_hashes":["269942529069610671195324525812446997803","10702238698644525995171409682350402141","25405986217839980413399567908813300936","300714864125365666452886631192331693202"],"threshold":0.9}}]}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P"}]}