<?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://cve.radiocsirt.org</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, 09 Oct 2026 20:47:18 +0000</lastBuildDate>
    <item>
      <title>GHSA-5w5r-mf82-595p — Cap'n Proto has Undefined Behavior in constant::Reader and StructSchema</title>
      <link>https://cve.radiocsirt.org/vuln/ghsa-5w5r-mf82-595p</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://cve.radiocsirt.org/vuln/ghsa-5w5r-mf82-595p</guid>
    </item>
  </channel>
</rss>
