Skip to content

Commit 4a5cb58

Browse files
1 parent 829fdd9 commit 4a5cb58

File tree

2 files changed

+58
-2
lines changed

2 files changed

+58
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"schema_version": "1.4.0",
3+
"id": "GHSA-8655-xgh5-5vvq",
4+
"modified": "2025-01-29T22:21:18Z",
5+
"published": "2025-01-29T22:21:17Z",
6+
"aliases": [],
7+
"summary": "fast-fault has a segmentation fault due to lack of bound check",
8+
"details": "In this case, the \"fast_float::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\nNo patched version for fast-float crate has been released, but a patch is available in the fast-float2 fork.\n",
9+
"severity": [],
10+
"affected": [
11+
{
12+
"package": {
13+
"ecosystem": "crates.io",
14+
"name": "fast-float"
15+
},
16+
"ranges": [
17+
{
18+
"type": "ECOSYSTEM",
19+
"events": [
20+
{
21+
"introduced": "0"
22+
},
23+
{
24+
"last_affected": "0.2.0"
25+
}
26+
]
27+
}
28+
]
29+
}
30+
],
31+
"references": [
32+
{
33+
"type": "WEB",
34+
"url": "https://github.com/aldanor/fast-float-rust/issues/38"
35+
},
36+
{
37+
"type": "PACKAGE",
38+
"url": "https://github.com/aldanor/fast-float-rust"
39+
},
40+
{
41+
"type": "WEB",
42+
"url": "https://rustsec.org/advisories/RUSTSEC-2025-0003.html"
43+
}
44+
],
45+
"database_specific": {
46+
"cwe_ids": [],
47+
"severity": "MODERATE",
48+
"github_reviewed": true,
49+
"github_reviewed_at": "2025-01-29T22:21:17Z",
50+
"nvd_published_at": null
51+
}
52+
}

advisories/github-reviewed/2025/01/GHSA-jqcp-xc3v-f446/GHSA-jqcp-xc3v-f446.json

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"schema_version": "1.4.0",
33
"id": "GHSA-jqcp-xc3v-f446",
4-
"modified": "2025-01-29T22:19:30Z",
4+
"modified": "2025-01-29T22:21:13Z",
55
"published": "2025-01-29T22:19:01Z",
66
"aliases": [],
7-
"summary": "fast-float2 has segmentation fault due to lack of bound check",
7+
"summary": "fast-float2 has a segmentation fault due to lack of bound check",
88
"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",
99
"severity": [],
1010
"affected": [
@@ -33,6 +33,10 @@
3333
"type": "WEB",
3434
"url": "https://github.com/aldanor/fast-float-rust/issues/38"
3535
},
36+
{
37+
"type": "WEB",
38+
"url": "https://github.com/Alexhuszagh/fast-float-rust/pull/7"
39+
},
3640
{
3741
"type": "PACKAGE",
3842
"url": "https://github.com/Alexhuszagh/fast-float-rust"

0 commit comments

Comments
 (0)