CVE-2023-28879
Published: 31 March 2023
In Artifex Ghostscript through 10.01.0, there is a buffer overflow leading to potential corruption of data internal to the PostScript interpreter, in base/sbcp.c. This affects BCPEncode, BCPDecode, TBCPEncode, and TBCPDecode. If the write buffer is filled to one byte less than full, and one then tries to write an escaped character, two bytes are written.
Notes
Author | Note |
---|---|
sbeattie | additional hardening upstream in commit 3635f4c75e ("PostScript filters - remove non-standard filters when SAFER is true") consider applying as part of security fix |
rodrigo-zaiden | hardening commit, 3635f4c75e, removes filters that are required for the old PDF interpreter written in PostScript. the new PDF interpreter written in C, is enabled by default in ghostscript 9.56.1. so, the hardening can break certain operations in older versions. in Ubuntu, the hardening is not applied is releases older than kinetic. |
Priority
Status
Package | Release | Status |
---|---|---|
ghostscript Launchpad, Ubuntu, Debian |
bionic |
Released
(9.26~dfsg+0-0ubuntu0.18.04.18)
|
trusty |
Ignored
(end of standard support)
|
|
upstream |
Released
(10.01.1, 10.0.0~dfsg-11)
|
|
focal |
Released
(9.50~dfsg-5ubuntu4.7)
|
|
jammy |
Released
(9.55.0~dfsg1-0ubuntu5.2)
|
|
kinetic |
Released
(9.56.1~dfsg1-0ubuntu3.1)
|
|
xenial |
Released
(9.26~dfsg+0-0ubuntu0.16.04.14+esm5)
Available with Ubuntu Pro or Ubuntu Pro (Infra-only) |
|
lunar |
Released
(10.0.0~dfsg1-0ubuntu1.1)
|
|
Patches: upstream: https://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=37ed5022cecd584de868933b5b60da2e995b3179 upstream: https://git.ghostscript.com/?p=ghostpdl.git;h=3635f4c75e54e337a4eebcf6db3eef0e60f9cebf (hardening) |
Severity score breakdown
Parameter | Value |
---|---|
Base score | 9.8 |
Attack vector | Network |
Attack complexity | Low |
Privileges required | None |
User interaction | None |
Scope | Unchanged |
Confidentiality | High |
Integrity impact | High |
Availability impact | High |
Vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
References
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-28879
- https://ghostscript.readthedocs.io/en/latest/News.html
- https://artifex.com/news/critical-security-vulnerability-fixed-in-ghostscript
- https://www.openwall.com/lists/oss-security/2023/04/12/4
- https://offsec.almond.consulting/ghostscript-cve-2023-28879.html
- https://ghostscript.com/blog/pdfi.html
- https://ubuntu.com/security/notices/USN-6017-1
- https://ubuntu.com/security/notices/USN-6017-2
- NVD
- Launchpad
- Debian