{"id":"CVE-2026-62268","summary":"borg extract might modify out-of-tree files when extracting maliciously crafted archives","details":"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.","aliases":["GHSA-gfp8-w835-v44j"],"modified":"2026-11-07T02:48:41.112347957Z","published":"2026-11-05T20:28:48.031Z","database_specific":{"cwe_ids":["CWE-59"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/62xxx/CVE-2026-62268.json","cna_assigner":"GitHub_M"},"references":[{"type":"WEB","url":"https://github.com/borgbackup/borg/releases/tag/1.4.5"},{"type":"WEB","url":"https://github.com/borgbackup/borg/releases/tag/2.0.0b22"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/62xxx/CVE-2026-62268.json"},{"type":"ADVISORY","url":"https://github.com/borgbackup/borg/security/advisories/GHSA-gfp8-w835-v44j"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-62268"},{"type":"FIX","url":"https://github.com/borgbackup/borg/commit/0ac568e290518c3bbe781459978720dde7fab224"},{"type":"FIX","url":"https://github.com/borgbackup/borg/commit/141888f2fabcd57a300547c2aa63212cb213924d"},{"type":"FIX","url":"https://github.com/borgbackup/borg/commit/2d632531028b09da8ab5d1450f89bebcc205d640"},{"type":"FIX","url":"https://github.com/borgbackup/borg/commit/3e9ed6d1ad6d3531b39c07b8ef3ecf41fce4437f"},{"type":"FIX","url":"https://github.com/borgbackup/borg/commit/4f37fdfed10b50559a0dd333b0d5581c642af329"},{"type":"FIX","url":"https://github.com/borgbackup/borg/commit/d907f2cb57337041c4fa55ca4682895535e5076b"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/borgbackup/borg","events":[{"introduced":"0"},{"fixed":"1b7d3271d2e59e27c61815ff36a29e06a9767e13"},{"introduced":"f5b7ae5b30f569566c0e1d83cf5cf5c640f4b932"},{"fixed":"05aa93444e99076fc30743d3769442a0eefd6f88"},{"fixed":"0ac568e290518c3bbe781459978720dde7fab224"},{"fixed":"141888f2fabcd57a300547c2aa63212cb213924d"},{"fixed":"2d632531028b09da8ab5d1450f89bebcc205d640"},{"fixed":"3e9ed6d1ad6d3531b39c07b8ef3ecf41fce4437f"},{"fixed":"4f37fdfed10b50559a0dd333b0d5581c642af329"},{"fixed":"d907f2cb57337041c4fa55ca4682895535e5076b"}],"database_specific":{"extracted_events":[{"strategy":"StringRangeExpression","range":[{"introduced":"0"},{"fixed":"1.4.5"}],"source":"AFFECTED_FIELD"},{"source":"AFFECTED_FIELD","strategy":"StringRangeExpression","range":[{"introduced":"2.0.0b1"},{"fixed":"2.0.0b22"}]},{"range":[{"fixed":"0ac568e290518c3bbe781459978720dde7fab224"}],"source":"REFERENCES_COMMIT"},{"source":"REFERENCES_COMMIT","range":[{"fixed":"141888f2fabcd57a300547c2aa63212cb213924d"}]},{"source":"REFERENCES_COMMIT","range":[{"fixed":"2d632531028b09da8ab5d1450f89bebcc205d640"}]},{"range":[{"fixed":"3e9ed6d1ad6d3531b39c07b8ef3ecf41fce4437f"}],"source":"REFERENCES_COMMIT"},{"range":[{"fixed":"4f37fdfed10b50559a0dd333b0d5581c642af329"}],"source":"REFERENCES_COMMIT"},{"range":[{"fixed":"d907f2cb57337041c4fa55ca4682895535e5076b"}],"source":"REFERENCES_COMMIT"},{"original_tag":"1.4.5","range":[{"fixed":"1b7d3271d2e59e27c61815ff36a29e06a9767e13"}],"source":"REFERENCES_TAG"},{"range":[{"fixed":"05aa93444e99076fc30743d3769442a0eefd6f88"}],"source":"REFERENCES_TAG","original_tag":"2.0.0b22"}]}}],"versions":["1.4.0dev0","1.2.5-cvedocs","2.0.0.dev0","1.3.0dev0","1.2.0","1.2.0dev0","1.1.0.dev0","1.1.0b1","1.1.dev0","1.0.0","1.0.0rc2","1.0.0rc1","0.30.0","0.29.0","0.28.2","0.28.1","0.28.0","0.27.0","0.26.1","0.26.0","0.25.0","0.24.0","0.23.0","0.14","0.13","0.12","0.11","0.10","0.9","0.8.1","0.8","0.7","0.6.1","0.6"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-62268.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:L/AT:P/PR:H/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N"}]}