Every CVE Search/ Get API key

CVE-2023-36811

Archive spoofing vulnerability in borgbackup

4.7 MediumFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Local
Complexity
High
Privileges needed
Low
User interaction
None

What an attacker can affect

Confidentiality
None
Integrity
High
Availability
None

Exploit likelihood

0.11%Up 0.1 points since Aug 31, 2023
90%50%10%1%

What each source reports

CVE List Score used 4.7

Archive 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.

Record
CVE-2023-36811
CVSS 3.1
4.7 MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N
Weakness
CWE-347
Updated
2026-11-02
EUVDEUVD-2023-0050 4.7

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.

Record
EUVD-2023-0050
CVSS 3.1
4.7 MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N
Updated
2026-11-03
GitHub AdvisoriesGHSA-8fjr-hghr-4m99 6.0

Archive spoofing vulnerability in borgbackup

Impact

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
  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.

Affected are all borgbackup releases prior to 1.2.5.

Note: CVSS scoring model seemed to badly fit for this case, thus I manually set score to "moderate".

Patches

The issue has been fixed in borgbackup 1.2.5. But there was a bug in 1.2.5 upgrade instructions, thus 1.2.6 with an important fix in docs and code was released a day afterwards.

Additionally to installing the fixed code, users must follow the upgrade procedure as documented in the latest version of the change log.

Workarounds

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".

References

https://github.com/borgbackup/borg/blob/1.2.6/docs/changes.rst#pre-125-archives-spoofing-vulnerability-cve-2023-36811

Record
GHSA-8fjr-hghr-4m99
CVSS 4.0
6.0 MediumCVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
CVSS 3.1
4.7 MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N
Weakness
CWE-347
Updated
2026-11-02
NVD 4.7

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.

Record
CVE-2023-36811
CVSS 3.1
4.7 MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N
Weakness
CWE-347
Updated
2026-11-02
OSVALPINE-CVE-2023-36811 4.7

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.

Record
ALPINE-CVE-2023-36811
CVSS 3.1
4.7 MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N
Updated
2026-11-03
OSV 4.7

Archive 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.

Record
CVE-2023-36811
CVSS 3.1
4.7 MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N
Weakness
CWE-347
Updated
2026-11-02
Show 5 moreShow less
OSVDEBIAN-CVE-2023-36811 4.7

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.

Record
DEBIAN-CVE-2023-36811
CVSS 3.1
4.7 MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N
Updated
2026-11-02
OSVGHSA-8fjr-hghr-4m99 6.0

Archive spoofing vulnerability in borgbackup

Impact

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
  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.

Affected are all borgbackup releases prior to 1.2.5.

Note: CVSS scoring model seemed to badly fit for this case, thus I manually set score to "moderate".

Patches

The issue has been fixed in borgbackup 1.2.5. But there was a bug in 1.2.5 upgrade instructions, thus 1.2.6 with an important fix in docs and code was released a day afterwards.

Additionally to installing the fixed code, users must follow the upgrade procedure as documented in the latest version of the change log.

Workarounds

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".

References

https://github.com/borgbackup/borg/blob/1.2.6/docs/changes.rst#pre-125-archives-spoofing-vulnerability-cve-2023-36811

Record
GHSA-8fjr-hghr-4m99
CVSS 4.0
6.0 MediumCVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
CVSS 3.1
4.7 MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N
Weakness
CWE-347
Updated
2026-11-02
OSVPYSEC-2023-164 4.7

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.

Record
PYSEC-2023-164
CVSS 3.1
4.7 MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N
Updated
2026-11-02
OSVUBUNTU-CVE-2023-36811 4.7

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.

Record
UBUNTU-CVE-2023-36811
CVSS 3.1
4.7 MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N
Updated
2026-11-02
OSVopenSUSE-SU-2024:13316-1 No score

borgbackup-1.2.6-1.1 on GA media

