CVEfocus › CVE database › CVE-2024-46953

CVE-2024-46953

CVSS 7.8 HighEPSS 0.4% (higher than 30% of CVEs)Published 2024-11-10Updated 2025-11-03Assigner: mitre

An issue was discovered in base/gsdevice.c in Artifex Ghostscript before 10.04.0. An integer overflow when parsing the filename format string (for the output filename) results in path truncation, and possible path traversal and code execution.

CWE-190

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

53Fixed
2Fix pending
7Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04ghostscriptFixed10.02.1~dfsg1-0ubuntu7.4UBUNTU-CVE-2024-46953
Ubuntu 22.04ghostscriptFixed9.55.0~dfsg1-0ubuntu5.10UBUNTU-CVE-2024-46953
Ubuntu 20.04ghostscriptFixed9.50~dfsg-5ubuntu4.14UBUNTU-CVE-2024-46953
Ubuntu 18.04ghostscriptFix pending9.26~dfsg+0-0ubuntu0.18.04.18+esm3 (Ubuntu Pro)UBUNTU-CVE-2024-46953
Ubuntu 16.04ghostscriptFix pending9.26~dfsg+0-0ubuntu0.16.04.14+esm8 (Ubuntu Pro)UBUNTU-CVE-2024-46953
Debian 14ghostscriptFixed10.04.0~dfsg-1DEBIAN-CVE-2024-46953
Debian 13ghostscriptFixed10.04.0~dfsg-1DEBIAN-CVE-2024-46953
Debian 12ghostscriptFixed10.0.0~dfsg-11+deb12u6DEBIAN-CVE-2024-46953
Red Hat Enterprise Linux 10ghostscriptFixed0:10.02.1-15.el10_0RHSA-2025:7499
Red Hat Enterprise Linux 10ghostscript-docFixed0:10.02.1-15.el10_0RHSA-2025:7499
Red Hat Enterprise Linux 10ghostscript-tools-dvipdfFixed0:10.02.1-15.el10_0RHSA-2025:7499
Red Hat Enterprise Linux 10ghostscript-tools-fontsFixed0:10.02.1-15.el10_0RHSA-2025:7499
Red Hat Enterprise Linux 10ghostscript-tools-printingFixed0:10.02.1-15.el10_0RHSA-2025:7499
Red Hat Enterprise Linux 10libgsFixed0:10.02.1-15.el10_0RHSA-2025:7499
Red Hat Enterprise Linux 10libgs-develFixed0:10.02.1-15.el10_0RHSA-2025:7499
Red Hat Enterprise Linux 9ghostscriptFixed0:9.54.0-18.el9_6RHSA-2025:7422
Red Hat Enterprise Linux 9ghostscript-docFixed0:9.54.0-18.el9_6RHSA-2025:7422
Red Hat Enterprise Linux 9ghostscript-tools-dvipdfFixed0:9.54.0-18.el9_6RHSA-2025:7422
Red Hat Enterprise Linux 9ghostscript-tools-fontsFixed0:9.54.0-18.el9_6RHSA-2025:7422
Red Hat Enterprise Linux 9ghostscript-tools-printingFixed0:9.54.0-18.el9_6RHSA-2025:7422
Red Hat Enterprise Linux 9ghostscript-x11Fixed0:9.54.0-18.el9_6RHSA-2025:7422
Red Hat Enterprise Linux 9libgsFixed0:9.54.0-18.el9_6RHSA-2025:7422
Red Hat Enterprise Linux 9libgs-develFixed0:9.54.0-18.el9_6RHSA-2025:7422
Red Hat Enterprise Linux 8ghostscriptFixed
Will not fix
0:9.27-16.el8_10RHSA-2025:4362
Red Hat Enterprise Linux 8ghostscript-docFixed
Will not fix
0:9.27-16.el8_10RHSA-2025:4362
Red Hat Enterprise Linux 8ghostscript-tools-dvipdfFixed
Will not fix
0:9.27-16.el8_10RHSA-2025:4362
Red Hat Enterprise Linux 8ghostscript-tools-fontsFixed
Will not fix
0:9.27-16.el8_10RHSA-2025:4362
Red Hat Enterprise Linux 8ghostscript-tools-printingFixed
Will not fix
0:9.27-16.el8_10RHSA-2025:4362
Red Hat Enterprise Linux 8ghostscript-x11Fixed
Will not fix
0:9.27-16.el8_10RHSA-2025:4362
Red Hat Enterprise Linux 8libgsFixed
Will not fix
0:9.27-16.el8_10RHSA-2025:4362
Red Hat Enterprise Linux 8libgs-develFixed
Will not fix
0:9.27-16.el8_10RHSA-2025:4362
Red Hat Enterprise Linux 7ghostscriptWill not fix
Out of support scope
Red Hat Enterprise Linux 7ghostscript-cupsWill not fix
Out of support scope
Red Hat Enterprise Linux 7ghostscript-develWill not fix
Out of support scope
Red Hat Enterprise Linux 7ghostscript-docWill not fix
Out of support scope
Red Hat Enterprise Linux 7ghostscript-gtkWill not fix
Out of support scope
Red Hat Enterprise Linux 7libgsWill not fix
Out of support scope
Red Hat Enterprise Linux 7libgs-develWill not fix
Out of support scope
AlmaLinux 9ghostscriptFixed9.54.0-18.el9_6ALSA-2025:7422
AlmaLinux 9ghostscript-docFixed9.54.0-18.el9_6ALSA-2025:7422
AlmaLinux 9ghostscript-tools-dvipdfFixed9.54.0-18.el9_6ALSA-2025:7422
AlmaLinux 9ghostscript-tools-fontsFixed9.54.0-18.el9_6ALSA-2025:7422
AlmaLinux 9ghostscript-tools-printingFixed9.54.0-18.el9_6ALSA-2025:7422
AlmaLinux 9ghostscript-x11Fixed9.54.0-18.el9_6ALSA-2025:7422
AlmaLinux 9libgsFixed9.54.0-18.el9_6ALSA-2025:7422
AlmaLinux 9libgs-develFixed9.54.0-18.el9_6ALSA-2025:7422
AlmaLinux 8ghostscriptFixed9.27-16.el8_10ALSA-2025:4362
AlmaLinux 8ghostscript-docFixed9.27-16.el8_10ALSA-2025:4362
AlmaLinux 8ghostscript-tools-dvipdfFixed9.27-16.el8_10ALSA-2025:4362
AlmaLinux 8ghostscript-tools-fontsFixed9.27-16.el8_10ALSA-2025:4362
AlmaLinux 8ghostscript-tools-printingFixed9.27-16.el8_10ALSA-2025:4362
AlmaLinux 8ghostscript-x11Fixed9.27-16.el8_10ALSA-2025:4362
AlmaLinux 8libgsFixed9.27-16.el8_10ALSA-2025:4362
AlmaLinux 8libgs-develFixed9.27-16.el8_10ALSA-2025:4362
Rocky Linux 8ghostscriptFixed0:9.27-16.el8_10RLSA-2025:4362
Alpine Linux 3.24ghostscriptFixed10.04.0-r0ALPINE-CVE-2024-46953
Alpine Linux 3.23ghostscriptFixed10.04.0-r0ALPINE-CVE-2024-46953
Alpine Linux 3.22ghostscriptFixed10.04.0-r0ALPINE-CVE-2024-46953
Alpine Linux 3.21ghostscriptFixed10.04.0-r0ALPINE-CVE-2024-46953
Alpine Linux 3.20ghostscriptFixed10.04.0-r0ALPINE-CVE-2024-46953
Alpine Linux 3.19ghostscriptFixed10.04.0-r0ALPINE-CVE-2024-46953
Alpine Linux 3.18ghostscriptFixed10.04.0-r0ALPINE-CVE-2024-46953

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.