Advisory

GO-2026-5781

Also known as: None

Summary

Uncatchable stack-overflow denial of service in rsc.io/pdf

Details

pdf.Open and PDF object resolution in rsc.io/pdf recurse without bound on nested arrays and dictionaries. A sufficiently deeply nested document exhausts the goroutine stack limit and triggers a fatal, uncatchable stack overflow. Any service that parses untrusted PDFs with rsc.io/pdf can therefore be taken down by a single small input.

Severity

Not rated by the source.

Dates

Published
2026-07-27 16:16 UTC
Modified
2026-07-27 17:00 UTC

Affected packages and fixes

rsc.io/pdf

Go · All systems

Affected

  • introduced 0 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Go Vulnerability Database · CC BY 4.0

Sources & licences