CVEfocus › CVE database › CVE-2023-36811

CVE-2023-36811Archive spoofing vulnerability in borgbackup

CVSS 4.7 MediumEPSS 0.1% (higher than 1% of CVEs)Published 2023-08-30Updated 2025-02-13Assigner: GitHub_M

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.

CWE-347

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

10Fixed
4Fix pending
2Under investigation
2Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04borgbackupNot affected
vulnerable_code_not_present
Ubuntu 25.10borgbackupNot affected
vulnerable_code_not_present
Ubuntu 24.04borgbackupUnder investigationUBUNTU-CVE-2023-36811
Ubuntu 22.04borgbackupUnder investigationUBUNTU-CVE-2023-36811
Ubuntu 20.04borgbackupFix pendingUBUNTU-CVE-2023-36811
Ubuntu 18.04borgbackupFix pendingUBUNTU-CVE-2023-36811
Ubuntu 16.04borgbackupFix pendingUBUNTU-CVE-2023-36811
Debian 14borgbackupFixed1.2.5-1DEBIAN-CVE-2023-36811
Debian 13borgbackupFixed1.2.5-1DEBIAN-CVE-2023-36811
Debian 12borgbackupFix pendingDEBIAN-CVE-2023-36811
Alpine Linux 3.24borgbackupFixed1.2.6-r0ALPINE-CVE-2023-36811
Alpine Linux 3.23borgbackupFixed1.2.6-r0ALPINE-CVE-2023-36811
Alpine Linux 3.22borgbackupFixed1.2.6-r0ALPINE-CVE-2023-36811
Alpine Linux 3.21borgbackupFixed1.2.6-r0ALPINE-CVE-2023-36811
Alpine Linux 3.20borgbackupFixed1.2.6-r0ALPINE-CVE-2023-36811
Alpine Linux 3.19borgbackupFixed1.2.6-r0ALPINE-CVE-2023-36811
Alpine Linux 3.18borgbackupFixed1.2.6-r0ALPINE-CVE-2023-36811
PyPI libraryborgbackupFixed1.2.5PYSEC-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.

References

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.