{"id":"JLSEC-2026-951","summary":"ImageMagick has Global Buffer Overflow (OOB Read) via Negative Pixel Index in UIL and XPM Writer","details":"The UIL and XPM image encoder do not validate the pixel index value returned by `GetPixelIndex()` before using it as an array subscript. In HDRI builds, `Quantum` is a floating-point type, so pixel index values can be negative. An attacker can craft an image with negative pixel index values to trigger a global buffer overflow read during conversion, leading to information disclosure or a process crash.\n\n```\nREAD of size 1 at 0x55a8823a776e thread T0\n    #0 0x55a880d01e85 in WriteUILImage coders/uil.c:355\n```\n\n```\nREAD of size 1 at 0x55fa1c04c66e thread T0\n    #0 0x55fa1a9ee415 in WriteXPMImage coders/xpm.c:1135\n```","modified":"2026-07-30T18:35:55.945566306Z","published":"2026-07-30T16:02:27.435Z","upstream":["CVE-2026-25898","EUVD-2026-7439","GHSA-vpxv-r9pg-7gpr"],"database_specific":{"license":"CC-BY-4.0","sources":[{"published":"2026-02-24T02:16:01Z","url":"https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-25898","html_url":"https://nvd.nist.gov/vuln/detail/CVE-2026-25898","database_specific":{"status":"Analyzed"},"id":"CVE-2026-25898","imported":"2026-07-30T14:08:45.129Z","modified":"2026-06-17T10:25:24.217Z"},{"id":"GHSA-vpxv-r9pg-7gpr","imported":"2026-07-30T14:10:17.965Z","modified":"2026-02-24T15:39:16Z","published":"2026-02-24T15:39:11Z","url":"https://api.github.com/advisories/GHSA-vpxv-r9pg-7gpr","html_url":"https://github.com/advisories/GHSA-vpxv-r9pg-7gpr"},{"modified":"2026-02-26T15:26:43Z","published":"2026-02-24T01:18:33Z","url":"https://euvdservices.enisa.europa.eu/api/enisaid?id=EUVD-2026-7439","html_url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-7439","id":"EUVD-2026-7439","imported":"2026-07-30T14:08:55.110Z"}]},"references":[{"type":"WEB","url":"https://github.com/ImageMagick/ImageMagick/commit/c9c87dbaba56bf82aebd3392e11f0ffd93709b12"},{"type":"WEB","url":"https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-vpxv-r9pg-7gpr"},{"type":"WEB","url":"https://github.com/advisories/GHSA-vpxv-r9pg-7gpr"},{"type":"WEB","url":"https://github.com/dlemstra/Magick.NET/releases/tag/14.10.3"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-25898"}],"affected":[{"package":{"name":"ImageMagick_jll","ecosystem":"Julia","purl":"pkg:julia/ImageMagick_jll?uuid=c73af94c-d91f-53ed-93a7-00f77d67a9d7"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"7.1.2023+0"}]}],"database_specific":{"source":"https://github.com/JuliaLang/SecurityAdvisories.jl/tree/generated/osv/2026/JLSEC-2026-951.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H"}],"credits":[{"name":"ylwango613","contact":["https://github.com/ylwango613"],"type":"REPORTER"}]}