CVE catalog

CVE-2026-70622

tar-rs versions 0.4.11 through 0.4.46 contain a symlink escape vulnerability in the Builder::append_dir_all() function that allows attackers to read files outside the intended source root directory by

[CVE catalog]

Severity
High · CVSS 7.1CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Published
Source
[NVD] · [CVE record]
EPSS
0.46% · Oct 25, 2026

tar-rs versions 0.4.11 through 0.4.46 contain a symlink escape vulnerability in the Builder::append_dir_all() function that allows attackers to read files outside the intended source root directory by planting symlinks in an attacker-controlled directory. When a privileged process archives an untrusted directory, the function follows symlinks without verifying that resolved targets remain within the source root, causing out-of-bounds files to be included in the archive as regular files and disclosed to the attacker.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianrust-tarsid0.4.46-1vulnerable
Debianrust-tarforky0.4.46-1vulnerable
Debianrust-tartrixie0.4.43-4vulnerable
Debianrust-tarbookworm0.4.38-1vulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianrust-tarsourcesid(unfixed)unimportantNot reported[1144402]
Debianrust-tarsourceforky(unfixed)unimportantNot reported[1144402]
Debianrust-tarsourcetrixie(unfixed)unimportantNot reported[1144402]
Debianrust-tarsourcebookworm(unfixed)unimportantNot reported[1144402]

[Debian bug #1144402]

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [librust-tar-dev]Affected

    Source package: [rust-tar]

    Details (2)
    • 0.4.38-1 · amd64 · bookworm

      Affected

      nvd · rust-tar · debian · bookworm; nvd · rust-tar · debian · 12

    • 0.4.38-1 · arm64 · bookworm

      Affected

      nvd · rust-tar · debian · bookworm; nvd · rust-tar · debian · 12

  • Source package: [rustc]

    Details (2)
    • 1.63.0+dfsg1-2 · amd64 · bookworm

      Affected

      nvd · rustc · debian · bookworm

    • 1.63.0+dfsg1-2 · arm64 · bookworm

      Affected

      nvd · rustc · debian · bookworm

  • [libstd-rust-dev]Affected

    Source package: [rustc]

    Details (2)
    • 1.63.0+dfsg1-2 · amd64 · bookworm

      Affected

      nvd · rustc · debian · bookworm

    • 1.63.0+dfsg1-2 · arm64 · bookworm

      Affected

      nvd · rustc · debian · bookworm

  • Source package: [rustc]

    Details (2)
    • 1.63.0+dfsg1-2 · all · bookworm

      Affected

      nvd · rustc · debian · bookworm

    • 1.63.0+dfsg1-2 · all · bookworm

      Affected

      nvd · rustc · debian · bookworm

  • Source package: [rustc]

    Details (1)
    • 1.63.0+dfsg1-2 · amd64 · bookworm

      Affected

      nvd · rustc · debian · bookworm

  • [rust-all]Affected

    Source package: [rustc]

    Details (2)
    • 1.63.0+dfsg1-2 · all · bookworm

      Affected

      nvd · rustc · debian · bookworm

    • 1.63.0+dfsg1-2 · all · bookworm

      Affected

      nvd · rustc · debian · bookworm

  • [rustc]Affected
    Details (2)
    • 1.63.0+dfsg1-2 · amd64 · bookworm

      Affected

      nvd · rustc · debian · bookworm

    • 1.63.0+dfsg1-2 · arm64 · bookworm

      Affected

      nvd · rustc · debian · bookworm

  • [rust-clippy]Affected

    Source package: [rustc]

    Details (2)
    • 1.63.0+dfsg1-2 · amd64 · bookworm

      Affected

      nvd · rustc · debian · bookworm

    • 1.63.0+dfsg1-2 · arm64 · bookworm

      Affected

      nvd · rustc · debian · bookworm

  • [rust-doc]Affected

    Source package: [rustc]

    Details (2)
    • 1.63.0+dfsg1-2 · all · bookworm

      Affected

      nvd · rustc · debian · bookworm

    • 1.63.0+dfsg1-2 · all · bookworm

      Affected

      nvd · rustc · debian · bookworm

  • [rustfmt]Affected

    Source package: [rustc]

    Details (2)
    • 1.63.0+dfsg1-2 · amd64 · bookworm

      Affected

      nvd · rustc · debian · bookworm

    • 1.63.0+dfsg1-2 · arm64 · bookworm

      Affected

      nvd · rustc · debian · bookworm

  • [rust-gdb]Affected

    Source package: [rustc]

    Details (2)
    • 1.63.0+dfsg1-2 · all · bookworm

      Affected

      nvd · rustc · debian · bookworm

    • 1.63.0+dfsg1-2 · all · bookworm

      Affected

      nvd · rustc · debian · bookworm

  • [rust-lldb]Affected

    Source package: [rustc]

    Details (2)
    • 1.63.0+dfsg1-2 · all · bookworm

      Affected

      nvd · rustc · debian · bookworm

    • 1.63.0+dfsg1-2 · all · bookworm

      Affected

      nvd · rustc · debian · bookworm

  • [rust-src]Affected

    Source package: [rustc]

    Details (2)
    • 1.63.0+dfsg1-2 · all · bookworm

      Affected

      nvd · rustc · debian · bookworm

    • 1.63.0+dfsg1-2 · all · bookworm

      Affected

      nvd · rustc · debian · bookworm

[Debian 13 (Trixie)]

  • [librust-tar-dev]Affected

    Source package: [rust-tar]

    Details (2)
    • 0.4.43-4 · amd64 · trixie

      Affected

      nvd · rust-tar · debian · 13

    • 0.4.43-4 · arm64 · trixie

      Affected

      nvd · rust-tar · debian · 13

Observed:

References