Skip to content
OpenAdvisories
Medium · 4.3 CVE-2025-59800 EUVD-2025-30396GHSA-2mxc-fm8x-qgcp

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 ov…

Published Sep 22, 2025 · Updated Sep 23, 2025 · 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.

Affected products

VendorProductAffectedFixed
Artifex Ghostscript ≤ 10.05.1 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 ghostscript 10.06.0~dfsg-1 —
Debian 13 ghostscript No fix yet —
Debian 12 ghostscript No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 25.10 ghostscript 10.05.0dfsg1-0ubuntu4 —
Ubuntu 24.04 LTS ghostscript 10.02.1~dfsg1-0ubuntu7.8 USN-7782-1
Ubuntu 22.04 LTS ghostscript 9.55.0~dfsg1-0ubuntu5.13 USN-7782-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed ghostscript 10.06.0-2.1 openSUSE-SU-2025:15707-1
openSUSE Leap 16.0 ghostscript 10.06.0-160000.1.1 openSUSE-SU-2026:20592-1
ReleasePackageFixed inAdvisory
Alpine v3.24 ghostscript 10.06.0-r0 —
Alpine v3.23 ghostscript 10.06.0-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 libgs +8 9.56.1-7.amzn2023.0.19 ALAS2023-2025-1218
Amazon Linux 2 libgs +5 9.54.0-9.amzn2.0.13 ALAS2-2025-3018

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling ghostscript +2 10.07.0-r0 —

Advisories 6

References