These are all security issues fixed in the borgbackup-1.2.6-1.1 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:13316-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
borgbackup
PyPI
before 1.2.5
1.2.5
borgbackup
Alpine:v3.18
before 1.2.6-r0
1.2.6-r0
borgbackup
Alpine:v3.19
before 1.2.6-r0
1.2.6-r0
borgbackup
Alpine:v3.20
before 1.2.6-r0
1.2.6-r0
borgbackup
Alpine:v3.21
before 1.2.6-r0
1.2.6-r0
borgbackup
Alpine:v3.22
before 1.2.6-r0
1.2.6-r0
borgbackup
Alpine:v3.23
before 1.2.6-r0
1.2.6-r0
borgbackup
Alpine:v3.24
before 1.2.6-r0
1.2.6-r0
borgbackup
Debian:12
All versions, plus listed versions
1.2.4-11.2.4-21.2.4-31.2.5-11.2.5-2
Show 32 moreShow less
1.2.5-31.2.5-41.2.6-11.2.6-21.2.7-11.2.7-21.2.7-2~bpo12+11.2.8-11.2.8-1~bpo12+11.4.0-11.4.0-21.4.0-31.4.0-41.4.0-4~bpo12+11.4.0-51.4.1-11.4.1-21.4.1-31.4.1-3~exp11.4.1-41.4.2-11.4.2-21.4.3-11.4.3-21.4.3-31.4.3-41.4.4-11.4.4-21.4.4-31.4.4-41.4.4-51.4.5-1
None known
borgbackup
Debian:13
before 1.2.5-1
1.2.5-1
Show 7 moreShow less
Affected packages
PackageAffectedFixed
borgbackup
Debian:14
before 1.2.5-1
1.2.5-1
borgbackup
PyPI
before 1.2.5, plus listed versions
0.23.00.24.00.25.00.26.00.26.1
Show 45 moreShow less
0.27.00.28.00.28.10.28.20.29.00.30.00.30.11.0.01.0.0rc11.0.0rc21.0.11.0.101.0.10rc11.0.111.0.11rc11.0.121.0.131.0.21.0.31.0.41.0.51.0.61.0.6rc11.0.71.0.7rc11.0.7rc21.0.81.0.8rc11.0.91.0.9rc11.1.01.1.0b11.1.0b21.1.0b31.1.0b41.1.0b51.1.0b61.1.0rc11.1.0rc21.1.0rc31.1.0rc41.1.11.1.101.1.111.1.12
1.2.5
borgbackup
Ubuntu:16.04:LTS
All versions, plus listed versions
0.28.1-10.28.1-20.28.2-10.28.2-20.29.0-1
Show 19 moreShow less
0.29.0-20.29.0-30.29.0-40.30.0-11.0.0~rc1-11.0.0~rc1-21.0.0~rc1-31.0.0~rc2-11.0.0~rc2-31.0.0-11.0.0-21.0.0-31.0.0-41.0.1-11.0.2-11.0.7-0ubuntu1.16.04.11.0.11-0ubuntu1.16.04.21.0.12-0ubuntu1.16.04.11.0.13-0ubuntu1.16.04.1
None known
borgbackup
Ubuntu:18.04:LTS
All versions, plus listed versions
1.0.11-41.1.2-31.1.2-41.1.2-51.1.3-1build1
Show 9 moreShow less
1.1.3-21.1.3-31.1.4-11.1.4-21.1.4-2build11.1.4-31.1.5-1~build11.1.5-11.1.15-1~ubuntu1.18.04.2
None known
borgbackup
Ubuntu:20.04:LTS
All versions, plus listed versions
1.1.10-21.1.10-2build11.1.11-1~build11.1.11-11.1.11-21.1.11-5~build11.1.11-51.1.15-1~ubuntu1.20.04.1
None known
borgbackup
Ubuntu:22.04:LTS
All versions, plus listed versions
1.1.17-11.1.17-1build11.2.0-11.2.0-1ubuntu1.22.04.1
None known
borgbackup
Ubuntu:24.04:LTS
All versions, plus listed versions
1.2.6-21.2.7-11.2.7-21.2.7-2build11.2.7-2build21.2.7-2build31.2.8-1
None known

History

History
RecordedChangedSources
affected, aliases, referencesOSV
aliases, publishedEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2023-36811 is a medium vulnerability (CVSS 4.7) in Borgbackup Borg, published August 30, 2023. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.11%, the 1st percentile. Fixed in borgbackup 1.2.5.

References

Show 22 moreShow less
This page doesn't list everything

Left out here: 32 versions. The JSON record has them.

MoveEnter Open