<?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, 06 Dec 2026 17:32:53 +0000</lastBuildDate>
    <item>
      <title>CVE-2021-43620</title>
      <link>https://db.gcve.eu/vuln/cve-2021-43620</link>
      <description>&lt;p&gt;An issue was discovered in the fruity crate through 0.2.0 for Rust. Security-relevant validation of filename extensions is plausibly affected. Methods of NSString for conversion to a string may return a partial result. Because they call CStr::from_ptr on a pointer to the string buffer, the string is terminated at the first &amp;#39;\0&amp;#39; byte, which might not be the end of the string.&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;An issue was discovered in the fruity crate through 0.2.0 for Rust. Security-relevant validation of filename extensions is plausibly affected. Methods of NSString for conversion to a string may return a partial result. Because they call CStr::from_ptr on a pointer to the string buffer, the string is terminated at the first &amp;#39;\0&amp;#39; byte, which might not be the end of the string.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/cve-2021-43620</guid>
    </item>
    <item>
      <title>RUSTSEC-2021-0123 — Converting `NSString` to a String Truncates at Null Bytes</title>
      <link>https://db.gcve.eu/vuln/rustsec-2021-0123</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; crates.io: fruity&lt;/p&gt;
&lt;p&gt;Methods of [`NSString`] for conversion to a string may return a partial result.
Since they call [`CStr::from_ptr`] on a pointer to the string buffer, the
string is terminated at the first null byte, which might not be the end of the
string.&lt;/p&gt;
&lt;p&gt;In addition to the vulnerable functions listed for this issue, the
implementations of [`Display`], [`PartialEq`], [`PartialOrd`], and [`ToString`]
for [`NSString`] are also affected, since they call those functions.&lt;/p&gt;
&lt;p&gt;## Impact&lt;/p&gt;
&lt;p&gt;Since [`NSString`] is commonly used as the type for paths by the [Foundation]
framework, null byte truncation might allow for easily bypassing file extension
checks. For example, if a file name is provided by a user and validated to have
one of a specific set of extensions, with validation taking place before
truncation, an attacker can add an accepted extension after a null byte (e.g.,
`file.exe\0.txt`). After truncation, the file name used by the application
would be `file.exe`.&lt;/p&gt;
&lt;p&gt;It would be better to generate unique names for files, instead of using
user-provided names, but not all applications take this approach.&lt;/p&gt;
&lt;p&gt;## Example:&lt;/p&gt;
&lt;p&gt;```rust
let string = NSString::from_str(&amp;#34;null\0byte&amp;#34;);
println!(&amp;#34;{}&amp;#34;, string);
```&lt;/p&gt;
&lt;p&gt;That example only prints the string &amp;#34;null&amp;#34;.&lt;/p&gt;
&lt;p&gt;[`CStr::from_ptr`]: https://doc.rust-lang.org/std/ffi/struct.CStr.html#method.from_ptr
[`Display`]: https://doc.rust-lang.org/std/fmt/trait.Display.html
[Foundation]: https://developer.apple.com/documentation/foundation
[`NSString`]: https://docs.rs/fruity/0.2.…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; crates.io: fruity&lt;/p&gt;
&lt;p&gt;Methods of [`NSString`] for conversion to a string may return a partial result.
Since they call [`CStr::from_ptr`] on a pointer to the string buffer, the
string is terminated at the first null byte, which might not be the end of the
string.&lt;/p&gt;
&lt;p&gt;In addition to the vulnerable functions listed for this issue, the
implementations of [`Display`], [`PartialEq`], [`PartialOrd`], and [`ToString`]
for [`NSString`] are also affected, since they call those functions.&lt;/p&gt;
&lt;p&gt;## Impact&lt;/p&gt;
&lt;p&gt;Since [`NSString`] is commonly used as the type for paths by the [Foundation]
framework, null byte truncation might allow for easily bypassing file extension
checks. For example, if a file name is provided by a user and validated to have
one of a specific set of extensions, with validation taking place before
truncation, an attacker can add an accepted extension after a null byte (e.g.,
`file.exe\0.txt`). After truncation, the file name used by the application
would be `file.exe`.&lt;/p&gt;
&lt;p&gt;It would be better to generate unique names for files, instead of using
user-provided names, but not all applications take this approach.&lt;/p&gt;
&lt;p&gt;## Example:&lt;/p&gt;
&lt;p&gt;```rust
let string = NSString::from_str(&amp;#34;null\0byte&amp;#34;);
println!(&amp;#34;{}&amp;#34;, string);
```&lt;/p&gt;
&lt;p&gt;That example only prints the string &amp;#34;null&amp;#34;.&lt;/p&gt;
&lt;p&gt;[`CStr::from_ptr`]: https://doc.rust-lang.org/std/ffi/struct.CStr.html#method.from_ptr
[`Display`]: https://doc.rust-lang.org/std/fmt/trait.Display.html
[Foundation]: https://developer.apple.com/documentation/foundation
[`NSString`]: https://docs.rs/fruity/0.2.…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/rustsec-2021-0123</guid>
    </item>
  </channel>
</rss>
