{"id":"JLSEC-2026-987","summary":"ImageMagick has heap buffer overflow in WriteXWDImage due to CARD32 arithmetic overflow in bytes_per_line calculation","details":"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```","modified":"2026-07-30T18:35:32.910194770Z","published":"2026-07-30T16:02:27.435Z","upstream":["CVE-2026-30937","EUVD-2026-10402","GHSA-qpg4-j99f-8xcg"],"database_specific":{"sources":[{"published":"2026-03-10T07:44:57.840Z","url":"https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-30937","html_url":"https://nvd.nist.gov/vuln/detail/CVE-2026-30937","database_specific":{"status":"Analyzed"},"id":"CVE-2026-30937","imported":"2026-07-30T14:08:46.361Z","modified":"2026-06-17T10:33:11.043Z"},{"imported":"2026-07-30T14:09:50.481Z","modified":"2026-03-12T14:16:53Z","published":"2026-03-12T14:16:51Z","url":"https://api.github.com/advisories/GHSA-qpg4-j99f-8xcg","html_url":"https://github.com/advisories/GHSA-qpg4-j99f-8xcg","id":"GHSA-qpg4-j99f-8xcg"},{"modified":"2026-03-10T14:34:52Z","published":"2026-03-09T21:50:15Z","url":"https://euvdservices.enisa.europa.eu/api/enisaid?id=EUVD-2026-10402","html_url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-10402","id":"EUVD-2026-10402","imported":"2026-07-30T14:08:54.685Z"}],"license":"CC-BY-4.0"},"references":[{"type":"WEB","url":"https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-qpg4-j99f-8xcg"},{"type":"WEB","url":"https://github.com/advisories/GHSA-qpg4-j99f-8xcg"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-30937"}],"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-987.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:H"}],"credits":[{"name":"ylwango613","contact":["https://github.com/ylwango613"],"type":"REPORTER"}]}