{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-62171","id":"CVE-2025-62171","title":"ImageMagick vulnerable to denial of service via integer overflow in BMP decoder on 32-bit systems","description":"ImageMagick is an open source software suite for displaying, converting, and editing raster image files. In ImageMagick versions prior to 7.1.2-7 and 6.9.13-32, an integer overflow vulnerability exists in the BMP decoder on 32-bit systems. The vulnerability occurs in coders/bmp.c when calculating the extent value by multiplying image columns by bits per pixel. On 32-bit systems with size_t of 4 by","descriptionLong":"ImageMagick is an open source software suite for displaying, converting, and editing raster image files. In ImageMagick versions prior to 7.1.2-7 and 6.9.13-32, an integer overflow vulnerability exists in the BMP decoder on 32-bit systems. The vulnerability occurs in coders/bmp.c when calculating the extent value by multiplying image columns by bits per pixel. On 32-bit systems with size_t of 4 bytes, a malicious BMP file with specific dimensions can cause this multiplication to overflow and wrap to zero. The overflow check added to address CVE-2025-57803 is placed after the overflow occurs, making it ineffective. A specially crafted 58-byte BMP file with width set to 536,870,912 and 32 bits per pixel can trigger this overflow, causing the bytes_per_line calculation to become zero. This vulnerability only affects 32-bit builds of ImageMagick where default resource limits for width, height, and area have been manually increased beyond their defaults. 64-bit systems with size_t of 8 bytes are not vulnerable, and systems using default ImageMagick resource limits are not vulnerable. The vulnerability is fixed in versions 7.1.2-7 and 6.9.13-32.","published":"2025-10-17T16:30:27.144Z","updated":"2026-11-11T13:04:27.936360048Z","reserved":"2025-10-07T16:12:03.425Z","status":"Modified","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"github.com"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"OSV"},{"version":"3.1","score":4.4,"vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"GitHub"}],"rating":"medium","products":["ImageMagick"],"affectedProducts":[{"vendor":"ImageMagick","product":"ImageMagick","defaultStatus":null,"versions":[{"version":"< 6.9.13-32","status":"affected"},{"version":">= 7.0.0-0, < 7.1.2-7","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"NuGet","name":"Magick.NET-Q16-AnyCPU","purl":"pkg:nuget/Magick.NET-Q16-AnyCPU","ranges":["<14.9.0"],"fixed":["14.9.0"],"advisory":"GHSA-9pp9-cfwx-54rm"},{"ecosystem":"NuGet","name":"Magick.NET-Q16-HDRI-AnyCPU","purl":"pkg:nuget/Magick.NET-Q16-HDRI-AnyCPU","ranges":["<14.9.0"],"fixed":["14.9.0"],"advisory":"GHSA-9pp9-cfwx-54rm"},{"ecosystem":"NuGet","name":"Magick.NET-Q16-HDRI-x86","purl":"pkg:nuget/Magick.NET-Q16-HDRI-x86","ranges":["<14.9.0"],"fixed":["14.9.0"],"advisory":"GHSA-9pp9-cfwx-54rm"},{"ecosystem":"NuGet","name":"Magick.NET-Q16-x86","purl":"pkg:nuget/Magick.NET-Q16-x86","ranges":["<14.9.0"],"fixed":["14.9.0"],"advisory":"GHSA-9pp9-cfwx-54rm"},{"ecosystem":"NuGet","name":"Magick.NET-Q8-AnyCPU","purl":"pkg:nuget/Magick.NET-Q8-AnyCPU","ranges":["<14.9.0"],"fixed":["14.9.0"],"advisory":"GHSA-9pp9-cfwx-54rm"},{"ecosystem":"NuGet","name":"Magick.NET-Q8-x86","purl":"pkg:nuget/Magick.NET-Q8-x86","ranges":["<14.9.0"],"fixed":["14.9.0"],"advisory":"GHSA-9pp9-cfwx-54rm"}],"cwes":["CWE-190"],"aliases":["GHSA-9pp9-cfwx-54rm"],"references":[{"url":"https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-9pp9-cfwx-54rm","tags":["x_refsource_CONFIRM","Exploit","Vendor Advisory","advisory","web"]},{"url":"https://github.com/ImageMagick/ImageMagick/commit/cea1693e2ded51b4cc91c70c54096cbed1691c00","tags":["x_refsource_MISC","Patch","fix","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00019.html","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/62xxx/CVE-2025-62171.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-62171","tags":["advisory"]},{"url":"https://github.com/ImageMagick/ImageMagick","tags":["package"]},{"url":"https://github.com/dlemstra/Magick.NET/releases/tag/14.9.0","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial"},"epss":0.00809,"epssPercentile":0.57651,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-62171","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-62171","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-62171","ok":true,"note":"6 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-9pp9-cfwx-54rm","ok":true,"note":"GHSA-9pp9-cfwx-54rm"},{"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-62171","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}