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

EcosystemPackageFixed inAdvisory
Alpine:v3.20ghostscript10.05.0-r0ALPINE-CVE-2025-27831
Alpine:v3.21ghostscript10.05.0-r0ALPINE-CVE-2025-27831
Alpine:v3.22ghostscript10.05.0-r0ALPINE-CVE-2025-27831
Alpine:v3.23ghostscript10.05.0-r0ALPINE-CVE-2025-27831
Alpine:v3.24ghostscript10.05.0-r0ALPINE-CVE-2025-27831
Debian:12ghostscript10.0.0~dfsg-11+deb12u7DSA-5888-1
Debian:12ghostscript10.0.0~dfsg-11+deb12u7DEBIAN-CVE-2025-27831
Debian:13ghostscript10.05.0~dfsg-1DEBIAN-CVE-2025-27831
Debian:14ghostscript10.05.0~dfsg-1DEBIAN-CVE-2025-27831
Ubuntu:22.04:LTSghostscript9.55.0~dfsg1-0ubuntu5.11USN-7378-1
Ubuntu:22.04:LTSghostscript9.55.0~dfsg1-0ubuntu5.11UBUNTU-CVE-2025-27831
Ubuntu:24.04:LTSghostscript10.02.1~dfsg1-0ubuntu7.5UBUNTU-CVE-2025-27831
Ubuntu:24.04:LTSghostscript10.02.1~dfsg1-0ubuntu7.5USN-7378-1

Affected products (as reported)

VendorProductVersions
n/a n/a n/a

Weakness: CWE-120 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

References