From 829fdd99881990a3b199e94ff53ae503da4864c3 Mon Sep 17 00:00:00 2001 From: "advisory-database[bot]" <45398580+advisory-database[bot]@users.noreply.github.com> Date: Wed, 29 Jan 2025 22:20:07 +0000 Subject: [PATCH] Publish GHSA-jqcp-xc3v-f446 --- .../GHSA-jqcp-xc3v-f446.json | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 advisories/github-reviewed/2025/01/GHSA-jqcp-xc3v-f446/GHSA-jqcp-xc3v-f446.json diff --git a/advisories/github-reviewed/2025/01/GHSA-jqcp-xc3v-f446/GHSA-jqcp-xc3v-f446.json b/advisories/github-reviewed/2025/01/GHSA-jqcp-xc3v-f446/GHSA-jqcp-xc3v-f446.json new file mode 100644 index 00000000000..7ba0bd98469 --- /dev/null +++ b/advisories/github-reviewed/2025/01/GHSA-jqcp-xc3v-f446/GHSA-jqcp-xc3v-f446.json @@ -0,0 +1,52 @@ +{ + "schema_version": "1.4.0", + "id": "GHSA-jqcp-xc3v-f446", + "modified": "2025-01-29T22:19:30Z", + "published": "2025-01-29T22:19:01Z", + "aliases": [], + "summary": "fast-float2 has segmentation fault due to lack of bound check", + "details": "In this case, the \"fast_float2::common::AsciiStr::first\" method within the \"AsciiStr\" struct \nuses the unsafe keyword to reading from memory without performing bounds checking. \nSpecifically, it directly dereferences a pointer offset by \"self.ptr\".\nBecause of the above reason, the method accesses invalid memory address when it takes an empty string as its input.\nThis approach violates Rust’s memory safety guarantees, as it can lead to invalid memory access if empty buffer is provided.\n", + "severity": [], + "affected": [ + { + "package": { + "ecosystem": "crates.io", + "name": "fast-float2" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.2.2" + } + ] + } + ] + } + ], + "references": [ + { + "type": "WEB", + "url": "https://github.com/aldanor/fast-float-rust/issues/38" + }, + { + "type": "PACKAGE", + "url": "https://github.com/Alexhuszagh/fast-float-rust" + }, + { + "type": "WEB", + "url": "https://rustsec.org/advisories/RUSTSEC-2025-0002.html" + } + ], + "database_specific": { + "cwe_ids": [], + "severity": "MODERATE", + "github_reviewed": true, + "github_reviewed_at": "2025-01-29T22:19:01Z", + "nvd_published_at": null + } +} \ No newline at end of file