# CVE-2025-59798: libgs10-common: Artifex Ghostscript through 10.05.1 has a stack-based buffer overflow inpdf_write_cmap in devices/vector/gdevpdtw.c.

CVE-2025-59798 is fixed in 20 products on 1 platform, first by ghostscript 9.26~dfsg+0-0ubuntu0.18.04.18+esm5, released September 21, 2025. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2025-59798
- Priority: Routine
- CVSS: 5.5 (Medium)
- EPSS: 0.0020
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Sep 21, 2025

## Description

Artifex Ghostscript through 10.05.1 has a stack-based buffer overflow inpdf_write_cmap in devices/vector/gdevpdtw.c.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | ghostscript Debian 11.6 (bullseye) | 9.53.3~dfsg-7+deb11u11 | [DLA-4330-1](https://patchblox.com/security/data/fix/linux/dla-4330-1.md) | Oct 14, 2025 |
| Linux | ghostscript Debian 12.15 (bookworm) | 10.0.0~dfsg-11+deb12u8 | [DSA-6024-1](https://patchblox.com/security/data/fix/linux/dsa-6024-1.md) | Oct 11, 2025 |
| Linux | ghostscript Debian 13.5 (trixie) | 10.05.1~dfsg-1+deb13u1 | [DSA-6024-1](https://patchblox.com/security/data/fix/linux/dsa-6024-1.md) | Oct 11, 2025 |
| Linux | ghostscript Debian 14 | 10.06.0~dfsg-1 | [DEBIAN-CVE-2025-59798](https://patchblox.com/security/data/fix/linux/debian-cve-2025-59798.md) | Sep 22, 2025 |
| Linux | ghostscript Ubuntu 18.04.6 LTS (bionic) | 9.26~dfsg+0-0ubuntu0.18.04.18+esm5 | [ghostscript 9.26~dfsg+0-0ubuntu0.18.04.18+esm5](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-ghostscript-9.26-dfsg-0-0ubuntu0.18.04.18-esm5.md) | Sep 21, 2025 |
| Linux | ghostscript Ubuntu 20.04 LTS (focal) | 9.50~dfsg-5ubuntu4.15+esm2 | [ghostscript 9.50~dfsg-5ubuntu4.15+esm2](https://patchblox.com/security/data/fix/linux/ubuntu-focal-ghostscript-9.50-dfsg-5ubuntu4.15-esm2.md) | Sep 21, 2025 |
| Linux | ghostscript Ubuntu 22.04.1 LTS (jammy) | 9.55.0~dfsg1-0ubuntu5.13 | [ghostscript 9.55.0~dfsg1-0ubuntu5.13](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-ghostscript-9.55.0-dfsg1-0ubuntu5.13.md) | Sep 21, 2025 |
| Linux | ghostscript Ubuntu 24.04.5 LTS (noble) | 10.02.1~dfsg1-0ubuntu7.8 | [ghostscript 10.02.1~dfsg1-0ubuntu7.8](https://patchblox.com/security/data/fix/linux/ubuntu-noble-ghostscript-10.02.1-dfsg1-0ubuntu7.8.md) | Sep 21, 2025 |
| Linux | ghostscript Ubuntu 25.04 (plucky) | 10.05.0dfsg1-0ubuntu1.2 | [ghostscript 10.05.0dfsg1-0ubuntu1.2](https://patchblox.com/security/data/fix/linux/ubuntu-plucky-ghostscript-10.05.0dfsg1-0ubuntu1.2.md) | Jan 16, 2026 |
| Linux | ghostscript Ubuntu 25.10 (questing) | 10.05.0dfsg1-0ubuntu4 | [ghostscript 10.05.0dfsg1-0ubuntu4](https://patchblox.com/security/data/fix/linux/ubuntu-questing-ghostscript-10.05.0dfsg1-0ubuntu4.md) | Sep 21, 2025 |
| Linux | ghostscript amzn 2023 | 9.56.1-7.amzn2023.0.19 | [ALAS2023-2025-1218](https://patchblox.com/security/data/fix/linux/alas2023-2025-1218.md) | Oct 14, 2025 |
| Linux | ghostscript opensuse-leap 15.6 | 9.52-150000.211.1 | [SUSE-SU-2025:4148-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-4148-1.md) | Nov 20, 2025 |
| Linux | ghostscript opensuse-leap 16.0 | 10.06.0-160000.1.1 | [OPENSUSE-SU-2026:20592-1](https://patchblox.com/security/data/fix/linux/opensuse-su-2026-20592-1.md) | Apr 21, 2026 |
| Linux | ghostscript sles 15.6 | 9.52-150000.211.1 | [SUSE-SU-2025:4148-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-4148-1.md) | Nov 20, 2025 |
| Linux | ghostscript sles 15.7 | 9.52-150000.211.1 | [SUSE-SU-2025:4148-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-4148-1.md) | Nov 20, 2025 |
| Linux | ghostscript-debuginfo amzn 2023 | 9.56.1-7.amzn2023.0.19 | [ALAS2023-2025-1218](https://patchblox.com/security/data/fix/linux/alas2023-2025-1218.md) | Oct 14, 2025 |
| Linux | ghostscript-debugsource amzn 2023 | 9.56.1-7.amzn2023.0.19 | [ALAS2023-2025-1218](https://patchblox.com/security/data/fix/linux/alas2023-2025-1218.md) | Oct 14, 2025 |
| Linux | ghostscript-doc amzn 2023 | 9.56.1-7.amzn2023.0.19 | [ALAS2023-2025-1218](https://patchblox.com/security/data/fix/linux/alas2023-2025-1218.md) | Oct 14, 2025 |
| Linux | ghostscript-gtk amzn 2023 | 9.56.1-7.amzn2023.0.19 | [ALAS2023-2025-1218](https://patchblox.com/security/data/fix/linux/alas2023-2025-1218.md) | Oct 14, 2025 |
| Linux | ghostscript-gtk-debuginfo amzn 2023 | 9.56.1-7.amzn2023.0.19 | [ALAS2023-2025-1218](https://patchblox.com/security/data/fix/linux/alas2023-2025-1218.md) | Oct 14, 2025 |
| Linux | ghostscript-tools-dvipdf amzn 2023 | 9.56.1-7.amzn2023.0.19 | [ALAS2023-2025-1218](https://patchblox.com/security/data/fix/linux/alas2023-2025-1218.md) | Oct 14, 2025 |
| Linux | ghostscript-tools-fonts amzn 2023 | 9.56.1-7.amzn2023.0.19 | [ALAS2023-2025-1218](https://patchblox.com/security/data/fix/linux/alas2023-2025-1218.md) | Oct 14, 2025 |
| Linux | ghostscript-tools-printing amzn 2023 | 9.56.1-7.amzn2023.0.19 | [ALAS2023-2025-1218](https://patchblox.com/security/data/fix/linux/alas2023-2025-1218.md) | Oct 14, 2025 |
| Linux | ghostscript-x Ubuntu 18.04.6 LTS (bionic) | 9.26~dfsg+0-0ubuntu0.18.04.18+esm5 | [ghostscript-x 9.26~dfsg+0-0ubuntu0.18.04.18+esm5](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-ghostscript-x-9.26-dfsg-0-0ubuntu0.18.04.18-esm5.md) | Sep 21, 2025 |
| Linux | ghostscript-x Ubuntu 20.04 LTS (focal) | 9.50~dfsg-5ubuntu4.15+esm2 | [ghostscript-x 9.50~dfsg-5ubuntu4.15+esm2](https://patchblox.com/security/data/fix/linux/ubuntu-focal-ghostscript-x-9.50-dfsg-5ubuntu4.15-esm2.md) | Sep 21, 2025 |
| Linux | ghostscript-x Ubuntu 22.04.1 LTS (jammy) | 9.55.0~dfsg1-0ubuntu5.13 | [ghostscript-x 9.55.0~dfsg1-0ubuntu5.13](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-ghostscript-x-9.55.0-dfsg1-0ubuntu5.13.md) | Sep 21, 2025 |
| Linux | ghostscript-x11 amzn 2023 | 9.56.1-7.amzn2023.0.19 | [ALAS2023-2025-1218](https://patchblox.com/security/data/fix/linux/alas2023-2025-1218.md) | Oct 14, 2025 |
| Linux | ghostscript-x11-debuginfo amzn 2023 | 9.56.1-7.amzn2023.0.19 | [ALAS2023-2025-1218](https://patchblox.com/security/data/fix/linux/alas2023-2025-1218.md) | Oct 14, 2025 |
| Linux | libgs amzn 2023 | 9.56.1-7.amzn2023.0.19 | [ALAS2023-2025-1218](https://patchblox.com/security/data/fix/linux/alas2023-2025-1218.md) | Oct 14, 2025 |
| Linux | libgs-common Ubuntu 24.04.5 LTS (noble) | 10.02.1~dfsg1-0ubuntu7.8 | [libgs-common 10.02.1~dfsg1-0ubuntu7.8](https://patchblox.com/security/data/fix/linux/ubuntu-noble-libgs-common-10.02.1-dfsg1-0ubuntu7.8.md) | Sep 21, 2025 |
| Linux | libgs-common Ubuntu 25.04 (plucky) | 10.05.0dfsg1-0ubuntu1.2 | [libgs-common 10.05.0dfsg1-0ubuntu1.2](https://patchblox.com/security/data/fix/linux/ubuntu-plucky-libgs-common-10.05.0dfsg1-0ubuntu1.2.md) | Jan 16, 2026 |
| Linux | libgs-common Ubuntu 25.10 (questing) | 10.05.0dfsg1-0ubuntu4 | [libgs-common 10.05.0dfsg1-0ubuntu4](https://patchblox.com/security/data/fix/linux/ubuntu-questing-libgs-common-10.05.0dfsg1-0ubuntu4.md) | Sep 21, 2025 |
| Linux | libgs-debuginfo amzn 2023 | 9.56.1-7.amzn2023.0.19 | [ALAS2023-2025-1218](https://patchblox.com/security/data/fix/linux/alas2023-2025-1218.md) | Oct 14, 2025 |
| Linux | libgs-devel amzn 2023 | 9.56.1-7.amzn2023.0.19 | [ALAS2023-2025-1218](https://patchblox.com/security/data/fix/linux/alas2023-2025-1218.md) | Oct 14, 2025 |
| Linux | libgs10 Ubuntu 24.04.5 LTS (noble) | 10.02.1~dfsg1-0ubuntu7.8 | [libgs10 10.02.1~dfsg1-0ubuntu7.8](https://patchblox.com/security/data/fix/linux/ubuntu-noble-libgs10-10.02.1-dfsg1-0ubuntu7.8.md) | Sep 21, 2025 |
| Linux | libgs10 Ubuntu 25.04 (plucky) | 10.05.0dfsg1-0ubuntu1.2 | [libgs10 10.05.0dfsg1-0ubuntu1.2](https://patchblox.com/security/data/fix/linux/ubuntu-plucky-libgs10-10.05.0dfsg1-0ubuntu1.2.md) | Jan 16, 2026 |
| Linux | libgs10 Ubuntu 25.10 (questing) | 10.05.0dfsg1-0ubuntu4 | [libgs10 10.05.0dfsg1-0ubuntu4](https://patchblox.com/security/data/fix/linux/ubuntu-questing-libgs10-10.05.0dfsg1-0ubuntu4.md) | Sep 21, 2025 |
| Linux | libgs10-common Ubuntu 24.04.5 LTS (noble) | 10.02.1~dfsg1-0ubuntu7.8 | [libgs10-common 10.02.1~dfsg1-0ubuntu7.8](https://patchblox.com/security/data/fix/linux/ubuntu-noble-libgs10-common-10.02.1-dfsg1-0ubuntu7.8.md) | Sep 21, 2025 |
| Linux | libgs10-common Ubuntu 25.04 (plucky) | 10.05.0dfsg1-0ubuntu1.2 | [libgs10-common 10.05.0dfsg1-0ubuntu1.2](https://patchblox.com/security/data/fix/linux/ubuntu-plucky-libgs10-common-10.05.0dfsg1-0ubuntu1.2.md) | Jan 16, 2026 |
| Linux | libgs10-common Ubuntu 25.10 (questing) | 10.05.0dfsg1-0ubuntu4 | [libgs10-common 10.05.0dfsg1-0ubuntu4](https://patchblox.com/security/data/fix/linux/ubuntu-questing-libgs10-common-10.05.0dfsg1-0ubuntu4.md) | Sep 21, 2025 |
| Linux | libgs9 Ubuntu 18.04.6 LTS (bionic) | 9.26~dfsg+0-0ubuntu0.18.04.18+esm5 | [libgs9 9.26~dfsg+0-0ubuntu0.18.04.18+esm5](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libgs9-9.26-dfsg-0-0ubuntu0.18.04.18-esm5.md) | Sep 21, 2025 |
| Linux | libgs9 Ubuntu 20.04 LTS (focal) | 9.50~dfsg-5ubuntu4.15+esm2 | [libgs9 9.50~dfsg-5ubuntu4.15+esm2](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libgs9-9.50-dfsg-5ubuntu4.15-esm2.md) | Sep 21, 2025 |
| Linux | libgs9 Ubuntu 22.04.1 LTS (jammy) | 9.55.0~dfsg1-0ubuntu5.13 | [libgs9 9.55.0~dfsg1-0ubuntu5.13](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-libgs9-9.55.0-dfsg1-0ubuntu5.13.md) | Sep 21, 2025 |
| Linux | libgs9-common Ubuntu 18.04.6 LTS (bionic) | 9.26~dfsg+0-0ubuntu0.18.04.18+esm5 | [libgs9-common 9.26~dfsg+0-0ubuntu0.18.04.18+esm5](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libgs9-common-9.26-dfsg-0-0ubuntu0.18.04.18-esm5.md) | Sep 21, 2025 |
| Linux | libgs9-common Ubuntu 20.04 LTS (focal) | 9.50~dfsg-5ubuntu4.15+esm2 | [libgs9-common 9.50~dfsg-5ubuntu4.15+esm2](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libgs9-common-9.50-dfsg-5ubuntu4.15-esm2.md) | Sep 21, 2025 |
| Linux | libgs9-common Ubuntu 22.04.1 LTS (jammy) | 9.55.0~dfsg1-0ubuntu5.13 | [libgs9-common 9.55.0~dfsg1-0ubuntu5.13](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-libgs9-common-9.55.0-dfsg1-0ubuntu5.13.md) | Sep 21, 2025 |

---

Data as of 2026-11-08T13:06:02Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
