From 00102a664b7d9dc193c20ec349de383f6155a76f Mon Sep 17 00:00:00 2001 From: "advisory-database[bot]" <45398580+advisory-database[bot]@users.noreply.github.com> Date: Wed, 4 Dec 2024 18:32:43 +0000 Subject: [PATCH] Publish GHSA-2rxc-gjrp-vjhx --- .../GHSA-2rxc-gjrp-vjhx.json | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 advisories/github-reviewed/2024/12/GHSA-2rxc-gjrp-vjhx/GHSA-2rxc-gjrp-vjhx.json diff --git a/advisories/github-reviewed/2024/12/GHSA-2rxc-gjrp-vjhx/GHSA-2rxc-gjrp-vjhx.json b/advisories/github-reviewed/2024/12/GHSA-2rxc-gjrp-vjhx/GHSA-2rxc-gjrp-vjhx.json new file mode 100644 index 00000000000..31e47c2fe01 --- /dev/null +++ b/advisories/github-reviewed/2024/12/GHSA-2rxc-gjrp-vjhx/GHSA-2rxc-gjrp-vjhx.json @@ -0,0 +1,52 @@ +{ + "schema_version": "1.4.0", + "id": "GHSA-2rxc-gjrp-vjhx", + "modified": "2024-12-04T18:31:31Z", + "published": "2024-12-04T18:31:31Z", + "aliases": [], + "summary": "Unsoundness in anstream", + "details": "When given a valid UTF8 string \"ö\\x1b😀\", 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.", + "severity": [], + "affected": [ + { + "package": { + "ecosystem": "crates.io", + "name": "anstream" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.6.8" + } + ] + } + ] + } + ], + "references": [ + { + "type": "WEB", + "url": "https://github.com/rust-cli/anstyle/issues/156" + }, + { + "type": "PACKAGE", + "url": "https://github.com/rust-cli/anstyle" + }, + { + "type": "WEB", + "url": "https://rustsec.org/advisories/RUSTSEC-2024-0404.html" + } + ], + "database_specific": { + "cwe_ids": [], + "severity": "MODERATE", + "github_reviewed": true, + "github_reviewed_at": "2024-12-04T18:31:31Z", + "nvd_published_at": null + } +} \ No newline at end of file