{"id":"JLSEC-2026-987","aliases":["JLSEC-2026-987"],"related":["CVE-2026-30937","EUVD-2026-10402","GHSA-qpg4-j99f-8xcg"],"kind":"vulnerability","state":"published","title":"ImageMagick has heap buffer overflow in WriteXWDImage due to CARD32 arithmetic overflow in bytes_per_line calculation","summary":"A 32-bit unsigned integer overflow in the XWD (X Windows) encoder can cause an undersized heap buffer allocation. When writing a extremely large image an out of bounds heap write can occur.\n\n```\n=================================================================\n==741961==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x5020000083dc at pc 0x56553b4c4245 bp 0x7ffd9d20fef0 sp 0x7ffd9d20fee0\nWRITE of size 1 at 0x5020000083dc thread T0\n```","summaryFormat":"markdown","summarySource":"jlsec","descriptions":[{"lang":"en","text":"A 32-bit unsigned integer overflow in the XWD (X Windows) encoder can cause an undersized heap buffer allocation. When writing a extremely large image an out of bounds heap write can occur.\n\n```\n=================================================================\n==741961==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x5020000083dc at pc 0x56553b4c4245 bp 0x7ffd9d20fef0 sp 0x7ffd9d20fee0\nWRITE of size 1 at 0x5020000083dc thread T0\n```","format":"markdown","source":"jlsec"}],"published":"2026-07-30T16:02:27.435Z","modified":"2026-07-30T18:35:32.910Z","severity":{"scorer":"Julia Security Advisories","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:H","score":6.1,"rating":"MEDIUM"},"severities":[{"scorer":"Julia Security Advisories","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:H","score":6.1,"rating":"MEDIUM"}],"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/security/advisories/GHSA-qpg4-j99f-8xcg","tags":["web"],"sources":["jlsec"]},{"url":"https://github.com/advisories/GHSA-qpg4-j99f-8xcg","tags":["web"],"sources":["jlsec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-30937","tags":["web"],"sources":["jlsec"]}],"credits":["ylwango613"],"sources":[{"source":"jlsec","name":"Julia Security Advisories","id":"JLSEC-2026-987","url":"https://osv.dev/vulnerability/JLSEC-2026-987","licence":"CC-BY-4.0","modified":"2026-07-30T18:35:32.910Z"}],"updatedAt":"2026-11-25T22:56:26.312Z"}