RustSec Advisorieshttps://rustsec.org/feed.xml2023-03-22T12:00:00+00:00RustSechttps://rustsec.org/favicon.icoSecurity advisories filed against Rust cratesRUSTSEC-2022-0092: Unsoundness in rmp-serdehttps://rustsec.org/advisories/RUSTSEC-2022-0092.html2023-03-22T12:00:00+00:002023-03-22T12:00:00+00:00`rmp-serde` `Raw` and `RawRef` unsound <article>
<span class="floating-menu">
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/rmp-serde/RUSTSEC-2022-0092.md">History</a> ⋅
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/rmp-serde/RUSTSEC-2022-0092.md">Edit</a>
</span>
<header>
<h1>
RUSTSEC-2022-0092
</h1>
<span class="subtitle"><p><code>rmp-serde</code> <code>Raw</code> and <code>RawRef</code> unsound</p>
</span>
</header>
<dl>
<dt id="reported">Reported</dt>
<dd>
<time datetime="2022-04-13">
April 13, 2022
</time>
</dd>
<dt id="issued">Issued</dt>
<dd>
<time datetime="2023-03-22">
March 22, 2023
</time>
</dd>
<dt id="package">Package</dt>
<dd>
<a href="/packages/rmp-serde.html">rmp-serde</a>
(<a href="https://crates.io/crates/rmp-serde">crates.io</a>)
</dd>
<dt id="type">Type</dt>
<dd>
<span class="tag info">INFO</span>
Unsound
</dd>
<dt id="categories">Categories</dt>
<dd>
<ul>
<li><a href="/categories/memory-corruption.html">memory-corruption</a></li>
</ul>
</dd>
<dt id="details">Details</dt>
<dd>
<a href="https://github.com/3Hren/msgpack-rust/issues/305">
https://github.com/3Hren/msgpack-rust/issues/305
</a>
</dd>
<dt id="patched">Patched</dt>
<dd>
<ul>
<li><code>>=1.1.1</code></li>
</ul>
</dd>
</dl>
<h3 id="description">Description</h3>
<p>It was found that <code>Raw::from_utf8</code> expects valid UTF-8. If invalid UTF-8 is received it can cause the process to crash.</p>
</article>RUSTSEC-2023-0021: Vulnerability in stb_imagehttps://rustsec.org/advisories/RUSTSEC-2023-0021.html2023-03-19T12:00:00+00:002023-03-19T12:00:00+00:00NULL pointer derefernce in `stb_image` <article>
<span class="floating-menu">
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/stb_image/RUSTSEC-2023-0021.md">History</a> ⋅
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/stb_image/RUSTSEC-2023-0021.md">Edit</a>
</span>
<header>
<h1>
RUSTSEC-2023-0021
</h1>
<span class="subtitle"><p>NULL pointer derefernce in <code>stb_image</code></p>
</span>
</header>
<dl>
<dt id="reported">Reported</dt>
<dd>
<time datetime="2023-03-19">
March 19, 2023
</time>
</dd>
<dt id="issued">Issued</dt>
<dd>
<time datetime="2023-03-19">
March 19, 2023
</time>
</dd>
<dt id="package">Package</dt>
<dd>
<a href="/packages/stb_image.html">stb_image</a>
(<a href="https://crates.io/crates/stb_image">crates.io</a>)
</dd>
<dt id="type">Type</dt>
<dd>
Vulnerability
</dd>
<dt id="categories">Categories</dt>
<dd>
<ul>
<li><a href="/categories/memory-corruption.html">memory-corruption</a></li>
</ul>
</dd>
<dt id="keywords">Keywords</dt>
<dd>
<a href="/keywords/NULL-pointer-dereference.html">#NULL-pointer-dereference</a>
</dd>
<dt id="details">Details</dt>
<dd>
<a href="https://github.com/servo/rust-stb-image/pull/102">
https://github.com/servo/rust-stb-image/pull/102
</a>
</dd>
<dt id="patched">Patched</dt>
<dd>
<ul>
<li><code>>=0.2.5</code></li>
</ul>
</dd>
</dl>
<h3 id="description">Description</h3>
<p>A bug in error handling in the <code>stb_image</code> C library could cause a NULL pointer dereference when attempting to load an invalid or unsupported image file. This is fixed in version 0.2.5 and later of the <code>stb_image</code> Rust crate, by patching the C code to correctly handle NULL pointers.</p>
<p>Thank you to GitHub user 0xdd96 for finding and fixing this vulnerability.</p>
</article>RUSTSEC-2019-0040: boxfnonce is unmaintainedhttps://rustsec.org/advisories/RUSTSEC-2019-0040.html2023-03-12T12:00:00+00:002023-03-12T12:00:00+00:00`boxfnonce` obsolete with release of Rust 1.35.0 <article>
<span class="floating-menu">
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/boxfnonce/RUSTSEC-2019-0040.md">History</a> ⋅
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/boxfnonce/RUSTSEC-2019-0040.md">Edit</a>
</span>
<header>
<h1>
RUSTSEC-2019-0040
</h1>
<span class="subtitle"><p><code>boxfnonce</code> obsolete with release of Rust 1.35.0</p>
</span>
</header>
<dl>
<dt id="reported">Reported</dt>
<dd>
<time datetime="2019-06-20">
June 20, 2019
</time>
</dd>
<dt id="issued">Issued</dt>
<dd>
<time datetime="2023-03-12">
March 12, 2023
</time>
</dd>
<dt id="package">Package</dt>
<dd>
<a href="/packages/boxfnonce.html">boxfnonce</a>
(<a href="https://crates.io/crates/boxfnonce">crates.io</a>)
</dd>
<dt id="type">Type</dt>
<dd>
<span class="tag info">INFO</span>
Unmaintained
</dd>
<dt id="details">Details</dt>
<dd>
<a href="https://github.com/stbuehler/rust-boxfnonce/commit/058ac7e1a7d732076da9d8a37baa66bcb67758d8">
https://github.com/stbuehler/rust-boxfnonce/commit/058ac7e1a7d732076da9d8a37baa66bcb67758d8
</a>
</dd>
<dt id="patched">Patched</dt>
<dd>
no patched versions
</dd>
</dl>
<h3 id="description">Description</h3>
<p><a href="https://github.com/stbuehler/rust-boxfnonce/commit/058ac7e1a7d732076da9d8a37baa66bcb67758d8">This</a> commit marks the <code>boxfnonce</code> crate as obsolete and the GitHub repo has since been archived.</p>
<p>The functionality of <code>boxfnonce</code> has been added to Rust since 1.35.0. Use <code>Box<dyn FnOnce(...) -> ...></code>.</p>
</article>RUSTSEC-2021-0151: ncollide2d is unmaintainedhttps://rustsec.org/advisories/RUSTSEC-2021-0151.html2023-03-12T12:00:00+00:002023-03-12T12:00:00+00:00ncollide2d is unmaintained <article>
<span class="floating-menu">
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/ncollide2d/RUSTSEC-2021-0151.md">History</a> ⋅
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/ncollide2d/RUSTSEC-2021-0151.md">Edit</a>
</span>
<header>
<h1>
RUSTSEC-2021-0151
</h1>
<span class="subtitle"><p>ncollide2d is unmaintained</p>
</span>
</header>
<dl>
<dt id="reported">Reported</dt>
<dd>
<time datetime="2021-01-29">
January 29, 2021
</time>
</dd>
<dt id="issued">Issued</dt>
<dd>
<time datetime="2023-03-12">
March 12, 2023
</time>
</dd>
<dt id="package">Package</dt>
<dd>
<a href="/packages/ncollide2d.html">ncollide2d</a>
(<a href="https://crates.io/crates/ncollide2d">crates.io</a>)
</dd>
<dt id="type">Type</dt>
<dd>
<span class="tag info">INFO</span>
Unmaintained
</dd>
<dt id="details">Details</dt>
<dd>
<a href="https://github.com/dimforge/ncollide">
https://github.com/dimforge/ncollide
</a>
</dd>
<dt id="patched">Patched</dt>
<dd>
no patched versions
</dd>
</dl>
<h3 id="description">Description</h3>
<p>The maintainer has advised that this crate is passively-maintained and that it
is being superseded by the <a href="https://github.com/dimforge/parry">Parry</a> project.</p>
</article>RUSTSEC-2021-0152: Unsoundness in out-referencehttps://rustsec.org/advisories/RUSTSEC-2021-0152.html2023-03-12T12:00:00+00:002023-03-12T12:00:00+00:00`out_reference::Out::from_raw` should be `unsafe` <article>
<span class="floating-menu">
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/out-reference/RUSTSEC-2021-0152.md">History</a> ⋅
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/out-reference/RUSTSEC-2021-0152.md">Edit</a>
</span>
<header>
<h1>
RUSTSEC-2021-0152
</h1>
<span class="subtitle"><p><code>out_reference::Out::from_raw</code> should be <code>unsafe</code></p>
</span>
</header>
<dl>
<dt id="reported">Reported</dt>
<dd>
<time datetime="2021-01-20">
January 20, 2021
</time>
</dd>
<dt id="issued">Issued</dt>
<dd>
<time datetime="2023-03-12">
March 12, 2023
</time>
</dd>
<dt id="package">Package</dt>
<dd>
<a href="/packages/out-reference.html">out-reference</a>
(<a href="https://crates.io/crates/out-reference">crates.io</a>)
</dd>
<dt id="type">Type</dt>
<dd>
<span class="tag info">INFO</span>
Unsound
</dd>
<dt id="categories">Categories</dt>
<dd>
<ul>
<li><a href="/categories/memory-corruption.html">memory-corruption</a></li>
</ul>
</dd>
<dt id="keywords">Keywords</dt>
<dd>
<a href="/keywords/unsound.html">#unsound</a>
<a href="/keywords/raw-pointer.html">#raw-pointer</a>
</dd>
<dt id="details">Details</dt>
<dd>
<a href="https://github.com/RustyYato/out-ref/issues/1">
https://github.com/RustyYato/out-ref/issues/1
</a>
</dd>
<dt id="patched">Patched</dt>
<dd>
<ul>
<li><code>>=0.2.0</code></li>
</ul>
</dd>
<dt id="unaffected">Unaffected</dt>
<dd>
<ul>
<li><code><0.1.0</code></li>
</ul>
</dd>
</dl>
<dl>
<dt>Affected Functions</dt>
<dd>Version</dd>
<dt><code>out_reference::Out::from_raw</code></dt>
<dd>
<ul>
<li><code>>=0.1.0, <0.2.0</code></li>
</ul>
</dd>
</dl>
<h3 id="description">Description</h3>
<p><code>Out::from_raw</code> in affected versions allows writing a value to invalid memory address without requiring <code>unsafe</code>.</p>
<p>The soundness issue has been addressed by making <code>Out::from_raw</code> an unsafe function.</p>
</article>RUSTSEC-2021-0153: encoding is unmaintainedhttps://rustsec.org/advisories/RUSTSEC-2021-0153.html2023-03-12T12:00:00+00:002023-03-12T12:00:00+00:00`encoding` is unmaintained <article>
<span class="floating-menu">
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/encoding/RUSTSEC-2021-0153.md">History</a> ⋅
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/encoding/RUSTSEC-2021-0153.md">Edit</a>
</span>
<header>
<h1>
RUSTSEC-2021-0153
</h1>
<span class="subtitle"><p><code>encoding</code> is unmaintained</p>
</span>
</header>
<dl>
<dt id="reported">Reported</dt>
<dd>
<time datetime="2021-12-05">
December 5, 2021
</time>
</dd>
<dt id="issued">Issued</dt>
<dd>
<time datetime="2023-03-12">
March 12, 2023
</time>
</dd>
<dt id="package">Package</dt>
<dd>
<a href="/packages/encoding.html">encoding</a>
(<a href="https://crates.io/crates/encoding">crates.io</a>)
</dd>
<dt id="type">Type</dt>
<dd>
<span class="tag info">INFO</span>
Unmaintained
</dd>
<dt id="details">Details</dt>
<dd>
<a href="https://github.com/lifthrasiir/rust-encoding/issues/127">
https://github.com/lifthrasiir/rust-encoding/issues/127
</a>
</dd>
<dt id="patched">Patched</dt>
<dd>
no patched versions
</dd>
</dl>
<h3 id="description">Description</h3>
<p>Last release was on 2016-08-28. The <a href="https://github.com/lifthrasiir/rust-encoding/issues/127">issue</a> inquiring as to the status of the crate has gone unanswered by the maintainer.</p>
<h2>Possible alternatives</h2>
<ul>
<li><a href="https://crates.io/crates/encoding_rs">encoding_rs</a></li>
</ul>
</article>RUSTSEC-2020-0168: mach is unmaintainedhttps://rustsec.org/advisories/RUSTSEC-2020-0168.html2023-03-12T12:00:00+00:002023-03-12T12:00:00+00:00mach is unmaintained <article>
<span class="floating-menu">
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/mach/RUSTSEC-2020-0168.md">History</a> ⋅
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/mach/RUSTSEC-2020-0168.md">Edit</a>
</span>
<header>
<h1>
RUSTSEC-2020-0168
</h1>
<span class="subtitle"><p>mach is unmaintained</p>
</span>
</header>
<dl>
<dt id="reported">Reported</dt>
<dd>
<time datetime="2020-07-14">
July 14, 2020
</time>
</dd>
<dt id="issued">Issued</dt>
<dd>
<time datetime="2023-03-12">
March 12, 2023
</time>
</dd>
<dt id="package">Package</dt>
<dd>
<a href="/packages/mach.html">mach</a>
(<a href="https://crates.io/crates/mach">crates.io</a>)
</dd>
<dt id="type">Type</dt>
<dd>
<span class="tag info">INFO</span>
Unmaintained
</dd>
<dt id="details">Details</dt>
<dd>
<a href="https://github.com/fitzgen/mach/issues/63">
https://github.com/fitzgen/mach/issues/63
</a>
</dd>
<dt id="patched">Patched</dt>
<dd>
no patched versions
</dd>
</dl>
<h3 id="description">Description</h3>
<p>Last release was almost 4 years ago.</p>
<p>Maintainer(s) seem to be completely unreachable.</p>
<h2>Possible Alternative(s)</h2>
<p>These may or may not be suitable alternatives and have not been vetted in any way;</p>
<ul>
<li><a href="https://crates.io/crates/mach2">mach2</a> - direct fork</li>
</ul>
</article>RUSTSEC-2023-0020: Unsoundness in const-cstrhttps://rustsec.org/advisories/RUSTSEC-2023-0020.html2023-03-12T12:00:00+00:002023-03-12T12:00:00+00:00const-cstr is Unmaintained <article>
<span class="floating-menu">
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/const-cstr/RUSTSEC-2023-0020.md">History</a> ⋅
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/const-cstr/RUSTSEC-2023-0020.md">Edit</a>
</span>
<header>
<h1>
RUSTSEC-2023-0020
</h1>
<span class="subtitle"><p>const-cstr is Unmaintained</p>
</span>
</header>
<dl>
<dt id="reported">Reported</dt>
<dd>
<time datetime="2023-03-12">
March 12, 2023
</time>
</dd>
<dt id="issued">Issued</dt>
<dd>
<time datetime="2023-03-12">
March 12, 2023
</time>
</dd>
<dt id="package">Package</dt>
<dd>
<a href="/packages/const-cstr.html">const-cstr</a>
(<a href="https://crates.io/crates/const-cstr">crates.io</a>)
</dd>
<dt id="type">Type</dt>
<dd>
<span class="tag info">INFO</span>
Unsound
</dd>
<dt id="details">Details</dt>
<dd>
<a href="https://github.com/abonander/const-cstr">
https://github.com/abonander/const-cstr
</a>
</dd>
<dt id="patched">Patched</dt>
<dd>
no patched versions
</dd>
</dl>
<h3 id="description">Description</h3>
<p>Last release was about five years ago.</p>
<p>The maintainer(s) have been unreachable to respond to any issues that may or may not include security issues.</p>
<p>The repository is now archived and there is no security policy in place to contact the maintainer(s) otherwise.</p>
<p>No direct fork exist.</p>
<h1>const-cstr is Unsound</h1>
<p>The crate violates the safety contract of <a href="https://doc.rust-lang.org/std/ffi/struct.CStr.html#method.from_bytes_with_nul_unchecked">ffi::CStr::from_bytes_with_nul_unchecked</a> used in <code>ConstCStr::as_cstr</code></p>
<p>No interior nul bytes checking is done either by the constructor or the canonical macro to create the <code>ConstCStr</code></p>
<h1>const-cstr Panic</h1>
<p>Additionally the crate may cause runtime panics if statically compiled and ran with any untrusted data that is not nul-terminated.</p>
<p>This is however unlikely but the the crate should not be used for untrusted data in context where panic may create a DoS vector.</p>
<h2>Possible Alternatives</h2>
<p>The below may or may not provide alternative(s)</p>
<ul>
<li><a href="https://docs.rs/const-str/latest/const_str/macro.cstr.html">const_str::cstr!</a></li>
<li><a href="https://crates.io/crates/cstr">cstr::cstr!</a></li>
</ul>
</article>RUSTSEC-2021-0150: ncollide3d is unmaintainedhttps://rustsec.org/advisories/RUSTSEC-2021-0150.html2023-03-12T12:00:00+00:002023-03-12T12:00:00+00:00ncollide3d is unmaintained <article>
<span class="floating-menu">
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/ncollide3d/RUSTSEC-2021-0150.md">History</a> ⋅
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/ncollide3d/RUSTSEC-2021-0150.md">Edit</a>
</span>
<header>
<h1>
RUSTSEC-2021-0150
</h1>
<span class="subtitle"><p>ncollide3d is unmaintained</p>
</span>
</header>
<dl>
<dt id="reported">Reported</dt>
<dd>
<time datetime="2021-01-29">
January 29, 2021
</time>
</dd>
<dt id="issued">Issued</dt>
<dd>
<time datetime="2023-03-12">
March 12, 2023
</time>
</dd>
<dt id="package">Package</dt>
<dd>
<a href="/packages/ncollide3d.html">ncollide3d</a>
(<a href="https://crates.io/crates/ncollide3d">crates.io</a>)
</dd>
<dt id="type">Type</dt>
<dd>
<span class="tag info">INFO</span>
Unmaintained
</dd>
<dt id="details">Details</dt>
<dd>
<a href="https://github.com/dimforge/ncollide">
https://github.com/dimforge/ncollide
</a>
</dd>
<dt id="patched">Patched</dt>
<dd>
no patched versions
</dd>
</dl>
<h3 id="description">Description</h3>
<p>The maintainer has advised that this crate is passively-maintained and that it
is being superseded by the <a href="https://github.com/dimforge/parry">Parry</a> project.</p>
</article>RUSTSEC-2021-0148: nphysics3d is unmaintainedhttps://rustsec.org/advisories/RUSTSEC-2021-0148.html2023-03-11T12:00:00+00:002023-03-11T12:00:00+00:00nphysics3d is unmaintained <article>
<span class="floating-menu">
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/nphysics3d/RUSTSEC-2021-0148.md">History</a> ⋅
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/nphysics3d/RUSTSEC-2021-0148.md">Edit</a>
</span>
<header>
<h1>
RUSTSEC-2021-0148
</h1>
<span class="subtitle"><p>nphysics3d is unmaintained</p>
</span>
</header>
<dl>
<dt id="reported">Reported</dt>
<dd>
<time datetime="2021-01-29">
January 29, 2021
</time>
</dd>
<dt id="issued">Issued</dt>
<dd>
<time datetime="2023-03-11">
March 11, 2023
</time>
</dd>
<dt id="package">Package</dt>
<dd>
<a href="/packages/nphysics3d.html">nphysics3d</a>
(<a href="https://crates.io/crates/nphysics3d">crates.io</a>)
</dd>
<dt id="type">Type</dt>
<dd>
<span class="tag info">INFO</span>
Unmaintained
</dd>
<dt id="details">Details</dt>
<dd>
<a href="https://github.com/dimforge/nphysics">
https://github.com/dimforge/nphysics
</a>
</dd>
<dt id="patched">Patched</dt>
<dd>
no patched versions
</dd>
</dl>
<h3 id="description">Description</h3>
<p>The maintainer has advised that this crate is passively-maintained and that it
is being superseded by the <a href="https://github.com/dimforge/rapier">Rapier</a> project.</p>
</article>