Vulnerability DatabaseRUSTSEC-2026-0425

RUSTSEC-2026-0425: 
Rust vulnerability analysis and mitigation

Decoder::unpack does not safely contain the paths it extracts, so a malicious NAR archive can create files outside the destination directory — a path traversal (CWE-22). In src/dec.rs (Decoder::unpack):

  • A symlink entry's target is written without checking where it points (src/dec.rs:153), so the archive can create a symlink that escapes the destination directory.
  • The out-of-destination containment check compares path strings only and does not account for symlinks created earlier in the same unpack (src/dec.rs:176-181), before reaching the write sinks (std::fs::create_dir at src/dec.rs:201 and OpenOptions::open at src/dec.rs:218).
  • The parser also accepts entry names containing / (src/parser.rs:138-147). Combined, a malicious archive can include a symlink a pointing at an external directory and then an entry named a/b, causing b to be written to

<external>/b, outside the destination. This can create new files anywhere the process can write (it cannot overwrite existing files), which is escalatable to code execution by planting files in attacker-chosen locations.


Source: NVD

Related Rust vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

RUSTSEC-2026-0425HIGH7.5
  • Rust logoRust
  • nix-nar
NoYesOct 30, 2026
GHSA-2g9c-9w5g-4wrrMEDIUM5
  • Rust logoRust
  • openleadr-vtn
NoYesOct 30, 2026
RUSTSEC-2026-0428NONEN/A
  • Rust logoRust
  • orion
NoYesOct 30, 2026
RUSTSEC-2026-0426NONEN/A
  • Rust logoRust
  • orion
NoYesOct 30, 2026
GHSA-xcc6-f2jq-43x6MEDIUMN/A
  • Rust logoRust
  • orion
NoYesOct 29, 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

Additional Wiz resources

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