Advisory record · RUSTSEC-2026-0425

`nix-nar`: `Decoder::unpack` writes archive entries outside the destination directory (path traversal)

CVSS 7.5 High

Published by OSV at 30 Oct 2026, 12:00 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
nix-narcrates.io>=0.0.0-0, <0.6.00.6.0
Identifiers
RUSTSEC-2026-0425
Published
30 Oct 2026
Updated
30 Oct 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

Versions of the nix-nar crate before 0.6.0 are affected. When a malicious NAR archive is unpacked with Decoder::unpack, its entries can be written outside the destination directory, through a symlink created earlier in the same archive followed by an entry that passes through it. An attacker who can supply the archive can create new files wherever the unpacking process has write access, and the source says this could be escalated to code execution. Upgrade to nix-nar 0.6.0 or later. The source lists no other workaround.

Written 3 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
7.5 High 3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N OSV
  • CISA KEV Not listed.
  • EPSS No score.

Timeline

  1. 31 Oct 2026, 14:24 UTC First seen by agentprime
  2. 31 Oct 2026, 14:24 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.