CVE-2021-25904
Rust vulnerability analysis and mitigation

Overview

An issue was discovered in the av-data crate before 0.3.0 for Rust. A raw pointer is dereferenced in the Frame::copy_from_raw_parts() function, leading to a read of an arbitrary memory address, sometimes causing a segfault. The vulnerability was discovered on January 7, 2021 and disclosed on January 19, 2021 (RustSec Advisory).

Technical details

The vulnerability exists in the Frame::copy_from_raw_parts() function, which is a safe API that can take and dereference a raw pointer. The function allows reading arbitrary memory addresses through improperly fed pointers without requiring unsafe blocks. The vulnerability has been assigned a CVSS v3.1 base score of 7.5 (HIGH) with vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (RustSec Advisory).

Impact

This vulnerability allows attackers to read arbitrary memory addresses, which could lead to information exposure. Additionally, if an invalid memory address pointer is provided to the API, it may cause the program to crash through a segmentation fault, resulting in a denial of service condition (RustSec Advisory).

Exploitability

The vulnerability is highly exploitable as it requires no special privileges or user interaction. It can be triggered by providing malicious input to the affected API function, making it accessible through network vectors (RustSec Advisory).

Mitigation and workarounds

The vulnerability was fixed in version 0.3.0 of the av-data crate by removing the unsafe Frame::copy_from_raw_parts() API function. Users should upgrade to version 0.3.0 or later to address this security issue (RustSec 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-68537HIGH7.5
  • Rust logoRust
  • fulgur
NoYesSep 17, 2026
CVE-2026-68523HIGH7.5
  • Rust logoRust
  • fulgur
NoYesSep 17, 2026
RUSTSEC-2026-0289NONEN/A
  • Rust logoRust
  • pqc_kyber
NoNoSep 17, 2026
RUSTSEC-2026-0287NONEN/A
  • Rust logoRust
  • cosmian_kyber
NoNoSep 17, 2026
RUSTSEC-2026-0286NONEN/A
  • Rust logoRust
  • cryptoki
NoYesSep 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