ANT-2026-QA1CT79B · ghostscript

heap-buffer-overflow high

Severity Claude high · Security research firm high · Maintainer -

Discovered by Claude Mythos Preview

SECURITY RESEARCH FIRM ANALYSIS

Triage and disclosure were performed by Trail of Bits. The writeup below is the document the firm sent to the maintainer.

Verdict
true positive
Severity
high

Stack and heap buffer overflows (gdevcups, gstype2, gsfunc0, gdevpx)

Created attachment 28006 The analyses and proof-of-concepts for the described findings

Hi,

We're writing from Trail of Bits, a security research firm. We found 6 security issues in Ghostscript and have prepared patches for each one. All findings are rated High. Details are below.

These issues were batched as the set of instructions, format of the proof-of-concept bins, analyses, and other resources are all uniform from our test runs and triage process.

FINDINGS

# Bug Class Location Severity


1 Heap buffer overflow cups/gdevcups.c:3141 High 2 Heap buffer overflow (OOB base/gstype2.c:661 High write) 3 Stack buffer overflow (OOB base/gstype2.c:708 High write) 4 Stack buffer overflow (OOB base/gsfunc0.c:1466 High write) 5 Heap buffer overflow (OOB cups/gdevcups.c:4741 High write) 6 Heap buffer overflow (OOB devices/vector/gdevpx.c:2777 High write)

REPRODUCTION

Each finding includes a proof-of-concept input (poc.bin) and a candidate patch (patch.diff). To reproduce any finding:

Build fuzzers: python3 infra/helper.py build_fuzzers --sanitizer address ghostscript

Run the PoC (substitute the appropriate fuzzer entrypoint and PoC file):

Finding 1: python3 infra/helper.py reproduce ghostscript gstoraster_fuzzer poc.bin

Finding 2: python3 infra/helper.py reproduce ghostscript gs_device_bmpmono_fuzzer poc.bin

Finding 3: python3 infra/helper.py reproduce ghostscript gs_device_ps2write_fuzzer poc.bin

Finding 4: python3 infra/helper.py reproduce ghostscript gstoraster_pdf_fuzzer poc.bin

Finding 5: python3 infra/helper.py reproduce ghostscript gstoraster_fuzzer_all_colors poc.bin

Finding 6: python3 infra/helper.py reproduce ghostscript gs_device_pxlcolor_fuzzer poc.bin

To verify a patch, apply the corresponding patch.diff to the Ghostscript source tree (commit 5f1a5c6ba3d61f4f95cb793715728927af1900ba), rebuild fuzzers, and re-run the PoC. Each patched build should exit cleanly with no ASAN report.

ATTACHMENTS

We have attached a zip containing:

BACKGROUND

Anthropic is conducting research into the use of large language models for automated vulnerability discovery in open source software. As part of that work, Anthropic used Claude to scan a set of widely used open source projects for security issues. Anthropic then engaged Trail of Bits to independently triage, manually validate, and develop patches for the findings. Each issue in this report has been reviewed and confirmed by human security researchers at Trail of Bits.

NEXT STEPS

We are disclosing under Anthropic's coordinated vulnerability disclosure policy: https://www.anthropic.com/coordinated-vulnerability-disclosure

Our disclosure timeline is 90 days from the date of this submission, with a 14-day extension available if needed.

We'd like to work with your maintainers to get these issues fixed. We are happy to submit PRs or coordinate with your preferred process. Let us know if there's a specific security contact you'd like us to work with.

Thanks for your work on Ghostscript.

— Trail of Bits, in collaboration with Anthropic

TIMELINE

Dates from discovery through public reveal.

  1. 2026-03-29 Reported to tracker
  2. 2026-04-05 Sent to maintainer
  3. 2026-04-05 Maintainer acknowledged
  4. 2026-05-21 Patch released
  5. 2026-08-17 Publicly revealed
PROVENANCE

SHA-3-512 hash:

034d3713a027342e8dfbdb19a466b0f2b562ed884b40756a2bf3a5363c112a8fc6561ca96be5931ab5ce014b3f0d9628b0e2d2b87bb50e3ffd20c0f33d5020e6

Committed 2026-04-05 16:37 PT

Revealed 2026-08-17 13:03 PT

Verify (download preimage.json)

Show preimage JSON
{
  "ant_id": "ANT-2026-QA1CT79B",
  "bug_class": "heap-buffer-overflow",
  "claude_severity": "high",
  "commit_sha": null,
  "created_at": "2026-03-29T20:42:52+00:00",
  "description": null,
  "discovered_at": null,
  "location": null,
  "poc_sha256": null,
  "preimage_version": 1,
  "project": "Ghostscript",
  "reproduction": null,
  "technical_details": null,
  "title": "Heap buffer overflow in CUPS stringoption macro leading to pointer corruption and attacker-controlled pointer",
  "vendor_severity": "high"
}