Vulnerability · Published Mar 25, 2025 · Assigned by mitre
CVE-2025-27831
Critical 9.8
In plain English
A critical-severity buffer overflow in the ghostscript package (Alpine). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 49% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)9.8Critical
Exploit odds (30 days)0.6%top 50.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known
Official description
An issue was discovered in Artifex Ghostscript before 10.05.0. The DOCXWRITE TXTWRITE device has a text buffer overflow via long characters to devices/vector/doc_common.c.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | ghostscript | 10.05.0-r0 | ALPINE-CVE-2025-27831 |
| Alpine:v3.21 | ghostscript | 10.05.0-r0 | ALPINE-CVE-2025-27831 |
| Alpine:v3.22 | ghostscript | 10.05.0-r0 | ALPINE-CVE-2025-27831 |
| Alpine:v3.23 | ghostscript | 10.05.0-r0 | ALPINE-CVE-2025-27831 |
| Alpine:v3.24 | ghostscript | 10.05.0-r0 | ALPINE-CVE-2025-27831 |
| Debian:12 | ghostscript | 10.0.0~dfsg-11+deb12u7 | DSA-5888-1 |
| Debian:12 | ghostscript | 10.0.0~dfsg-11+deb12u7 | DEBIAN-CVE-2025-27831 |
| Debian:13 | ghostscript | 10.05.0~dfsg-1 | DEBIAN-CVE-2025-27831 |
| Debian:14 | ghostscript | 10.05.0~dfsg-1 | DEBIAN-CVE-2025-27831 |
| Ubuntu:22.04:LTS | ghostscript | 9.55.0~dfsg1-0ubuntu5.11 | USN-7378-1 |
| Ubuntu:22.04:LTS | ghostscript | 9.55.0~dfsg1-0ubuntu5.11 | UBUNTU-CVE-2025-27831 |
| Ubuntu:24.04:LTS | ghostscript | 10.02.1~dfsg1-0ubuntu7.5 | UBUNTU-CVE-2025-27831 |
| Ubuntu:24.04:LTS | ghostscript | 10.02.1~dfsg1-0ubuntu7.5 | USN-7378-1 |
Affected products (as reported)
Weakness: CWE-120 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H