CVE-2025-27832 Memory corruption in n/a

Critical 9.8 Published Updated

A buffer overflow in the NPDL device allows attackers to execute arbitrary code or cause denial of service via crafted input.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2025-27832?

CVE-2025-27832 is a critical memory corruption vulnerability in Artifex Ghostscript, published on 25 Mar 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

An issue was discovered in Artifex Ghostscript before 10.05.0. The NPDL device has a Compression buffer overflow for contrib/japanese/gdevnpdl.c.

Weakness: CWE-120

Which versions are affected by CVE-2025-27832?

It affects 1 product.

Linux distribution packages (40)
ghostscript AlmaLinux:10All versions10.02.1-16.el10_0
ghostscript-doc AlmaLinux:10All versions10.02.1-16.el10_0
ghostscript-tools-dvipdf AlmaLinux:10All versions10.02.1-16.el10_0
ghostscript-tools-fonts AlmaLinux:10All versions10.02.1-16.el10_0
ghostscript-tools-printing AlmaLinux:10All versions10.02.1-16.el10_0
libgs AlmaLinux:10All versions10.02.1-16.el10_0
libgs-devel AlmaLinux:10All versions10.02.1-16.el10_0
ghostscript AlmaLinux:8All versions9.27-17.el8_10
ghostscript-doc AlmaLinux:8All versions9.27-17.el8_10
ghostscript-tools-dvipdf AlmaLinux:8All versions9.27-17.el8_10
ghostscript-tools-fonts AlmaLinux:8All versions9.27-17.el8_10
ghostscript-tools-printing AlmaLinux:8All versions9.27-17.el8_10
ghostscript-x11 AlmaLinux:8All versions9.27-17.el8_10
libgs AlmaLinux:8All versions9.27-17.el8_10
libgs-devel AlmaLinux:8All versions9.27-17.el8_10
ghostscript AlmaLinux:9All versions9.54.0-19.el9_6
ghostscript-doc AlmaLinux:9All versions9.54.0-19.el9_6
ghostscript-tools-dvipdf AlmaLinux:9All versions9.54.0-19.el9_6
ghostscript-tools-fonts AlmaLinux:9All versions9.54.0-19.el9_6
ghostscript-tools-printing AlmaLinux:9All versions9.54.0-19.el9_6
ghostscript-x11 AlmaLinux:9All versions9.54.0-19.el9_6
libgs AlmaLinux:9All versions9.54.0-19.el9_6
libgs-devel AlmaLinux:9All versions9.54.0-19.el9_6
ghostscript Red Hat:enterprise_linux:10.0All versions0:10.02.1-16.el10_0
ghostscript-debuginfo Red Hat:enterprise_linux:10.0All versions0:10.02.1-16.el10_0
ghostscript-debugsource Red Hat:enterprise_linux:10.0All versions0:10.02.1-16.el10_0
ghostscript-doc Red Hat:enterprise_linux:10.0All versions0:10.02.1-16.el10_0
ghostscript-gtk-debuginfo Red Hat:enterprise_linux:10.0All versions0:10.02.1-16.el10_0
ghostscript-tools-dvipdf Red Hat:enterprise_linux:10.0All versions0:10.02.1-16.el10_0
ghostscript-tools-fonts Red Hat:enterprise_linux:10.0All versions0:10.02.1-16.el10_0
ghostscript-tools-printing Red Hat:enterprise_linux:10.0All versions0:10.02.1-16.el10_0
libgs Red Hat:enterprise_linux:10.0All versions0:10.02.1-16.el10_0
libgs-debuginfo Red Hat:enterprise_linux:10.0All versions0:10.02.1-16.el10_0
libgs-devel Red Hat:enterprise_linux:10.0All versions0:10.02.1-16.el10_0
ghostscript Red Hat:enterprise_linux:8::appstreamAll versions0:9.27-17.el8_10
ghostscript-debuginfo Red Hat:enterprise_linux:8::appstreamAll versions0:9.27-17.el8_10
ghostscript-debugsource Red Hat:enterprise_linux:8::appstreamAll versions0:9.27-17.el8_10
ghostscript-gtk-debuginfo Red Hat:enterprise_linux:8::appstreamAll versions0:9.27-17.el8_10
ghostscript-x11 Red Hat:enterprise_linux:8::appstreamAll versions0:9.27-17.el8_10
ghostscript-x11-debuginfo Red Hat:enterprise_linux:8::appstreamAll versions0:9.27-17.el8_10

Products include Artifex Ghostscript.

How do I fix CVE-2025-27832?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2025-27832 being exploited?

There is no known exploitation of CVE-2025-27832 in the wild and no public exploit code.

All Artifex Ghostscript vulnerabilities

Sources

Also known as ALPINE-CVE-2025-27832, ALSA-2025:7586, ALSA-2025:7593, ALSA-2025:8421, BELL-CVE-2025-27832, DEBIAN-CVE-2025-27832 and 12 more.

Is CVE-2025-27832 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free