borg extract might modify out-of-tree files when extracting maliciously crafted archives

State
Published
Severity
5.3 Medium
Published
Nov 5, 2026
Updated
Nov 9, 2026
Reserved
Jul 13, 2026

Read the record on cve.org

Description

borgbackup is an opensource, deduplicating archiver with compression and authenticated encryption. Prior to 1.4.5 and 2.0.0b22, extracting a malicious archive can follow a symlinked parent path or resolve embedded dot-dot path components and delete or overwrite files outside the extraction directory. A crafted slave hardlink can also use an attacker-controlled hardlink source outside the extraction directory and hard-link that file into the restored tree, disclosing its contents. Creating the malicious archive requires repository access and, for encrypted or authenticated repositories, the Borg key and passphrase; a victim must then extract the archive. This issue is fixed in versions 1.4.5 and 2.0.0b22.

ProductVersions
borg borgbackup< 1.4.5 Affected>= 2.0.0b1, < 2.0.0b22 Affected

Weaknesses

  • CWE-59 Improper Link Resolution Before File Access ('Link Following')

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.