Archive spoofing vulnerability in borgbackup
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- High
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- None · High · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-347.
Summary
borgbackup is an opensource, deduplicating archiver with compression and authenticated encryption. A flaw in the cryptographic authentication scheme in borgbackup allowed an attacker to fake archives and potentially indirectly cause backup data loss in the repository. The attack requires an attacker to be able to: 1. insert files (with no additional headers) into backups and 2. gain write access to the repository. This vulnerability does not disclose plaintext to the attacker, nor does it affect the authenticity of existing archives. Creating plausible fake archives may be feasible for empty or small archives, but is unlikely for large archives. The issue has been fixed in borgbackup 1.2.5. Users are advised to upgrade. Additionally to installing the fixed code, users must follow the upgrade procedure as documented in the change log. Data loss after being attacked can be avoided by reviewing the archives (timestamp and contents valid and as expected) after any "borg check --repair" and before "borg prune". There are no known workarounds for this vulnerability.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| borgbackup | borg | before 1.2.5 | 1.2.5 | Patch available | CNA |
| — | borgbackup (PyPI) | before 1.2.5 | 1.2.5 | Patch available | GHSA-8fjr-hghr-4m99 |
- borg Vendorborgbackup Affected before 1.2.5 Fixed in 1.2.5 Patch available CNA
- borgbackup (PyPI) Vendor— Affected before 1.2.5 Fixed in 1.2.5 Patch available GHSA-8fjr-hghr-4m99
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:borgbackup:borg:*:*:*:*:*:*:*:* | before 1.2.5 | Vulnerable | borgbackup |
- cpe:2.3:a:borgbackup:borg:*:*:*:*:*:*:*:* Versions before 1.2.5 Vulnerable ·borgbackup
Remediation
- Fix · CNA borg (borgbackup) Fixed in 1.2.5
- Fix · GHSA-8fjr-hghr-4m99 borgbackup (PyPI) Fixed in 1.2.5 Advisory →
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2023-36811
- 2026-10-03 Alias added: GHSA-8fjr-hghr-4m99
References
Advisory 3
Other 9
- https://lists.fedoraproject.org/archives/list/[email protected]/message/ZUCQSMAWOJBCRGF6XPKEZ2TPGAPNKIWV/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/5Q3OHXERTU547SEQ3YREZXHOCYNLVD63/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/XOZDFIYEBIOKSIEAXUJJJFUJTAJ7TF3C/
- https://github.com/borgbackup/borg
- https://github.com/borgbackup/borg/blob/1.2.6/docs/changes.rst#pre-125-archives-spoofing-vulnerability-cve-2023-36811
- https://github.com/pypa/advisory-database/tree/main/vulns/borgbackup/PYSEC-2023-164.yaml
- https://lists.fedoraproject.org/archives/list/[email protected]/message/5Q3OHXERTU547SEQ3YREZXHOCYNLVD63
- https://lists.fedoraproject.org/archives/list/[email protected]/message/XOZDFIYEBIOKSIEAXUJJJFUJTAJ7TF3C
- https://lists.fedoraproject.org/archives/list/[email protected]/message/ZUCQSMAWOJBCRGF6XPKEZ2TPGAPNKIWV
More borgbackup Borg vulnerabilities
- TI-2017-11651 Incorrect implementation of access controls allows remote users to override repository… CVSS 3.0HIGH 8.8
Sources
- CVE-2023-36811 · CVE Program
- CVE-2023-36811 · NVD
- FIRST EPSS
- GHSA-8fjr-hghr-4m99 · GitHub Advisory Database · CC BY 4.0
- CVE-2023-36811 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences