CVE Vulnerabilities

CVE-2023-5341

Use After Free

Published: Nov 19, 2023 | Modified: Feb 07, 2025
CVSS 3.x
5.5
MEDIUM
Source:
NVD
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS 2.x
RedHat/V2
RedHat/V3
6.2 MODERATE
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

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

Weakness

The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory “belongs” to the code that operates on the new pointer.

Affected Software

NameVendorStart VersionEnd Version
ImagemagickImagemagick*7.1.2 (excluding)
ImagemagickUbuntubionic*
ImagemagickUbuntuesm-apps/focal*
ImagemagickUbuntuesm-apps/jammy*
ImagemagickUbuntuesm-infra-legacy/trusty*
ImagemagickUbuntuesm-infra/bionic*
ImagemagickUbuntuesm-infra/xenial*
ImagemagickUbuntufocal*
ImagemagickUbuntujammy*
ImagemagickUbuntulunar*
ImagemagickUbuntumantic*
ImagemagickUbuntutrusty*
ImagemagickUbuntutrusty/esm*
ImagemagickUbuntuupstream*
ImagemagickUbuntuxenial*

Potential Mitigations

References