GO-2026-5781

Source
https://pkg.go.dev/vuln/GO-2026-5781
Import Source
https://vuln.go.dev/ID/GO-2026-5781.json
JSON Data
https://api.osv.dev/v1/vulns/GO-2026-5781
Published
2026-07-27T16:16:22Z
Modified
2026-07-27T17:00:22Z
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.

Database specific
{
    "review_status": "REVIEWED",
    "url": "https://pkg.go.dev/vuln/GO-2026-5781"
}
References
Credits
    • José Antonio Zamudio Amaya

Affected packages

Go / rsc.io/pdf

Package

Name
rsc.io/pdf
View open source insights on deps.dev
Purl
pkg:golang/rsc.io/pdf

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Ecosystem specific

{
    "imports": [
        {
            "path": "rsc.io/pdf",
            "symbols": [
                "NewReader",
                "Open"
            ]
        }
    ]
}

Database specific

source
"https://vuln.go.dev/ID/GO-2026-5781.json"