Buffer Overflow Affecting libgs package, versions <0:9.54.0-9.amzn2.0.9


Severity

Recommended
high

Based on Amazon Linux security rating.

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-AMZN2-LIBGS-9599601
  • published2 Apr 2025
  • disclosed25 Mar 2025

Introduced: 25 Mar 2025

NewCVE-2025-27831  (opens in a new tab)
CWE-120  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2 libgs to version 0:9.54.0-9.amzn2.0.9 or higher.
This issue was patched in ALAS2-2025-2805.

NVD Description

Note: Versions mentioned in the description apply only to the upstream libgs package and not the libgs package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1