ferris-says
Affected
- introduced
0.1.3-0, fixed0.3.1(semver)
Fixed versions
0.3.1
Fix
- Fixed version
0.3.1cargo update -p ferris-says --precise 0.3.1
Advisory
Also known as: GHSA-v363-rrf2-5fmj
Unsound use of str::from_utf8_unchecked on bytes which are not UTF-8
Affected versions receive a &[u8] from the caller through a safe API, and pass
it directly to the unsafe str::from_utf8_unchecked function.
The behavior of ferris_says::say is undefined if the bytes from the caller
don't happen to be valid UTF-8.
The flaw was corrected in [ferris-says#21] by using the safe str::from_utf8
instead, and returning an error on invalid input. However this fix has not yet
been published to crates.io as a patch version for 0.2.
Separately, [ferris-says#32] has introduced a different API for version 0.3
which accepts input as &str rather than &[u8], so is unaffected by this bug.
[ferris-says#21]: https://github.com/rust-lang/ferris-says/pull/21
[ferris-says#32]: https://github.com/rust-lang/ferris-says/pull/32
Not rated by the source.
0.1.3-0, fixed 0.3.1 (semver)0.3.1
0.3.1cargo update -p ferris-says --precise 0.3.1Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: RustSec Advisory Database · CC0-1.0