# CVE-2023-5341: Imagemagick: heap use-after-free in coders/bmp.c

- Priority: **Routine**
- Reason: Not severe (CVSS 6.2, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2023-11-19 · Modified: 2026-11-05
- Aliases: SUSE-SU-2023:4049-1, SUSE-SU-2023:4050-1, UBUNTU-CVE-2023-5341, USN-6621-1, DEBIAN-CVE-2023-5341, CGA-f58v-5mm2-84j6, CGA-pcmr-58hj-cp6w, SUSE-SU-2023:4008-1, openSUSE-SU-2024:13298-1, CGA-6v89-42wx-qr87, CGA-r2cp-hgj5-r7cm, ALPINE-CVE-2023-5341
- Record: https://cvemate.com/vulnerability/CVE-2023-5341 · JSON: https://cvemate.com/vulnerability/CVE-2023-5341/json

## Description

```text
A heap use-after-free flaw was found in coders/bmp.c in ImageMagick.
```

## Signals

- CVSS: 6.2 medium (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.48%, percentile 43.054%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine imagemagick (Alpine Linux): \< 7.1.1.13-r1 \| \< 7.1.1.21-r0
- chainguard imagemagick-6 (Chainguard): All versions (No fix recorded)
- chainguard imagemagick-7 (Chainguard): All versions (No fix recorded)
- wolfi imagemagick-7 (Wolfi): All versions (No fix recorded)
- debian imagemagick (Debian): \< 8:6.9.11.60+dfsg-1.6+deb12u1 \| \< 8:6.9.12.98+dfsg1-2
- ubuntu imagemagick (Ubuntu): \< 8:6.7.7.10-6ubuntu3.13+esm7 \| \< 8:6.8.9.9-7ubuntu5.16+esm10 \| \< 8:6.9.7.4+dfsg-16ubuntu6.15+esm3 \| \< 8:6.9.10.23+dfsg-2.1ubuntu11.9+esm2 \| \< 8:6.9.11.60+dfsg-1.3ubuntu0.22.04.3+esm3
- fedoraproject extra\_packages\_for\_enterprise\_linux: 8.0
- fedoraproject fedora: 38
- imagemagick imagemagick: \< 7.1.2
- opensuse ImageMagick&distro=openSUSE Leap 15.4 (openSUSE): \< 7.0.7.34-150200.10.57.1 \| \< 7.1.0.9-150400.6.27.1
- opensuse ImageMagick&distro=openSUSE Leap 15.5 (openSUSE): \< 7.1.0.9-150400.6.27.1
- opensuse ImageMagick&distro=openSUSE Tumbleweed (openSUSE): \< 7.1.1.19-1.1
- suse ImageMagick&distro=SUSE Linux Enterprise Module for Desktop Applications 15 SP4 (SUSE Linux Enterprise): \< 7.1.0.9-150400.6.27.1
- suse ImageMagick&distro=SUSE Linux Enterprise Module for Desktop Applications 15 SP5 (SUSE Linux Enterprise): \< 7.1.0.9-150400.6.27.1
- suse ImageMagick&distro=SUSE Linux Enterprise Module for Development Tools 15 SP4 (SUSE Linux Enterprise): \< 7.1.0.9-150400.6.27.1
- suse ImageMagick&distro=SUSE Linux Enterprise Module for Development Tools 15 SP5 (SUSE Linux Enterprise): \< 7.1.0.9-150400.6.27.1
- suse ImageMagick&distro=SUSE Linux Enterprise Server 12 SP5 (SUSE Linux Enterprise): \< 6.8.8.1-71.201.1
- suse ImageMagick&distro=SUSE Linux Enterprise Server for SAP Applications 12 SP5 (SUSE Linux Enterprise): \< 6.8.8.1-71.201.1
- suse ImageMagick&distro=SUSE Linux Enterprise Software Development Kit 12 SP5 (SUSE Linux Enterprise): \< 6.8.8.1-71.201.1
- suse ImageMagick&distro=SUSE Linux Enterprise Workstation Extension 12 SP5 (SUSE Linux Enterprise): \< 6.8.8.1-71.201.1

## References

- <https://access.redhat.com/security/cve/CVE-2023-5341>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2241774>
- <https://github.com/ImageMagick/ImageMagick/commit/aa673b2e4defc7cad5bec16c4fc8324f71e531f1>
- <https://lists.debian.org/debian-lts-announce/2024/02/msg00007.html>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LICYTADFJAFPZW3Y2MKNCJIUYODPAG4L/>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/YAULDP3GG5KI3XITQ5XSMRSILCBZS2VK/>
- <https://www.suse.com/support/update/announcement/2023/suse-su-20234049-1/>
- <https://bugzilla.suse.com/1215939>
- <https://www.suse.com/security/cve/CVE-2023-5341>
- <https://www.suse.com/support/update/announcement/2023/suse-su-20234050-1/>
- <https://ubuntu.com/security/CVE-2023-5341>
- <https://ubuntu.com/security/notices/USN-6621-1>
- <https://www.cve.org/CVERecord?id=CVE-2023-5341>
- <https://security-tracker.debian.org/tracker/CVE-2023-5341>
- <https://access.redhat.com/downloads/content/package-browser/>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/5xxx/CVE-2023-5341.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2023-5341>
- <https://www.suse.com/support/update/announcement/2023/suse-su-20234008-1/>
- <https://security.alpinelinux.org/vuln/CVE-2023-5341>

---

Data as of 2026-12-05T05:21:22.826Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
