Vulnerability DatabaseGHSA-r24f-hg58-vfrw

GHSA-r24f-hg58-vfrw
Rust vulnerability analysis and mitigation

Overview

The vulnerability (GHSA-r24f-hg58-vfrw) affects the unsafe-libyaml Rust package versions prior to 0.2.10, discovered and disclosed on December 21, 2023. The issue involves unaligned write operations of u64 data types on 32-bit and 16-bit platforms, where memory is allocated using insufficient alignment for usize operations (GitHub Advisory, RustSec Advisory).

Technical details

The vulnerability stems from memory allocation using the alignment of usize while writing u64 data without utilizing core::ptr::write_unaligned. This particularly affects platforms with sub-64bit alignment for usize, including wasm32 and x86 architectures. When using an optimized standard library, the bug results in Undefined Behavior (UB), with varying manifestations depending on optimization settings and hardware configurations. In debug-enabled Rust standard library builds, the issue consistently triggers a non-unwinding panic with the message 'ptr::write requires that the pointer argument is aligned and non-null' (RustSec Advisory).

Impact

The vulnerability affects 32-bit and 16-bit platforms, potentially causing program crashes or undefined behavior. Notably, 64-bit platforms remain unaffected by this issue. The impact manifests primarily in debug builds as deterministic crashes, while in release builds, the behavior is unpredictable due to undefined behavior (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in version 0.2.10 of unsafe-libyaml. The fix involves allocating memory with adequately high alignment across all platforms. Users are advised to upgrade to this version or later to resolve the alignment issues (GitHub Advisory).

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-22698HIGH8.7
  • RustRust
  • sm2
NoNoJan 10, 2026
CVE-2026-22700HIGH7.5
  • RustRust
  • sm2
NoNoJan 10, 2026
CVE-2026-22699HIGH7.5
  • RustRust
  • sm2
NoNoJan 10, 2026
CVE-2026-22705MEDIUM6.4
  • RustRust
  • ml-dsa
NoYesJan 10, 2026
CVE-2025-15504MEDIUM4.8
  • PythonPython
  • lief
NoYesJan 10, 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