CVE-2025-27831: Buffer Overflow

Published Mar 25, 2025
·
Updated

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/doccommon.c.

Affected Software

3 affected componentsFixes available
Artifex GhostScript<10.05.0
debian/ghostscript<=9.53.3~dfsg-7+deb11u7, <=9.53.3~dfsg-7+deb11u9, <=10.0.0~dfsg-11+deb12u6
10.0.0~dfsg-11+deb12u710.05.0~dfsg-1
Artifex GhostScript<10.05.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/ghostscript to a version that resolves this vulnerability.

    Fixed in 10.0.0~dfsg-11+deb12u7Fixed in 10.05.0~dfsg-1
  2. Upgrade

    Upgrade Artifex Ghostscript to a version that resolves this vulnerability.

    Fixed in 10.05.0
  3. Compensating control

    If you are using the DOCXWRITE or TXTWRITE devices, avoid processing untrusted documents until Ghostscript is upgraded to 10.05.0, since the text buffer overflow occurs via long characters to devices/vector/doc_common.c.

Event History

Mar 25, 2025
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Data Sourced
via NVD·09:15 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·09:15 PM
RemedyAffected Software
Mar 27, 2025
Data Sourced
via Ubuntu·03:43 PM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-27831?

CVE-2025-27831 is considered a critical vulnerability due to its potential for a text buffer overflow.

2

How do I fix CVE-2025-27831?

To fix CVE-2025-27831, upgrade to Ghostscript version 10.05.0 or later.

3

What software is affected by CVE-2025-27831?

CVE-2025-27831 affects versions of Artifex Ghostscript prior to 10.05.0.

4

What type of vulnerability is CVE-2025-27831?

CVE-2025-27831 is classified as a text buffer overflow vulnerability.

5

What can happen if CVE-2025-27831 is exploited?

Exploitation of CVE-2025-27831 could lead to arbitrary code execution or application crashes.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203