# GO-2026-5781: Uncatchable stack-overflow denial of service in rsc.io/pdf

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-07-27T16:16:22.000Z
- Modified: 2026-07-27T17:00:22.688Z

## Description

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.

(As written by Go Vulnerability Database.)

## Affected

- rsc.io/pdf (Go): all versions

## References

- <https://github.com/golang/vulndb/issues/5781> (report)
- <https://github.com/rsc/pdf> (web)

## Sources

- Go Vulnerability Database: [GO-2026-5781](https://pkg.go.dev/vuln/GO-2026-5781), CC-BY-4.0, modified 2026-07-27

---

Page: https://cve.day/GO-2026-5781 · Whole record: https://cve.day/GO-2026-5781.json · Rebuilt by cve.day 2026-11-25T22:56:25.044Z
