CVE-2023-36811Archive spoofing vulnerability in borgbackup
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.
What to do
Fixed builds are available from Alpine, Debian, PyPI: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | borgbackup | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | borgbackup | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | borgbackup | Under investigation | UBUNTU-CVE-2023-36811 | |
| Ubuntu 22.04 | borgbackup | Under investigation | UBUNTU-CVE-2023-36811 | |
| Ubuntu 20.04 | borgbackup | Fix pending | UBUNTU-CVE-2023-36811 | |
| Ubuntu 18.04 | borgbackup | Fix pending | UBUNTU-CVE-2023-36811 | |
| Ubuntu 16.04 | borgbackup | Fix pending | UBUNTU-CVE-2023-36811 | |
| Debian 14 | borgbackup | Fixed | 1.2.5-1 | DEBIAN-CVE-2023-36811 |
| Debian 13 | borgbackup | Fixed | 1.2.5-1 | DEBIAN-CVE-2023-36811 |
| Debian 12 | borgbackup | Fix pending | DEBIAN-CVE-2023-36811 | |
| Alpine Linux 3.24 | borgbackup | Fixed | 1.2.6-r0 | ALPINE-CVE-2023-36811 |
| Alpine Linux 3.23 | borgbackup | Fixed | 1.2.6-r0 | ALPINE-CVE-2023-36811 |
| Alpine Linux 3.22 | borgbackup | Fixed | 1.2.6-r0 | ALPINE-CVE-2023-36811 |
| Alpine Linux 3.21 | borgbackup | Fixed | 1.2.6-r0 | ALPINE-CVE-2023-36811 |
| Alpine Linux 3.20 | borgbackup | Fixed | 1.2.6-r0 | ALPINE-CVE-2023-36811 |
| Alpine Linux 3.19 | borgbackup | Fixed | 1.2.6-r0 | ALPINE-CVE-2023-36811 |
| Alpine Linux 3.18 | borgbackup | Fixed | 1.2.6-r0 | ALPINE-CVE-2023-36811 |
| PyPI library | borgbackup | Fixed | 1.2.5 | PYSEC-2023-164 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- borgbackup borg: affected: < 1.2.5
References
- https://github.com/borgbackup/borg/security/advisories/GHSA-8fjr-hghr-4m99
- https://github.com/borgbackup/borg/commit/3eb070191da10c2d3f7bc6484cf3d51c3045f884
- https://github.com/borgbackup/borg/blob/1.2.5-cvedocs/docs/changes.rst#pre-125-archives-spoofing-vulnerability-cve-2023-36811
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZUCQSMAWOJBCRGF6XPKEZ2TPGAPNKIWV/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/5Q3OHXERTU547SEQ3YREZXHOCYNLVD63/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XOZDFIYEBIOKSIEAXUJJJFUJTAJ7TF3C/
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.