<?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>Fri, 16 Oct 2026 09:38:38 +0000</lastBuildDate>
    <item>
      <title>RUSTSEC-2025-0143 — Unsound APIs of public `constant::Reader` and `StructSchema`</title>
      <link>https://db.gcve.eu/vuln/rustsec-2025-0143</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; crates.io: capnp&lt;/p&gt;
&lt;p&gt;The safe API functions `constant::Reader::get` and `StructSchema::new` rely on `PointerReader::get_root_unchecked`, which can cause undefined behavior (UB) by constructing arbitrary words or schemas.&lt;/p&gt;
&lt;p&gt;## `Reader::get`&lt;/p&gt;
&lt;p&gt;```rust
pub fn get(&amp;amp;self) -&amp;gt; Result&amp;lt;&amp;lt;T as Owned&amp;gt;::Reader&amp;lt;&amp;#39;static&amp;gt;&amp;gt; {
    // ...
    // UNSAFE: access `words` without validation
}
```&lt;/p&gt;
&lt;p&gt;## `StructSchema::new`&lt;/p&gt;
&lt;p&gt;```rust
pub fn new(builder: RawBrandedStructSchema) -&amp;gt; StructSchema {
    // ...
    // UNSAFE: access encoded nodes without validation
}
```&lt;/p&gt;
&lt;p&gt;This vulnerability allows safe Rust code to trigger UB, which violates Rust&amp;#39;s safety guarantees.&lt;/p&gt;
&lt;p&gt;The issue is resolved in version `0.24.0` by making constructor functions unsafe and mark the fields of struct as visible only in the crate.&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; crates.io: capnp&lt;/p&gt;
&lt;p&gt;The safe API functions `constant::Reader::get` and `StructSchema::new` rely on `PointerReader::get_root_unchecked`, which can cause undefined behavior (UB) by constructing arbitrary words or schemas.&lt;/p&gt;
&lt;p&gt;## `Reader::get`&lt;/p&gt;
&lt;p&gt;```rust
pub fn get(&amp;amp;self) -&amp;gt; Result&amp;lt;&amp;lt;T as Owned&amp;gt;::Reader&amp;lt;&amp;#39;static&amp;gt;&amp;gt; {
    // ...
    // UNSAFE: access `words` without validation
}
```&lt;/p&gt;
&lt;p&gt;## `StructSchema::new`&lt;/p&gt;
&lt;p&gt;```rust
pub fn new(builder: RawBrandedStructSchema) -&amp;gt; StructSchema {
    // ...
    // UNSAFE: access encoded nodes without validation
}
```&lt;/p&gt;
&lt;p&gt;This vulnerability allows safe Rust code to trigger UB, which violates Rust&amp;#39;s safety guarantees.&lt;/p&gt;
&lt;p&gt;The issue is resolved in version `0.24.0` by making constructor functions unsafe and mark the fields of struct as visible only in the crate.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/rustsec-2025-0143</guid>
    </item>
  </channel>
</rss>
