CVE-2024-46954

NameCVE-2024-46954
DescriptionAn issue was discovered in decode_utf8 in base/gp_utf8.c in Artifex Ghostscript before 10.04.0. Overlong UTF-8 encoding leads to possible ../ directory traversal.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
ghostscript (PTS)jessie, jessie (lts)9.26a~dfsg-0+deb8u12vulnerable
stretch (security)9.26a~dfsg-0+deb9u9vulnerable
stretch (lts), stretch9.26a~dfsg-0+deb9u12vulnerable
buster (security), buster, buster (lts)9.27~dfsg-2+deb10u9vulnerable
bullseye9.53.3~dfsg-7+deb11u7fixed
bullseye (security)9.53.3~dfsg-7+deb11u8fixed
bookworm10.0.0~dfsg-11+deb12u5fixed
bookworm (security)10.0.0~dfsg-11+deb12u6fixed
sid, trixie10.04.0~dfsg-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
ghostscriptsourcebullseye(not affected)
ghostscriptsourcebookworm(not affected)
ghostscriptsource(unstable)10.04.0~dfsg-1

Notes

[bookworm] - ghostscript <not-affected> (Vulnerable code introduced later)
[bullseye] - ghostscript <not-affected> (Vulnerable code introduced later)
https://bugs.ghostscript.com/show_bug.cgi?id=707788
Introduced by: https://cgit.ghostscript.com/cgi-bin/cgit.cgi/ghostpdl.git/commit/?id=e15f8ff9db30c4e780973cef79e162baed6047c6 (ghostpdl-10.01.0rc1)
Introduced when making previously windows specific functions generically available.
https://cgit.ghostscript.com/cgi-bin/cgit.cgi/ghostpdl.git/commit/?id=55f587dd039282316f512e1bea64218fd991f934
https://cgit.ghostscript.com/cgi-bin/cgit.cgi/ghostpdl.git/commit/?id=282f691f5e57b6bf55ba51ad8c2be2cce8edb938 (ghostpdl-10.04.0)

Search for package or bug name: Reporting problems