cbcvebase.
CVE-2024-29510
published 2024-07-03

CVE-2024-29510: Artifex Ghostscript before 10.03.1 allows memory corruption, and SAFER sandbox bypass, via format string injection with a uniprint device.

PriorityP180medium6.3CVSS 3.1
AVLACLPRNUIRSCCHINAN
ITWEXPLOITVulnCheck KEV
Exploited in the wild
EPSS
27.97%
97.9th percentile
Artifex Ghostscript before 10.03.1 allows memory corruption, and SAFER sandbox bypass, via format string injection with a uniprint device.

Affected

9 ranges
VendorProductVersion rangeFixed in
artifexghostscript< 10.03.110.03.1
artifexghostscript>= 0 < 9.53.3~dfsg-7+deb11u79.53.3~dfsg-7+deb11u7
artifexghostscript>= 0 < 10.0.0~dfsg-11+deb12u410.0.0~dfsg-11+deb12u4
artifexghostscript>= 0 < 10.03.1~dfsg~git20240518-110.03.1~dfsg~git20240518-1
artifexghostscript>= 0 < 10.03.1~dfsg~git20240518-110.03.1~dfsg~git20240518-1
artifexghostscript>= 0 < 9.50~dfsg-5ubuntu4.129.50~dfsg-5ubuntu4.12
artifexghostscript>= 0 < 9.55.0~dfsg1-0ubuntu5.79.55.0~dfsg1-0ubuntu5.7
artifexghostscript>= 0 < 10.02.1~dfsg1-0ubuntu7.110.02.1~dfsg1-0ubuntu7.1
debianghostscript< ghostscript 10.0.0~dfsg-11+deb12u4 (bookworm)ghostscript 10.0.0~dfsg-11+deb12u4 (bookworm)

Detection & IOCsextracted from sources · hover to see the quote

otheruniprint device with upWriteComponentCommands format string injection
filenamemalicious EPS file disguised as JPG
  • Detect Ghostscript invocations selecting the uniprint output device on the command line, especially with upWriteComponentCommands or upYMoveCommand parameters containing format specifiers (e.g., %s, %n, %x).
  • Monitor document processing pipelines (e.g., ImageMagick, resume/form handlers) for EPS files submitted with JPG file extensions, as this is the known attack delivery method.
  • Flag Ghostscript processes spawning shell child processes, as successful exploitation results in shell command execution via SAFER sandbox bypass.
  • This vulnerability is reachable via ImageMagick; monitor ImageMagick-invoked Ghostscript processes for anomalous uniprint device usage.
  • The exploit is confirmed to work against Ghostscript versions 10.03.0 and 10.01.2 specifically; prioritize detection on hosts running these exact versions.
  • ·Passing -dSAFER on the Ghostscript command line prevents exploitation by locking security-related variables after initialization. On RHEL 9+, -dSAFER is enabled by default.
  • ·On RHEL 7 and RHEL 8, -dSAFER is NOT enabled by default; operators must explicitly pass it on the command line and must avoid manually selecting the uniprint output device.
  • ·The vulnerability is triggered specifically when uniprint device option strings (upWriteComponentCommands, upYMoveCommand) are not restricted after SAFER activation — configurations that allow post-SAFER device argument changes are vulnerable.

CVSS provenance

nvdv3.16.3MEDIUMCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N
osv6.3MEDIUM
vulncheck6.3MEDIUM
vendor_debian6.3MEDIUM
vendor_redhat6.3MEDIUM
vendor_ubuntu5.5MEDIUM
CVEs like this are exactly what “Exploited This Week” covers.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.