<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  <channel>
    <title>Most recent entries from all</title>
    <link>https://db.gcve.eu</link>
    <description>Contains only the most 10 recent entries.</description>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <generator>python-feedgen</generator>
    <language>en</language>
    <lastBuildDate>Sun, 18 Oct 2026 20:13:08 +0000</lastBuildDate>
    <item>
      <title>RUSTSEC-2026-0187 — Stack overflow in lopdf via deeply nested PDF objects</title>
      <link>https://db.gcve.eu/vuln/rustsec-2026-0187</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; crates.io: lopdf&lt;/p&gt;
&lt;p&gt;`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`.&lt;/p&gt;
&lt;p&gt;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 in a denial of service.&lt;/p&gt;
&lt;p&gt;Confirmed on lopdf 0.41.0 and earlier; fixed in 0.42.0. Default configuration, no features changed.&lt;/p&gt;
&lt;p&gt;## Proof of concept&lt;/p&gt;
&lt;p&gt;```rust
fn main() {
    let bytes = std::fs::read(&amp;#34;poc.pdf&amp;#34;).unwrap(); // ~10,380-deep nested array in the Catalog
    let _ = lopdf::Document::load_mem(&amp;amp;bytes);     // stack overflow -&amp;gt; SIGABRT
}
```&lt;/p&gt;
&lt;p&gt;An equivalent PoC is a minimal PDF whose Catalog `/X` value is `&amp;#34;[&amp;#34; * 10380 + &amp;#34;]&amp;#34; * 10380`.&lt;/p&gt;
&lt;p&gt;## Suggested fix&lt;/p&gt;
&lt;p&gt;Enforce a maximum object-nesting depth in the parser and return an `Err` instead of recursing without bound.&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; crates.io: lopdf&lt;/p&gt;
&lt;p&gt;`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`.&lt;/p&gt;
&lt;p&gt;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 in a denial of service.&lt;/p&gt;
&lt;p&gt;Confirmed on lopdf 0.41.0 and earlier; fixed in 0.42.0. Default configuration, no features changed.&lt;/p&gt;
&lt;p&gt;## Proof of concept&lt;/p&gt;
&lt;p&gt;```rust
fn main() {
    let bytes = std::fs::read(&amp;#34;poc.pdf&amp;#34;).unwrap(); // ~10,380-deep nested array in the Catalog
    let _ = lopdf::Document::load_mem(&amp;amp;bytes);     // stack overflow -&amp;gt; SIGABRT
}
```&lt;/p&gt;
&lt;p&gt;An equivalent PoC is a minimal PDF whose Catalog `/X` value is `&amp;#34;[&amp;#34; * 10380 + &amp;#34;]&amp;#34; * 10380`.&lt;/p&gt;
&lt;p&gt;## Suggested fix&lt;/p&gt;
&lt;p&gt;Enforce a maximum object-nesting depth in the parser and return an `Err` instead of recursing without bound.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/rustsec-2026-0187</guid>
    </item>
  </channel>
</rss>
