Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new vulnerability in #125

Merged
merged 4 commits into from
Jan 31, 2025
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 19 additions & 11 deletions input/new.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,23 @@
{
"package_name": "",
"package_name": "fast-float",
"patch_versions": [],
"vulnerable_ranges": [],
"cwe": [],
"tldr": "",
"doest_this_affect_me": "",
"how_to_fix": "",
"vulnerable_to": "",
"vulnerable_ranges": [
[
"0.1.0",
"0.2.0"
]
],
"cwe": [
"CWE-125"
],
"tldr": "In this case, the `fast_float::common::AsciiStr::first` method within the `AsciiStr` struct uses the unsafe keyword to reading from memory without performing bounds checking. Specifically, it directly dereferences a pointer offset by `self.ptr`. Because of the above reason, the method accesses invalid memory address when it takes an empty string as its input. This approach violates Rust’s memory safety guarantees, as it can lead to invalid memory access if empty buffer is provided.\nNo patched version for `fast-float` crate has been released, but a patch is available in the `fast-float2` fork.",
"doest_this_affect_me": "You are affected if you use the `fast-float` package.",
"how_to_fix": "Remove `fast-float` from your application and replace with the `fast-float2` package version `>=0.2.2`.",
"reporter": "",
"vulnerable_to": "Out-of-bounds Read",
"related_cve_id": "",
"language": "",
"severity_class": "",
"aikido_score": 0,
"changelog": ""
"language": "RUST",
"severity_class": "LOW",
"aikido_score": 26,
"changelog": "https://github.com/aldanor/fast-float-rust/issues/38"
}