{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-66628","id":"CVE-2025-66628","title":"ImageMagick is vulnerable to an Integer Overflow in TIM decoder leading to out of bounds read (32-bit only)","description":"ImageMagick is a software suite to create, edit, compose, or convert bitmap images. In versions 7.1.2-9 and prior, the TIM (PSX TIM) image parser contains a critical integer overflow vulnerability in its ReadTIMImage function (coders/tim.c). The code reads width and height (16-bit values) from the file header and calculates image_size = 2 * width * height without checking for overflow. On 32-bit s","descriptionLong":"ImageMagick is a software suite to create, edit, compose, or convert bitmap images. In versions 7.1.2-9 and prior, the TIM (PSX TIM) image parser contains a critical integer overflow vulnerability in its ReadTIMImage function (coders/tim.c). The code reads width and height (16-bit values) from the file header and calculates image_size = 2 * width * height without checking for overflow. On 32-bit systems (or where size_t is 32-bit), this calculation can overflow if width and height are large (e.g., 65535), wrapping around to a small value. This results in a small heap allocation via AcquireQuantumMemory and later operations relying on the dimensions can trigger an out of bounds read. This issue is fixed in version 7.1.2-10.","published":"2025-12-10T22:04:49.639Z","updated":"2026-10-28T02:30:32.860459137Z","reserved":"2025-12-05T15:42:44.715Z","status":"Analyzed","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"high","source":"GitHub_M"},"metrics":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"high","source":"GitHub_M"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"high","source":"github.com"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"high","source":"OSV"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"high","source":"GitHub"}],"rating":"high","products":["ImageMagick"],"affectedProducts":[{"vendor":"ImageMagick","product":"ImageMagick","defaultStatus":null,"versions":[{"version":"< 7.1.2-10","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"NuGet","name":"Magick.NET-Q16-AnyCPU","purl":"pkg:nuget/Magick.NET-Q16-AnyCPU","ranges":["<14.10.0"],"fixed":["14.10.0"],"advisory":"GHSA-6hjr-v6g4-3fm8"},{"ecosystem":"NuGet","name":"Magick.NET-Q16-HDRI-AnyCPU","purl":"pkg:nuget/Magick.NET-Q16-HDRI-AnyCPU","ranges":["<14.10.0"],"fixed":["14.10.0"],"advisory":"GHSA-6hjr-v6g4-3fm8"},{"ecosystem":"NuGet","name":"Magick.NET-Q16-HDRI-x86","purl":"pkg:nuget/Magick.NET-Q16-HDRI-x86","ranges":["<14.10.0"],"fixed":["14.10.0"],"advisory":"GHSA-6hjr-v6g4-3fm8"},{"ecosystem":"NuGet","name":"Magick.NET-Q16-x86","purl":"pkg:nuget/Magick.NET-Q16-x86","ranges":["<14.10.0"],"fixed":["14.10.0"],"advisory":"GHSA-6hjr-v6g4-3fm8"},{"ecosystem":"NuGet","name":"Magick.NET-Q8-AnyCPU","purl":"pkg:nuget/Magick.NET-Q8-AnyCPU","ranges":["<14.10.0"],"fixed":["14.10.0"],"advisory":"GHSA-6hjr-v6g4-3fm8"},{"ecosystem":"NuGet","name":"Magick.NET-Q8-x86","purl":"pkg:nuget/Magick.NET-Q8-x86","ranges":["<14.10.0"],"fixed":["14.10.0"],"advisory":"GHSA-6hjr-v6g4-3fm8"}],"cwes":["CWE-125"],"aliases":["GHSA-6hjr-v6g4-3fm8"],"references":[{"url":"https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-6hjr-v6g4-3fm8","tags":["x_refsource_CONFIRM","Vendor Advisory","advisory","web"]},{"url":"https://github.com/dlemstra/Magick.NET/commit/2dfa08e15cfd11016a79615994787b14f9048b1c","tags":["x_refsource_MISC","Patch","fix","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/66xxx/CVE-2025-66628.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-66628","tags":["advisory"]},{"url":"https://github.com/ImageMagick/ImageMagick","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial"},"epss":0.00551,"epssPercentile":0.46868,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-66628","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-66628","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-66628","ok":true,"note":"6 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-6hjr-v6g4-3fm8","ok":true,"note":"GHSA-6hjr-v6g4-3fm8"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-66628","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}