CVE-2026-6491 Details
Description
A security vulnerability has been detected in libvips up to 8.18.2. The affected element is the function im_minpos_vec of the file libvips/deprecated/vips7compat.c of the component nip2 Handler. Such manipulation of the argument n leads to heap-based buffer overflow. An attack has to be approached locally. The exploit has been disclosed publicly and may be used. The vendor confirms that they will "be removing the deprecated area in libvips 8.19".
A heap-based buffer overflow vulnerability has been identified in libvips versions through 8.18.2. The issue arises in the nip2 handler within the deprecated vips7compat.c file, specifically in the im_minpos_vec function. This function calls vips_min to retrieve 'n' minimum positions but then unconditionally copies 'n' elements from the returned arrays. The vips_min function, however, allocates its output arrays based on the actual number of pixels scanned, which can result in the copied data exceeding the allocated buffer size when fewer pixels are present. This vulnerability requires local exploitation.
The vulnerability has been addressed in libvips version 8.19.0, which removes the deprecated functions and the associated vulnerability. Users are advised to update to this version.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Apr 17, 2026CISA-ADP
Assessed Apr 18, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/biniamf/pocs/tree/main/libvips_im_minpos_vec_oob | [email protected] | ExploitTechnical Description |
| https://github.com/libvips/libvips/ | [email protected] | Vendor |
| https://github.com/libvips/libvips/issues/4965 | [email protected] | ExploitIssue TrackingTechnical DescriptionVendor |
| https://github.com/libvips/libvips/issues/4965#issuecomment-4135003499 | [email protected] | ExploitIssue TrackingTechnical DescriptionVendor |
| https://vuldb.com/submit/786994 | [email protected] | ExploitTechnical Description |
| https://vuldb.com/vuln/358035 | [email protected] | AdvisoryExploitPartial Content |
| https://vuldb.com/vuln/358035/cti | [email protected] | Content Wall |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-119 | Improper Restriction of Operations within the Bounds of a Memory Buffer | [email protected] |
| CWE-122 | Heap-based Buffer Overflow | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| libvips | <= 8.18.2 (semver) |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 29, 2026 | Data Remediation | [email protected] |
| Apr 17, 2026 | New CVE Received | [email protected] |
Volerion