## lopdf has a stack overflow via deeply nested PDF objects

- 種別: advisory
- 重大度: high
- 関連技術: rust
- 公開日時: 2026-10-16T19:55:39.000Z
- 情報源: GitHub Advisory Database (https://github.com/advisories/GHSA-6fj4-rcr3-r7rr)
- パーマリンク: https://vulnpulse.app/items/ghsa-ghsa-6fj4-rcr3-r7rr

影響: rust:lopdf < 0.42.0 → 0.42.0
lopdf::Document::load_mem (and the other load entry points) parses nested PDF arrays and dictionaries with unbounded recursion. A small crafted PDF whose Catalog contains a deeply nested array (/X [[[ … ]]], on the order of 10,000 levels) exhausts the call stack and aborts the process with SIGABRT. Because this is a stack-overflow abort rather than a panic!, it cannot be caught with catch_unwind: any service that parses untrusted PDF input with lopdf can be crashed by a ~21 KB file, resulting i…