Vulnerability · Published Nov 10, 2024 · Assigned by mitre
CVE-2024-46953
High 7.8
In plain English
A high-severity integer overflow in the ghostscript package (AlmaLinux). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 33% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)7.8High
Exploit odds (30 days)0.4%top 66.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | ghostscript | 9.27-16.el8_10 | ALSA-2025:4362 |
| AlmaLinux:9 | ghostscript | 9.54.0-18.el9_6 | ALSA-2025:7422 |
| AlmaLinux:8 | ghostscript-doc | 9.27-16.el8_10 | ALSA-2025:4362 |
| AlmaLinux:9 | ghostscript-doc | 9.54.0-18.el9_6 | ALSA-2025:7422 |
| AlmaLinux:8 | ghostscript-tools-dvipdf | 9.27-16.el8_10 | ALSA-2025:4362 |
| AlmaLinux:9 | ghostscript-tools-dvipdf | 9.54.0-18.el9_6 | ALSA-2025:7422 |
| AlmaLinux:8 | ghostscript-tools-fonts | 9.27-16.el8_10 | ALSA-2025:4362 |
| AlmaLinux:9 | ghostscript-tools-fonts | 9.54.0-18.el9_6 | ALSA-2025:7422 |
| AlmaLinux:8 | ghostscript-tools-printing | 9.27-16.el8_10 | ALSA-2025:4362 |
| AlmaLinux:9 | ghostscript-tools-printing | 9.54.0-18.el9_6 | ALSA-2025:7422 |
| AlmaLinux:8 | ghostscript-x11 | 9.27-16.el8_10 | ALSA-2025:4362 |
| AlmaLinux:9 | ghostscript-x11 | 9.54.0-18.el9_6 | ALSA-2025:7422 |
| AlmaLinux:8 | libgs | 9.27-16.el8_10 | ALSA-2025:4362 |
| AlmaLinux:9 | libgs | 9.54.0-18.el9_6 | ALSA-2025:7422 |
| AlmaLinux:8 | libgs-devel | 9.27-16.el8_10 | ALSA-2025:4362 |
| AlmaLinux:9 | libgs-devel | 9.54.0-18.el9_6 | ALSA-2025:7422 |
| Alpine:v3.20 | ghostscript | 10.04.0-r0 | ALPINE-CVE-2024-46953 |
| Alpine:v3.21 | ghostscript | 10.04.0-r0 | ALPINE-CVE-2024-46953 |
| Alpine:v3.22 | ghostscript | 10.04.0-r0 | ALPINE-CVE-2024-46953 |
| Alpine:v3.23 | ghostscript | 10.04.0-r0 | ALPINE-CVE-2024-46953 |
| Alpine:v3.24 | ghostscript | 10.04.0-r0 | ALPINE-CVE-2024-46953 |
| Debian:12 | ghostscript | 10.0.0~dfsg-11+deb12u6 | DSA-5808-1 |
| Debian:12 | ghostscript | 10.0.0~dfsg-11+deb12u6 | DEBIAN-CVE-2024-46953 |
| Debian:13 | ghostscript | 10.04.0~dfsg-1 | DEBIAN-CVE-2024-46953 |
| Debian:14 | ghostscript | 10.04.0~dfsg-1 | DEBIAN-CVE-2024-46953 |
| Rocky Linux:8 | ghostscript | 0:9.27-16.el8_10 | RLSA-2025:4362 |
| Ubuntu:22.04:LTS | ghostscript | 9.55.0~dfsg1-0ubuntu5.10 | USN-7103-1 |
| Ubuntu:22.04:LTS | ghostscript | 9.55.0~dfsg1-0ubuntu5.10 | UBUNTU-CVE-2024-46953 |
| Ubuntu:24.04:LTS | ghostscript | 10.02.1~dfsg1-0ubuntu7.4 | USN-7103-1 |
| Ubuntu:24.04:LTS | ghostscript | 10.02.1~dfsg1-0ubuntu7.4 | UBUNTU-CVE-2024-46953 |
Affected products (as reported)
Weakness: CWE-190 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
References
- https://bugs.ghostscript.com/show_bug.cgi?id=707793
- https://github.com/ArtifexSoftware/ghostpdl/blob/master/doc/News.html
- https://www.suse.com/support/update/announcement/2024/suse-su-20243942-1/
- https://cgit.ghostscript.com/cgi-bin/cgit.cgi/ghostpdl.git/commit/?id=1f21a45df0fa3abec4cff12951022b192dda3c00
- https://lists.debian.org/debian-lts-announce/2024/11/msg00023.html