# CVE-2025-59800: In Artifex Ghostscript through 10.05.1, ocrbeginpage in devices/gdevpdfocr.c has an integer overflow that leads to a heap-based buffer over…

- 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.18%, higher than 8% 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.310Z
- Weaknesses: CWE-190
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: mitre

## Description

In Artifex Ghostscript through 10.05.1, ocr_begin_page in devices/gdevpdfocr.c has an integer overflow that leads to a heap-based buffer overflow in ocr_line8.

(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=708602> (exploit, issue-tracking)
- <https://cgit.ghostscript.com/cgi-bin/cgit.cgi/ghostpdl.git/commit/?id=176cf0188a2294bc307b8caec876f39412e58350> (patch)

## Sources

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

---

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