{"id":"JLSEC-2026-951","aliases":["JLSEC-2026-951"],"related":["CVE-2026-25898","EUVD-2026-7439","GHSA-vpxv-r9pg-7gpr"],"kind":"vulnerability","state":"published","title":"ImageMagick has Global Buffer Overflow (OOB Read) via Negative Pixel Index in UIL and XPM Writer","summary":"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```","summaryFormat":"markdown","summarySource":"jlsec","descriptions":[{"lang":"en","text":"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```","format":"markdown","source":"jlsec"}],"published":"2026-07-30T16:02:27.435Z","modified":"2026-07-30T18:35:55.945Z","severity":{"scorer":"Julia Security Advisories","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","score":9.1,"rating":"CRITICAL"},"severities":[{"scorer":"Julia Security Advisories","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","score":9.1,"rating":"CRITICAL"}],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"7.1.2023+0"}],"ecosystem":"Julia","package":"ImageMagick_jll","purl":"pkg:julia/ImageMagick_jll?uuid=c73af94c-d91f-53ed-93a7-00f77d67a9d7","source":"jlsec"}],"references":[{"url":"https://github.com/ImageMagick/ImageMagick/commit/c9c87dbaba56bf82aebd3392e11f0ffd93709b12","tags":["web"],"sources":["jlsec"]},{"url":"https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-vpxv-r9pg-7gpr","tags":["web"],"sources":["jlsec"]},{"url":"https://github.com/advisories/GHSA-vpxv-r9pg-7gpr","tags":["web"],"sources":["jlsec"]},{"url":"https://github.com/dlemstra/Magick.NET/releases/tag/14.10.3","tags":["web"],"sources":["jlsec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-25898","tags":["web"],"sources":["jlsec"]}],"credits":["ylwango613"],"sources":[{"source":"jlsec","name":"Julia Security Advisories","id":"JLSEC-2026-951","url":"https://osv.dev/vulnerability/JLSEC-2026-951","licence":"CC-BY-4.0","modified":"2026-07-30T18:35:55.945Z"}],"updatedAt":"2026-11-25T22:56:26.301Z"}