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

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

Published: 2023-11-19 Last update: 2025-02-07 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2023-5341 is rated Low Risk (37.3/100): CVSS Medium severity, with low exploitation likelihood (EPSS 0.44%). Mandatory action: Monitor for updates and reassess as exploit intelligence or EPSS changes.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Exploit prediction scoring system (EPSS) score for CVE-2023-5341

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-06-15 0.04% 0.44% +0.40%
2 2025-11-21 0.06% 0.04% -0.02%
3 2025-11-18 0.06%

Full EPSS history (7 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2023-5341

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
6.2 3.1 MEDIUM
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H Click to expand
Attack vector (AV:L)
They already need access on the box, or another person has to do something wrong; it’s not a remote drive-by.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:N)
Doesn’t really leak secrets in a meaningful way.
Integrity (I:N)
Data isn’t meaningfully altered or forged.
Availability (A:H)
Could take the service down hard or make it unusable for people who depend on it.
2.5 3.6 [email protected]
5.5 3.1 MEDIUM
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H Click to expand
Attack vector (AV:L)
They already need access on the box, or another person has to do something wrong; it’s not a remote drive-by.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:L)
A normal user session is enough; they don’t have to be admin.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:N)
Doesn’t really leak secrets in a meaningful way.
Integrity (I:N)
Data isn’t meaningfully altered or forged.
Availability (A:H)
Could take the service down hard or make it unusable for people who depend on it.
1.8 3.6 [email protected]

Weakness enumeration for CVE-2023-5341

OS Trackers for CVE-2023-5341

vendor priority summary link
alpine CVE-2023-5341: 1 source package rows (imagemagick); 90 state rows across 6 repos (3.18-community, 3.19-community, 3.20-community, 3.21-community, 3.22-community, edge-community); fixed 31, open 59. https://security.alpinelinux.org/vuln/CVE-2023-5341
debian not yet assigned CVE-2023-5341 not yet assigned priority: Debian including 1 source packages (imagemagick), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 5. https://security-tracker.debian.org/tracker/CVE-2023-5341
gentoo high CVE-2023-5341: 1 GLSA(s) (202405-02), 1 atom(s) (media-gfx/imagemagick); latest impact high. https://bugs.gentoo.org/buglist.cgi?quicksearch=CVE-2023-5341
redhat medium https://access.redhat.com/security/cve/CVE-2023-5341
suse medium CVE-2023-5341 severity moderate: SUSE including 102 source package names (GraphicsMagick, GraphicsMagick-devel, …), 201 product×package rows across 26 product lines (SUSE CaaS Platform 4.0, SUSE Linux Enterprise High Performance Computing 15 SP1-LTSS, … (26 product lines)): Fixed 190, Known Not Affected 11. https://www.suse.com/security/cve/CVE-2023-5341/
ubuntu medium CVE-2023-5341 medium priority: Ubuntu including 1 source packages (imagemagick), 12 status rows across 12 suites (bionic, focal, jammy, lunar, mantic, noble, oracular, plucky, questing, trusty, upstream, xenial): released 6, not-affected 4, ignored 2. https://ubuntu.com/security/CVE-2023-5341

Affected software / configurations for CVE-2023-5341

Vendor Product Version Raw CPE
imagemagick imagemagick < 7.1.2 cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*
fedoraproject extra_packages_for_enterprise_linux 8.0 cpe:2.3:a:fedoraproject:extra_packages_for_enterprise_linux:8.0:*:*:*:*:*:*:*
fedoraproject fedora 38 cpe:2.3:o:fedoraproject:fedora:38:*:*:*:*:*:*:*

References for CVE-2023-5341

cvelogic Threat Intelligence