CVE-2025-59798: artifex ghostscript Stack-based Buffer Overflow
CVSS: 5.5v3.1MediumModified
AliasesALPINE-CVE-2025-59798UBUNTU-CVE-2025-59798DEBIAN-CVE-2025-59798CGA-2hfx-w4mx-gfx5CGA-542x-v3gr-fvh8CGA-5mc5-mmqf-9fjfCGA-6fw9-7w99-5jggCGA-6wfp-4fmr-5j5cCGA-mhjc-v97h-265xCGA-v35c-4xfc-f2w8CGA-xp3w-cm2v-7fgv
Published 22-09-2025Last modified 03-11-2025
Vulnerability summary
CVE-2025-59798 is a medium (CVSS 5.5) Stack-based Buffer Overflow vulnerability in artifex ghostscript. EPSS estimates a 0.20% chance of exploitation in the next 30 days, higher than 9.7% of scored vulnerabilities.
CVSS score
5.5/10
010
Medium · v3.1 (NVD)EPSS score
0.20%
0%100%
Low · 0.00 pp in 30 daysKEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded
Advisory lineage
Upstream 0 · Downstream 8 · Related 7Timeline
- 22-09-2025PublishedVulnerability first disclosed.
- 03-11-2025Last modifiedVulnerability information updated.
Description
Artifex Ghostscript through 10.05.1 has a stack-based buffer overflow in pdf_write_cmap in devices/vector/gdevpdtw.c.
CVSS metrics
7 scores · 7 sources · 1 versionMedium 5.5Preferred score · NVD (NIST)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HSources7 sources · 4.3–5.5
- CVE.orgCNA4.3MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:NDiffers
- OSV · AlpineEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- OSV · UbuntuEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- OSV · WolfiEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- OSV · ChainguardEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
0.20%
Chance of exploitation in the next 30 days
Percentile
10%
Versus all other CVEs
30-day change
0.00 pp
From 0.20% on 19-09-2026
19-09-202619-10-2026
EPSS score0.20%
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Chainguard4 products
- ghostscript< 10.07.0-r0
- ghostscript-dbg< 10.07.0-r0
- ghostscript-dev< 10.07.0-r0
- ghostscript-doc< 10.07.0-r0
Wolfi4 products
- ghostscript< 10.07.0-r0
- ghostscript-dbg< 10.07.0-r0
- ghostscript-dev< 10.07.0-r0
- ghostscript-doc< 10.07.0-r0
Alpine1 product
- ghostscript< 10.06.0-r0
Artifex1 product
- ghostscript≤ 10.05.1
Debian1 product
- ghostscript< 10.0.0~dfsg-11+deb12u8 | < 10.05.1~dfsg-1+deb13u1 | < 10.06.0~dfsg-1
Ubuntu1 product
- ghostscript< 9.26~dfsg+0-0ubuntu0.16.04.14+esm10 | < 9.26~dfsg+0-0ubuntu0.18.04.18+esm5 | < 9.50~dfsg-5ubuntu4.15+esm2 | < 9.55.0~dfsg1-0ubuntu5.13 | < 10.02.1~dfsg1-0ubuntu7.8 | < 10.05.0dfsg1-0ubuntu4
6 vendors · 12 products