# CVE-2025-59798

- Priority: **Routine**
- Reason: Not severe (CVSS 4.3, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-09-22 · Modified: 2025-11-03
- Aliases: ALPINE-CVE-2025-59798, UBUNTU-CVE-2025-59798, DEBIAN-CVE-2025-59798, CGA-2hfx-w4mx-gfx5, CGA-542x-v3gr-fvh8, CGA-5mc5-mmqf-9fjf, CGA-6fw9-7w99-5jgg, CGA-6wfp-4fmr-5j5c, CGA-mhjc-v97h-265x, CGA-v35c-4xfc-f2w8, CGA-xp3w-cm2v-7fgv
- Record: https://cvemate.com/vulnerability/CVE-2025-59798 · JSON: https://cvemate.com/vulnerability/CVE-2025-59798/json

## Description

```text
Artifex Ghostscript through 10.05.1 has a stack-based buffer overflow in pdf_write_cmap in devices/vector/gdevpdtw.c.
```

## Signals

- CVSS: 5.5 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.214%, percentile 12.399%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine ghostscript (Alpine Linux): \< 10.08.0-r0 \| \< 10.06.0-r0
- chainguard ghostscript (Chainguard): \< 10.07.0-r0
- chainguard ghostscript-dbg (Chainguard): \< 10.07.0-r0
- chainguard ghostscript-dev (Chainguard): \< 10.07.0-r0
- chainguard ghostscript-doc (Chainguard): \< 10.07.0-r0
- wolfi ghostscript (Wolfi): \< 10.07.0-r0
- wolfi ghostscript-dbg (Wolfi): \< 10.07.0-r0
- wolfi ghostscript-dev (Wolfi): \< 10.07.0-r0
- wolfi ghostscript-doc (Wolfi): \< 10.07.0-r0
- artifex ghostscript: ≤ 10.05.1
- debian ghostscript (Debian): \< 10.0.0~dfsg-11+deb12u8 \| \< 10.05.1~dfsg-1+deb13u1 \| \< 10.06.0~dfsg-1
- ubuntu ghostscript (Ubuntu): \< 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

## References

- <https://bugs.ghostscript.com/show_bug.cgi?id=708539>
- <https://cgit.ghostscript.com/cgi-bin/cgit.cgi/ghostpdl.git/commit/?id=0cae41b23a9669e801211dd4cf97b6dadd6dbdd7>
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00010.html>
- <https://security.alpinelinux.org/vuln/CVE-2025-59798>
- <https://ubuntu.com/security/CVE-2025-59798>
- <https://www.cve.org/CVERecord?id=CVE-2025-59798>
- <https://ubuntu.com/security/notices/USN-7782-1>
- <https://ubuntu.com/security/notices/USN-7904-1>
- <https://security-tracker.debian.org/tracker/CVE-2025-59798>

---

Data as of 2026-12-05T02:54:52.802Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
