Vulnerability DatabaseGHSA-g6pw-999w-j75m

GHSA-g6pw-999w-j75m
Rust vulnerability analysis and mitigation

Overview

The vulnerability (GHSA-g6pw-999w-j75m) affects the elfrs Rust crate, which is an ELF header parsing library. The issue was discovered due to unsafe sections in the code that don't perform proper pointer validation. The vulnerability was reported on October 31, 2022, and officially issued on January 15, 2023. It affects all versions of elfrs below 0.3.0 (RustSec).

Technical details

The vulnerability stems from unsafe code sections that fail to validate pointer operations properly. A key example is in the section_header_raw() function, where the code processes section header offsets without bounds checking. The function takes the section header offset and entry number from the ELF header and creates a pointer to the section header array using unsafe Rust operations. This implementation assumes valid input data but doesn't verify that the offset remains within the bounds of the header (GitHub Advisory).

Impact

When processing malicious or malformed input, the vulnerability can lead to the creation of pointers to arbitrary addresses in the process's address space. During fuzz testing, this resulted in program crashes through SIGABRT (signal 6) or SEGV (signal 11) signals (RustSec).

Mitigation and workarounds

The vulnerability has been patched in version 0.3.0 of the elf_rs crate. The recommended mitigation is to upgrade to this version or later. For cases where upgrading isn't immediately possible, the function should either be marked as unsafe with appropriate documentation about input validation responsibilities, or implement proper bounds checking for header offsets (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-2025-66627HIGH8.4
  • RustRust
  • wasmi
NoYesDec 09, 2025
GHSA-xrv8-2pf5-f3q7MEDIUM6
  • RustRust
  • nitro-tpm-pcr-compute
NoYesDec 05, 2025
CVE-2025-67487MEDIUM5.5
  • RustRust
  • static-web-server
NoYesDec 09, 2025
CVE-2025-66622LOW1.3
  • RustRust
  • matrix-sdk-base
NoYesDec 09, 2025
RUSTSEC-2025-0135N/AN/A
  • RustRust
  • matrix-sdk-base
NoYesDec 08, 2025

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