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

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

Name Vendor Start Version End Version
Imagemagick Imagemagick * 7.1.2 (excluding)
Imagemagick Ubuntu bionic *
Imagemagick Ubuntu esm-apps/focal *
Imagemagick Ubuntu esm-apps/jammy *
Imagemagick Ubuntu esm-infra-legacy/trusty *
Imagemagick Ubuntu esm-infra/bionic *
Imagemagick Ubuntu esm-infra/xenial *
Imagemagick Ubuntu focal *
Imagemagick Ubuntu jammy *
Imagemagick Ubuntu lunar *
Imagemagick Ubuntu mantic *
Imagemagick Ubuntu trusty *
Imagemagick Ubuntu trusty/esm *
Imagemagick Ubuntu upstream *
Imagemagick Ubuntu xenial *

Potential Mitigations

References