Vulnerabilities

Security fix · RUSTSEC-2026-0187

Stack overflow in lopdf via deeply nested PDF objects

Published Jun 21, 2026 · catalog updated Oct 17, 2026 · Stack overflow in lopdf

Open the advisory

Exploitation likelihood is not on this record for RUSTSEC-2026-0187. A missing EPSS score is not a low risk. Compare Stack overflow in lopdf with the linked advisory before you change production.

Gaps on this record

  • The stored product name is a package slug. The name on this page is taken from the title (Stack overflow in lopdf).
  • No vendor fix or required action is stored. Compare the linked advisory before you change production.
  • EPSS is missing. A missing score is not a low risk.
Severity
High7.5
Known exploitation
Not in CISA/VulnCheck KEV
EPSS
Awaiting synchronization with FIRST
Remediation
Advisory link
Affected products
crates.io lopdf

(and the other entry points) parses nested PDF arrays and dictionaries with unbounded recursion. A small crafted PDF whose Catalog contains a deeply nested array ( , on the order of 10,000 levels) exhausts the call stack and aborts the process with . Because this is a stack-overflow abort rather than a , it cannot be caught with : any service that parses untrusted PDF input with lopdf can be crashed by a ~21 KB file, resulting in a denial of service. Confirmed on lopdf 0.41.0 and earlier; fixed in 0.42.0. Default configuration, no features changed. ## Proof of concept An equivalent PoC is a minimal PDF whose Catalog value is . ## Suggested fix Enforce a maximum object-nesting depth in the parser and return an instead of recursing without bound.

Are you affected?

Enter the version you run. The result uses only the ranges stored on this record.

The check returns affected, not affected, or incomplete. It does not guess a version that is missing from the record.

  • crates.io lopdf0.0.0-0 → 0.42.0

How to fix RUSTSEC-2026-0187

What to do

Three questions, each answered from this record only. Confirm the vendor advisory before you patch.

Should you patch?

Exploitation likelihood is not on this record for RUSTSEC-2026-0187. A missing EPSS score is not a low risk. Compare Stack overflow in lopdf with the linked advisory before you change production.

Which versions are affected?

Compare what you have installed with 0.0.0-0 → 0.42.0. Compare the installed version with the linked vendor advisory before you change production.

What should an analyst verify?

No weakness class is stored. EPSS is not on this record yet. There is no CISA KEV listing. No Exploit-DB or Metasploit reference is linked. Use the source links for the original advisory.

Code

The project this record applies to. Exploit listings stay in References.

Timeline

Detection, updates, and resolution for this record.

  1. Jun 21, 2026 · GitHub Advisory Database

    Detected

    (and the other entry points) parses nested PDF arrays and dictionaries with unbounded recursion. A small crafted PDF whose Catalog contains a deeply nested array ( , on the order of 10,000 levels) exhausts the call stack and aborts the process with . Because this is a stack-overflow abort rather than a , it cannot be caught with : any service that parses untrusted PDF input with lopdf can be crash

  2. Oct 17, 2026 · GitHub Advisory Database

    Fix available

    lopdf fixed in 0.42.0

  3. Oct 17, 2026 · GitHub Advisory Database

    Fix available

    lopdf fixed in 0.42.0

  4. Oct 17, 2026 · GitHub Advisory Database

    Updated

    (and the other entry points) parses nested PDF arrays and dictionaries with unbounded recursion. A small crafted PDF whose Catalog contains a deeply nested array ( , on the order of 10,000 levels) exhausts the call stack and aborts the process with . Because this is a stack-overflow abort rather than a , it cannot be caught with : any service that parses untrusted PDF input with lopdf can be crash

Sources

References

Freshness

Last verified in this catalog Oct 17, 2026. Significant claims (KEV, EPSS, CVSS, affected ranges) come from the source rows above — open the original publisher for the authoritative advisory.