CVE-2025-57803
published high CVSS 3.1 · 7.5ImageMagick (WriteBMPImage): 32-bit integer overflow when writing BMP scanline stride → heap buffer overflow
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| ImageMagick | — | ImageMagick< 7.1.2-2 · < 6.9.13-28 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Oracle Linux | 7 | ImageMagickx86_64 | Advisory build | 0:6.9.10.68-7.0.3.el7_9 | ELSA-2025-16313 |
| Red Hat Enterprise Linux | RHEL-7 | ImageMagicki686 | Advisory build | 6.9.10.68-9.el7_9 | RHSA-2025:16313 |
| SUSE / openSUSE | SLE-15-SP3 | ImageMagickaarch64 | Advisory build | 7.0.7.34-150200.10.62.1 | SUSE-SU-2025:03151-1 |
| Alpine Linux | edge | imagemagick | Fixed | 7.1.2.8-r0 | Package fix record |
| Debian | bookworm | imagemagick | Advisory build | 8:6.9.11.60+dfsg-1.6+deb12u4 | DSA-5997-1 |
Show 95 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Red Hat Enterprise Linux | RHEL-7 | ImageMagickppc | Advisory build | 6.9.10.68-9.el7_9 | RHSA-2025:16313 |
| Red Hat Enterprise Linux | RHEL-7 | ImageMagickppc64 | Advisory build | 6.9.10.68-9.el7_9 | RHSA-2025:16313 |
| Red Hat Enterprise Linux | RHEL-7 | ImageMagickppc64le | Advisory build | 6.9.10.68-9.el7_9 | RHSA-2025:16313 |
| Red Hat Enterprise Linux | RHEL-7 | ImageMagicks390 | Advisory build | 6.9.10.68-9.el7_9 | RHSA-2025:16313 |
| Red Hat Enterprise Linux | RHEL-7 | ImageMagicks390x | Advisory build | 6.9.10.68-9.el7_9 | RHSA-2025:16313 |
| Red Hat Enterprise Linux | RHEL-7 | ImageMagicksrc | Advisory build | 6.9.10.68-9.el7_9 | RHSA-2025:16313 |
| Red Hat Enterprise Linux | RHEL-7 | ImageMagickx86_64 | Advisory build | 6.9.10.68-9.el7_9 | RHSA-2025:16313 |
| SUSE / openSUSE | SLE-15-SP3 | ImageMagickppc64le | Advisory build | 7.0.7.34-150200.10.62.1 | SUSE-SU-2025:03151-1 |
| SUSE / openSUSE | SLE-15-SP3 | ImageMagicks390x | Advisory build | 7.0.7.34-150200.10.62.1 | SUSE-SU-2025:03151-1 |
| SUSE / openSUSE | SLE-15-SP3 | ImageMagickx86_64 | Advisory build | 7.0.7.34-150200.10.62.1 | SUSE-SU-2025:03151-1 |
| SUSE / openSUSE | SLE-15-SP4 | ImageMagickaarch64 | Advisory build | 7.1.0.9-150400.6.40.1 | SUSE-SU-2025:03152-1 |
| SUSE / openSUSE | SLE-15-SP4 | ImageMagickppc64le | Advisory build | 7.1.0.9-150400.6.40.1 | SUSE-SU-2025:03152-1 |
| SUSE / openSUSE | SLE-15-SP4 | ImageMagicks390x | Advisory build | 7.1.0.9-150400.6.40.1 | SUSE-SU-2025:03152-1 |
| SUSE / openSUSE | SLE-15-SP4 | ImageMagickx86_64 | Advisory build | 7.1.0.9-150400.6.40.1 | SUSE-SU-2025:03152-1 |
| SUSE / openSUSE | SLE-15-SP5 | ImageMagickaarch64 | Advisory build | 7.1.0.9-150400.6.40.1 | SUSE-SU-2025:03152-1 |
| SUSE / openSUSE | SLE-15-SP5 | ImageMagickppc64le | Advisory build | 7.1.0.9-150400.6.40.1 | SUSE-SU-2025:03152-1 |
| SUSE / openSUSE | SLE-15-SP5 | ImageMagicks390x | Advisory build | 7.1.0.9-150400.6.40.1 | SUSE-SU-2025:03152-1 |
| SUSE / openSUSE | SLE-15-SP5 | ImageMagickx86_64 | Advisory build | 7.1.0.9-150400.6.40.1 | SUSE-SU-2025:03152-1 |
| SUSE / openSUSE | SLE-15-SP6 | ImageMagickaarch64 | Advisory build | 7.1.1.21-150600.3.20.1 | SUSE-SU-2025:03164-1 |
| SUSE / openSUSE | SLE-15-SP6 | ImageMagickppc64le | Advisory build | 7.1.1.21-150600.3.20.1 | SUSE-SU-2025:03164-1 |
| SUSE / openSUSE | SLE-15-SP6 | ImageMagicks390x | Advisory build | 7.1.1.21-150600.3.20.1 | SUSE-SU-2025:03164-1 |
| SUSE / openSUSE | SLE-15-SP6 | ImageMagickx86_64 | Advisory build | 7.1.1.21-150600.3.20.1 | SUSE-SU-2025:03164-1 |
| SUSE / openSUSE | SLE-15-SP7 | ImageMagickaarch64 | Advisory build | 7.1.1.43-150700.3.13.1 | SUSE-SU-2025:03113-1 |
| SUSE / openSUSE | SLE-15-SP7 | ImageMagickppc64le | Advisory build | 7.1.1.43-150700.3.13.1 | SUSE-SU-2025:03113-1 |
| SUSE / openSUSE | SLE-15-SP7 | ImageMagicks390x | Advisory build | 7.1.1.43-150700.3.13.1 | SUSE-SU-2025:03113-1 |
| SUSE / openSUSE | SLE-15-SP7 | ImageMagickx86_64 | Advisory build | 7.1.1.43-150700.3.13.1 | SUSE-SU-2025:03113-1 |
| SUSE / openSUSE | SLE-16 | ImageMagickaarch64 | Advisory build | 7.1.2.0-160000.4.1 | SUSE-SU-2025:21211-1 |
| SUSE / openSUSE | SLE-16 | ImageMagickppc64le | Advisory build | 7.1.2.0-160000.4.1 | SUSE-SU-2025:21211-1 |
| SUSE / openSUSE | SLE-16 | ImageMagicks390x | Advisory build | 7.1.2.0-160000.4.1 | SUSE-SU-2025:21211-1 |
| SUSE / openSUSE | SLE-16 | ImageMagickx86_64 | Advisory build | 7.1.2.0-160000.4.1 | SUSE-SU-2025:21211-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | ImageMagickaarch64 | Advisory build | 7.1.1.21-150600.3.20.1 | SUSE-SU-2025:03164-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | ImageMagickppc64le | Advisory build | 7.1.1.21-150600.3.20.1 | SUSE-SU-2025:03164-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | ImageMagicks390x | Advisory build | 7.1.1.21-150600.3.20.1 | SUSE-SU-2025:03164-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | ImageMagickx86_64 | Advisory build | 7.1.1.21-150600.3.20.1 | SUSE-SU-2025:03164-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | ImageMagickaarch64 | Advisory build | 7.1.2.0-160000.4.1 | OPENSUSE-SU-2025:20162-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | ImageMagickppc64le | Advisory build | 7.1.2.0-160000.4.1 | OPENSUSE-SU-2025:20162-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | ImageMagicks390x | Advisory build | 7.1.2.0-160000.4.1 | OPENSUSE-SU-2025:20162-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | ImageMagickx86_64 | Advisory build | 7.1.2.0-160000.4.1 | OPENSUSE-SU-2025:20162-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ImageMagickaarch64 | Advisory build | 7.1.2.2-2.1 | OPENSUSE-SU-2025:15498-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ImageMagickppc64le | Advisory build | 7.1.2.2-2.1 | OPENSUSE-SU-2025:15498-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ImageMagicks390x | Advisory build | 7.1.2.2-2.1 | OPENSUSE-SU-2025:15498-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ImageMagickx86_64 | Advisory build | 7.1.2.2-2.1 | OPENSUSE-SU-2025:15498-1 |
| Alpine Linux | v3.23 | imagemagick | Fixed | 7.1.2.8-r0 | Package fix record |
| Alpine Linux | v3.24 | imagemagick | Fixed | 7.1.2.8-r0 | Package fix record |
| Debian | bullseye | imagemagick | Advisory build | 8:6.9.11.60+dfsg-1.3+deb11u6 | DLA-4297-1 |
| Debian | trixie | imagemagick | Advisory build | 8:7.1.1.43+dfsg1-1+deb13u2 | DSA-5997-1 |
| Oracle Linux | 7 | ImageMagick-c++x86_64 | Advisory build | 0:6.9.10.68-7.0.3.el7_9 | ELSA-2025-16313 |
| Oracle Linux | 7 | ImageMagick-c++-develx86_64 | Advisory build | 0:6.9.10.68-7.0.3.el7_9 | ELSA-2025-16313 |
| Oracle Linux | 7 | ImageMagick-develx86_64 | Advisory build | 0:6.9.10.68-7.0.3.el7_9 | ELSA-2025-16313 |
| Oracle Linux | 7 | ImageMagick-docx86_64 | Advisory build | 0:6.9.10.68-7.0.3.el7_9 | ELSA-2025-16313 |
| Oracle Linux | 7 | ImageMagick-perlx86_64 | Advisory build | 0:6.9.10.68-7.0.3.el7_9 | ELSA-2025-16313 |
| Red Hat Enterprise Linux | RHEL-7 | ImageMagick-c++i686 | Advisory build | 6.9.10.68-9.el7_9 | RHSA-2025:16313 |
| Red Hat Enterprise Linux | RHEL-7 | ImageMagick-c++ppc | Advisory build | 6.9.10.68-9.el7_9 | RHSA-2025:16313 |
| Red Hat Enterprise Linux | RHEL-7 | ImageMagick-c++ppc64 | Advisory build | 6.9.10.68-9.el7_9 | RHSA-2025:16313 |
| Red Hat Enterprise Linux | RHEL-7 | ImageMagick-c++ppc64le | Advisory build | 6.9.10.68-9.el7_9 | RHSA-2025:16313 |
| Red Hat Enterprise Linux | RHEL-7 | ImageMagick-c++s390 | Advisory build | 6.9.10.68-9.el7_9 | RHSA-2025:16313 |
| Red Hat Enterprise Linux | RHEL-7 | ImageMagick-c++s390x | Advisory build | 6.9.10.68-9.el7_9 | RHSA-2025:16313 |
| Red Hat Enterprise Linux | RHEL-7 | ImageMagick-c++x86_64 | Advisory build | 6.9.10.68-9.el7_9 | RHSA-2025:16313 |
| Red Hat Enterprise Linux | RHEL-7 | ImageMagick-c++-develi686 | Advisory build | 6.9.10.68-9.el7_9 | RHSA-2025:16313 |
| Red Hat Enterprise Linux | RHEL-7 | ImageMagick-c++-develppc | Advisory build | 6.9.10.68-9.el7_9 | RHSA-2025:16313 |
| Red Hat Enterprise Linux | RHEL-7 | ImageMagick-c++-develppc64 | Advisory build | 6.9.10.68-9.el7_9 | RHSA-2025:16313 |
| Red Hat Enterprise Linux | RHEL-7 | ImageMagick-c++-develppc64le | Advisory build | 6.9.10.68-9.el7_9 | RHSA-2025:16313 |
| Red Hat Enterprise Linux | RHEL-7 | ImageMagick-c++-devels390 | Advisory build | 6.9.10.68-9.el7_9 | RHSA-2025:16313 |
| Red Hat Enterprise Linux | RHEL-7 | ImageMagick-c++-devels390x | Advisory build | 6.9.10.68-9.el7_9 | RHSA-2025:16313 |
| Red Hat Enterprise Linux | RHEL-7 | ImageMagick-c++-develx86_64 | Advisory build | 6.9.10.68-9.el7_9 | RHSA-2025:16313 |
| Red Hat Enterprise Linux | RHEL-7 | ImageMagick-debuginfoi686 | Advisory build | 6.9.10.68-9.el7_9 | RHSA-2025:16313 |
| Red Hat Enterprise Linux | RHEL-7 | ImageMagick-debuginfoppc | Advisory build | 6.9.10.68-9.el7_9 | RHSA-2025:16313 |
| Red Hat Enterprise Linux | RHEL-7 | ImageMagick-debuginfoppc64 | Advisory build | 6.9.10.68-9.el7_9 | RHSA-2025:16313 |
| Red Hat Enterprise Linux | RHEL-7 | ImageMagick-debuginfoppc64le | Advisory build | 6.9.10.68-9.el7_9 | RHSA-2025:16313 |
| Red Hat Enterprise Linux | RHEL-7 | ImageMagick-debuginfos390 | Advisory build | 6.9.10.68-9.el7_9 | RHSA-2025:16313 |
| Red Hat Enterprise Linux | RHEL-7 | ImageMagick-debuginfos390x | Advisory build | 6.9.10.68-9.el7_9 | RHSA-2025:16313 |
| Red Hat Enterprise Linux | RHEL-7 | ImageMagick-debuginfox86_64 | Advisory build | 6.9.10.68-9.el7_9 | RHSA-2025:16313 |
| Red Hat Enterprise Linux | RHEL-7 | ImageMagick-develi686 | Advisory build | 6.9.10.68-9.el7_9 | RHSA-2025:16313 |
| Red Hat Enterprise Linux | RHEL-7 | ImageMagick-develppc | Advisory build | 6.9.10.68-9.el7_9 | RHSA-2025:16313 |
| Red Hat Enterprise Linux | RHEL-7 | ImageMagick-develppc64 | Advisory build | 6.9.10.68-9.el7_9 | RHSA-2025:16313 |
| Red Hat Enterprise Linux | RHEL-7 | ImageMagick-develppc64le | Advisory build | 6.9.10.68-9.el7_9 | RHSA-2025:16313 |
| Red Hat Enterprise Linux | RHEL-7 | ImageMagick-devels390 | Advisory build | 6.9.10.68-9.el7_9 | RHSA-2025:16313 |
| Red Hat Enterprise Linux | RHEL-7 | ImageMagick-devels390x | Advisory build | 6.9.10.68-9.el7_9 | RHSA-2025:16313 |
| Red Hat Enterprise Linux | RHEL-7 | ImageMagick-develx86_64 | Advisory build | 6.9.10.68-9.el7_9 | RHSA-2025:16313 |
| Red Hat Enterprise Linux | RHEL-7 | ImageMagick-docppc64 | Advisory build | 6.9.10.68-9.el7_9 | RHSA-2025:16313 |
| Red Hat Enterprise Linux | RHEL-7 | ImageMagick-docppc64le | Advisory build | 6.9.10.68-9.el7_9 | RHSA-2025:16313 |
| Red Hat Enterprise Linux | RHEL-7 | ImageMagick-docs390x | Advisory build | 6.9.10.68-9.el7_9 | RHSA-2025:16313 |
| Red Hat Enterprise Linux | RHEL-7 | ImageMagick-docx86_64 | Advisory build | 6.9.10.68-9.el7_9 | RHSA-2025:16313 |
| Red Hat Enterprise Linux | RHEL-7 | ImageMagick-perlppc64 | Advisory build | 6.9.10.68-9.el7_9 | RHSA-2025:16313 |
| Red Hat Enterprise Linux | RHEL-7 | ImageMagick-perlppc64le | Advisory build | 6.9.10.68-9.el7_9 | RHSA-2025:16313 |
| Red Hat Enterprise Linux | RHEL-7 | ImageMagick-perls390x | Advisory build | 6.9.10.68-9.el7_9 | RHSA-2025:16313 |
| Red Hat Enterprise Linux | RHEL-7 | ImageMagick-perlx86_64 | Advisory build | 6.9.10.68-9.el7_9 | RHSA-2025:16313 |
| SUSE / openSUSE | SLE-12-SP5 | ImageMagick-config-6-SUSEaarch64 | Advisory build | 6.8.8.1-71.212.1 | SUSE-SU-2025:03150-1 |
| SUSE / openSUSE | SLE-12-SP5 | ImageMagick-config-6-SUSEppc64le | Advisory build | 6.8.8.1-71.212.1 | SUSE-SU-2025:03150-1 |
| SUSE / openSUSE | SLE-12-SP5 | ImageMagick-config-6-SUSEs390x | Advisory build | 6.8.8.1-71.212.1 | SUSE-SU-2025:03150-1 |
| SUSE / openSUSE | SLE-12-SP5 | ImageMagick-config-6-SUSEx86_64 | Advisory build | 6.8.8.1-71.212.1 | SUSE-SU-2025:03150-1 |
| SUSE / openSUSE | SLE-12-SP5 | ImageMagick-config-6-upstreamaarch64 | Advisory build | 6.8.8.1-71.212.1 | SUSE-SU-2025:03150-1 |
| SUSE / openSUSE | SLE-12-SP5 | ImageMagick-config-6-upstreamppc64le | Advisory build | 6.8.8.1-71.212.1 | SUSE-SU-2025:03150-1 |
| SUSE / openSUSE | SLE-12-SP5 | ImageMagick-config-6-upstreams390x | Advisory build | 6.8.8.1-71.212.1 | SUSE-SU-2025:03150-1 |
| SUSE / openSUSE | SLE-12-SP5 | ImageMagick-config-6-upstreamx86_64 | Advisory build | 6.8.8.1-71.212.1 | SUSE-SU-2025:03150-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to versions 6.9.13-28 and 7.1.2-2 for ImageMagick's 32-bit build, a 32-bit integer overflow in the BMP encoder’s scanline-stride computation collapses bytes_per_line (stride) to a tiny value while the per-row writer still emits 3 × width bytes for 24-bpp images. The row base pointer advances using the (overflowed) stride, so the first row immediately writes past its slot and into adjacent heap memory with attacker-controlled bytes. This is a classic, powerful primitive for heap corruption in common auto-convert pipelines. This issue has been patched in versions 6.9.13-28 and 7.1.2-2.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| ImageMagick | ImageMagick | < 7.1.2-2 (affected)< 6.9.13-28 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-122 CWE-122: Heap-based Buffer Overflow
- CWE-190 CWE-190: Integer Overflow or Wraparound
References
4Provider assertions
3GitHub_M · cna
ImageMagick (WriteBMPImage): 32-bit integer overflow when writing BMP scanline stride → heap buffer overflow
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- b337d227c8016ad051d2f5ccb3e13868531b91784abf66ed4b35cf37e7044288
- Ingested
- 23 Sep 2026, 08:53:41 UTC
- Source record
- Official CVE record