Vulnerability DatabaseRUSTSEC-2025-0002

RUSTSEC-2025-0002
Rust vulnerability analysis and mitigation

Overview

A null pointer dereference vulnerability was discovered in the AsciiStr struct's first method within the fast-float-rust library. The vulnerability allows arbitrary memory access when an empty buffer is provided, potentially leading to undefined behavior and segmentation faults (Github Issue).

Technical details

The vulnerability exists in the first method of the AsciiStr struct, which uses unsafe Rust code to directly dereference a pointer without performing bounds checking. When an empty buffer is provided to the struct, the code attempts to access memory at an invalid location, triggering undefined behavior. The issue was confirmed using Address Sanitizer (ASan) which detected a stack-buffer-overflow and segmentation fault when testing with an empty buffer (Github Issue).

Impact

This vulnerability could allow an attacker to cause program crashes through segmentation faults when providing empty buffers to the AsciiStr struct. While direct exploitation may be challenging, it undermines Rust's memory safety guarantees and could potentially be used as part of a larger attack chain (Github Issue).

Mitigation and workarounds

The issue has been patched in fast-float2 version 0.2.2 by modifying the first method to return an Option type and implementing proper bounds checking. Users are recommended to upgrade to this version or later to address the vulnerability (Github Issue).

Additional resources


SourceThis report was generated using AI

Related Rust vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-22863CRITICAL9.2
  • RustRust
  • deno
NoYesJan 15, 2026
CVE-2026-23519HIGH8.9
  • RustRust
  • cmov
NoYesJan 15, 2026
RUSTSEC-2026-0003HIGH8.9
  • RustRust
  • cmov
NoYesJan 14, 2026
CVE-2026-22864HIGH8.1
  • RustRust
  • deno
NoYesJan 15, 2026
CVE-2026-22782LOW2.9
  • RustRust
  • rustfs
NoYesJan 16, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management