CVE-2023-36811: Archive spoofing vulnerability in borgbackup

borgbackup Updated 02 Oct 2025

Summary

30/08/2023
Yes i
Moderate
4.7

CVE-2023-36811: Archive spoofing vulnerability in borgbackup. Affects borgbackup versions < 1.2.5. Fixed in 1.2.5. How to fix ↓

Also tracked for

The same CVE-2023-36811 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

borgbackup is an open-source backup software that provides deduplication and compression capabilities. It allows users to create and manage backups of their files and directories. The vulnerability identified as CVE-2023-36811 affects all versions of borgbackup prior to 1.2.5.

Vulnerability Detail

The vulnerability in borgbackup is related to a flaw in its cryptographic authentication scheme. It enables an attacker to create fake archives and potentially cause data loss in the backup repository. To exploit this vulnerability, the attacker needs to be able to insert files into backups without additional headers and gain write access to the repository. However, the attacker cannot access plaintext or compromise the authenticity of existing archives. While creating plausible fake archives may be challenging for large archives, it is feasible for empty or small archives.

How To Fix

Latest published version: 1.4.5 as of 23 Oct 2026

pip install --upgrade "borgbackup==1.4.5"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.2.5

This is the first release that contains the fix.

pip install --upgrade "borgbackup==1.2.5"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

To avoid data loss after an attack, it is recommended to review the archives for valid timestamps and expected contents after running the 'borg check --repair' command and before executing 'borg prune'. This step helps identify any potential tampering with the backups.

Conclusion

The vulnerability in borgbackup allows attackers to create fake archives and potentially cause data loss in the backup repository. Users should upgrade to version 1.2.5 or later and follow the provided upgrade procedure. It is also recommended to review the archives for any tampering after running 'borg check --repair'. For further support on vulnerability remediation, contact DevNack.com.

See every vulnerability recorded for borgbackup →

Share this vulnerability

FAQ

borgbackup is an open-source backup software that provides deduplication and compression capabilities. It allows users to create and manage backups of their files and directories.

The vulnerability allows an attacker to create fake archives and potentially cause data loss in the backup repository. However, it does not disclose plaintext or compromise the authenticity of existing archives.

All versions of borgbackup prior to 1.2.5 are affected by this vulnerability.

To fix this vulnerability, upgrade to borgbackup version 1.2.5 or later and follow the provided upgrade procedure.

A workaround to avoid data loss after an attack is to review the archives for valid timestamps and expected contents after running 'borg check --repair' and before executing 'borg prune'.

Related vulnerabilities

Recent vulnerabilities recorded for borgbackup.

How To Fix

Latest published version: 1.4.5 as of 23 Oct 2026

pip install --upgrade "borgbackup==1.4.5"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.2.5

This is the first release that contains the fix.

pip install --upgrade "borgbackup==1.2.5"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback