CVE-2024-46953 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....
HighCVSS 7.8
EPSS 0.39%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
- Technology
- UbuntuDebian
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.
Upgrade path
17 packages: 13 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| alpine/ghostscript(Alpine v3.18) | < 10.04.0-r0 | 10.04.0-r0 | Fixed |
| alpine/ghostscript(Alpine v3.19) | < 10.04.0-r0 | 10.04.0-r0 | Fixed |
| alpine/ghostscript(Alpine v3.20) | < 10.04.0-r0 | 10.04.0-r0 | Fixed |
| alpine/ghostscript(Alpine v3.21) | < 10.04.0-r0 | 10.04.0-r0 | Fixed |
| alpine/ghostscript(Alpine v3.22) | < 10.04.0-r0 | 10.04.0-r0 | Fixed |
| alpine/ghostscript(Alpine v3.23) | < 10.04.0-r0 | 10.04.0-r0 | Fixed |
| alpine/ghostscript(Alpine v3.24) | < 10.04.0-r0 | 10.04.0-r0 | Fixed |
| artifex ghostscript | < 10.04.0; = 10.04.0 | 10.04.0 | Fixed |
| debian/ghostscript(Debian 12) | < 10.0.0~dfsg-11+deb12u6; = 10.0.0~dfsg-11; = 10.0.0~dfsg-11+deb12u1; = 10.0.0~dfsg-11+deb12u2 +3 more | 10.0.0~dfsg-11+deb12u6 | Fixed |
| debian/ghostscript(Debian 13) | < 10.04.0~dfsg-1 | 10.04.0~dfsg-1 | Fixed |
| debian/ghostscript(Debian 14) | < 10.04.0~dfsg-1 | 10.04.0~dfsg-1 | Fixed |
| ubuntu/ghostscript(Ubuntu 22.04) | < 9.55.0~dfsg1-0ubuntu5.10 | 9.55.0~dfsg1-0ubuntu5.10 | Fixed |
| ubuntu/ghostscript(Ubuntu 24.04) | < 10.02.1~dfsg1-0ubuntu7.4 | 10.02.1~dfsg1-0ubuntu7.4 | Fixed |
| debian linux | = 12.0 | No fix listed | Versions listed |
| SUSE linux enterprise high performance computing | = 12.0-sp5 | No fix listed | Versions listed |
| SUSE linux enterprise server | = 12-sp5 | No fix listed | Versions listed |
| SUSE linux enterprise server for sap | = 12-sp5 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/ghostscript(Debian:12) | < 10.0.0~dfsg-11+deb12u6 | 10.0.0~dfsg-11+deb12u6 |
| debian/ghostscript(Debian:12) | = 10.0.0~dfsg-11 | No fix listed |
| debian/ghostscript(Debian:12) | = 10.0.0~dfsg-11+deb12u1 | No fix listed |
| debian/ghostscript(Debian:12) | = 10.0.0~dfsg-11+deb12u2 | No fix listed |
| debian/ghostscript(Debian:12) | = 10.0.0~dfsg-11+deb12u3 | No fix listed |
| debian/ghostscript(Debian:12) | = 10.0.0~dfsg-11+deb12u4 | No fix listed |
| debian/ghostscript(Debian:12) | = 10.0.0~dfsg-11+deb12u5 | No fix listed |
| debian/ghostscript(Debian:13) | < 10.04.0~dfsg-1 | 10.04.0~dfsg-1 |
| debian/ghostscript(Debian:14) | < 10.04.0~dfsg-1 | 10.04.0~dfsg-1 |
| ubuntu/ghostscript(Ubuntu:22.04) | < 9.55.0~dfsg1-0ubuntu5.10 | 9.55.0~dfsg1-0ubuntu5.10 |
| artifex ghostscript | = 10.04.0 | No fix listed |
| alpine/ghostscript(Alpine:v3.18) | < 10.04.0-r0 | 10.04.0-r0 |
| alpine/ghostscript(Alpine:v3.19) | < 10.04.0-r0 | 10.04.0-r0 |
| alpine/ghostscript(Alpine:v3.20) | < 10.04.0-r0 | 10.04.0-r0 |
| alpine/ghostscript(Alpine:v3.21) | < 10.04.0-r0 | 10.04.0-r0 |
| alpine/ghostscript(Alpine:v3.22) | < 10.04.0-r0 | 10.04.0-r0 |
| alpine/ghostscript(Alpine:v3.23) | < 10.04.0-r0 | 10.04.0-r0 |
| alpine/ghostscript(Alpine:v3.24) | < 10.04.0-r0 | 10.04.0-r0 |
| ubuntu/ghostscript(Ubuntu:24.04) | < 10.02.1~dfsg1-0ubuntu7.4 | 10.02.1~dfsg1-0ubuntu7.4 |
| artifex ghostscript | < 10.04.0 | 10.04.0 |
| debian linux | = 12.0 | No fix listed |
| SUSE linux enterprise high performance computing | = 12.0-sp5 | No fix listed |
| SUSE linux enterprise server | = 12-sp5 | No fix listed |
| SUSE linux enterprise server for sap | = 12-sp5 | No fix listed |
References
- Debian Security Tracker CVE-2024-46953 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- USN-7103-1 vendor-advisory
- USN-7138-1 vendor-advisory
- www.cve.org
- bugs.ghostscript.com permissions-required
- github.com product
- www.suse.com third-party-advisory
- cgit.ghostscript.com patch
- lists.debian.org
- security.alpinelinux.org vendor-advisory