CVE-2025-59800

EUVD-2025-30396
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.
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTPrimary
4.3 MEDIUM
LOCAL
LOW
NONE
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N
Base Score
CVSS 3.x
EPSS Score
Percentile: 6%
Affected Products (NVD)
VendorProductVersion
artifexghostscript
𝑥
≤ 10.05.1
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
ghostscript
bookworm
unimportant
bookworm (security)
unimportant
bullseye
unimportant
bullseye (security)
unimportant
forky
10.07.1~dfsg-1
fixed
sid
10.07.1~dfsg-1
fixed
trixie
unimportant
trixie (security)
unimportant
Amazon Linux logo
Amazon Linux Releases
Amazon Package
Release
ghostscript
Amazon Linux 2
0:9.54.0-9.amzn2.0.13
fixed
Amazon Linux 2023
0:9.56.1-7.amzn2023.0.19
fixed
ghostscript-cups
Amazon Linux 2
0:9.54.0-9.amzn2.0.13
fixed
ghostscript-debuginfo
Amazon Linux 2
0:9.54.0-9.amzn2.0.13
fixed
Amazon Linux 2023
0:9.56.1-7.amzn2023.0.19
fixed
ghostscript-debugsource
Amazon Linux 2023
0:9.56.1-7.amzn2023.0.19
fixed
ghostscript-doc
Amazon Linux 2
0:9.54.0-9.amzn2.0.13
fixed
Amazon Linux 2023
0:9.56.1-7.amzn2023.0.19
fixed
ghostscript-gtk
Amazon Linux 2
0:9.54.0-9.amzn2.0.13
fixed
Amazon Linux 2023
0:9.56.1-7.amzn2023.0.19
fixed
ghostscript-gtk-debuginfo
Amazon Linux 2023
0:9.56.1-7.amzn2023.0.19
fixed
ghostscript-tools-dvipdf
Amazon Linux 2023
0:9.56.1-7.amzn2023.0.19
fixed
ghostscript-tools-fonts
Amazon Linux 2023
0:9.56.1-7.amzn2023.0.19
fixed
ghostscript-tools-printing
Amazon Linux 2023
0:9.56.1-7.amzn2023.0.19
fixed
ghostscript-x11
Amazon Linux 2023
0:9.56.1-7.amzn2023.0.19
fixed
ghostscript-x11-debuginfo
Amazon Linux 2023
0:9.56.1-7.amzn2023.0.19
fixed
libgs
Amazon Linux 2
0:9.54.0-9.amzn2.0.13
fixed
Amazon Linux 2023
0:9.56.1-7.amzn2023.0.19
fixed
libgs-debuginfo
Amazon Linux 2023
0:9.56.1-7.amzn2023.0.19
fixed
libgs-devel
Amazon Linux 2
0:9.54.0-9.amzn2.0.13
fixed
Amazon Linux 2023
0:9.56.1-7.amzn2023.0.19
fixed