{"id":"GHSA-2rxc-gjrp-vjhx","revision":"136468e6537740df975fecedba46b3d7","records":[{"revision":"136468e6537740df975fecedba46b3d7","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"GHSA-2rxc-gjrp-vjhx","aliases":["RUSTSEC-2024-0404"],"title":"Unsoundness in anstream","description":"When given a valid UTF8 string \"ö\\x1b\uD83D\uDE00\", the function in crates/anstream/src/adapter/strip.rs will be confused. The UTF8 bytes are \\xc3\\xb6 then \\x1b then \\xf0\\x9f\\x98\\x80.\n\nWhen looping over \"non-printable bytes\" \\x1b\\xf0 will be considered as some non-printable sequence.\n\nThis will produce a broken str from the incorrectly segmented bytes via str::from_utf8_unchecked, and that should never happen.\n\nFull credit goes to @Ralith who reviewed this code and asked @burakemir to follow up.","state":0,"publishedAt":"2024-12-04T18:31:31+00:00","modifiedAt":"2026-09-10T03:50:21.1621554+00:00","affected":[{"ecosystem":"crates.io","name":"anstream","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"0.6.8"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/rust-cli/anstyle/issues/156","https://github.com/rust-cli/anstyle","https://rustsec.org/advisories/RUSTSEC-2024-0404.html"],"sourceUrl":"https://github.com/advisories/GHSA-2rxc-gjrp-vjhx","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-2rxc-gjrp-vjhx","identifiers":["GHSA-2rxc-gjrp-vjhx","RUSTSEC-2024-0404"]},"retained":false,"historicalAffected":[]}],"coverage":[]}