# CVE-2025-59798: Artifex Ghostscript through 10.05.1 has a stack-based buffer overflow in pdfwritecmap in devices/vector/gdevpdtw.c.

- Severity: Medium 4.3 (CVSS:3.1, scored by mitre) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 12% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-09-22T00:00:00.000Z
- Modified: 2026-06-17T09:46:44.060Z
- Weaknesses: CWE-121
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: mitre

## Description

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

(As written by CVE List.)

## Affected

- Artifex Ghostscript: up to 10.05.1

## Every score

- mitre: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://bugs.ghostscript.com/show_bug.cgi?id=708539> (exploit, issue-tracking)
- <https://cgit.ghostscript.com/cgi-bin/cgit.cgi/ghostpdl.git/commit/?id=0cae41b23a9669e801211dd4cf97b6dadd6dbdd7> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00010.html>

## Sources

- CVE List: [CVE-2025-59798](https://www.cve.org/CVERecord?id=CVE-2025-59798), CVE Terms of Use, modified 2025-11-03
- NVD: [CVE-2025-59798](https://nvd.nist.gov/vuln/detail/CVE-2025-59798), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-59798 · Whole record: https://cve.day/CVE-2025-59798.json · Rebuilt by cve.day 2026-11-25T22:59:04.908Z
