{"answers":{"affected":"3 open source packages ship an affected version, including borgbackup. It affects 1 product.","exploited":"There is no known exploitation of CVE-2023-36811 in the wild and no public exploit code.","fix":"Upgrade borgbackup to 1.2.5 or later.","what":"CVE-2023-36811 is a medium-severity vulnerability in borgbackup borg, published on 30 Aug 2023. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-36811 and fix it if it is affected.\n\nWhat it is: CVE-2023-36811 is a medium-severity vulnerability in borgbackup borg, published on 30 Aug 2023. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2023-36811 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- borgbackup (PyPI): affected all versions; fixed in 1.2.5\n- borgbackup (PyPI): affected all versions; fixed in 1.2.5\n- borgbackup (PyPI): affected all versions; fixed in 1.2.5\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-36811/ (Markdown: https://insights.sbomify.com/CVE-2023-36811/index.md)","id":"CVE-2023-36811","markdown":"https://insights.sbomify.com/CVE-2023-36811/index.md","name":"CVE-2023-36811","record":{"aliases":["CLEANSTART-2024-EI10626","DEBIAN-CVE-2023-36811","GHSA-8fjr-hghr-4m99","PYSEC-2023-164","UBUNTU-CVE-2023-36811","openSUSE-SU-2024:13316-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_modify","denial_of_service"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Backup archiver","requires_auth":"low_privilege","summary":"Attackers with repository write access can spoof archives, potentially causing data loss during maintenance operations in borgbackup.","user_interaction":"not_required","vuln_class":"other"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"borg","vendor":"borgbackup"}],"cvss":{"score":4.7,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-347","name":"Improper Verification of Cryptographic Signature"}],"description":"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.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Archive spoofing vulnerability in borgbackup","id":"CVE-2023-36811","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"other","year":"2023"},"n_packages":3,"n_references":6,"next":{"headline":"Remote Code Execution in OpenTSDB","id":"CVE-2023-36812"},"packages":[{"ecosystem":"PyPI","fixed":["1.2.5"],"introduced":["0"],"last_affected":[],"package":"borgbackup","purl":null,"source":"GHSA-8fjr-hghr-4m99"},{"ecosystem":"PyPI","fixed":["1.2.5"],"introduced":["0"],"last_affected":[],"package":"borgbackup","purl":"pkg:pypi/borgbackup","source":"GHSA-8fjr-hghr-4m99"},{"ecosystem":"PyPI","fixed":["1.2.5"],"introduced":["0"],"last_affected":[],"package":"borgbackup","purl":"pkg:pypi/borgbackup","source":"PYSEC-2023-164"}],"prev":{"headline":"Quadratic runtime with malformed PDF missing xref marker in pypdf","id":"CVE-2023-36810"},"products":["borg"],"published":"2023-08-30","related":[{"cvss_score":8.8,"headline":"Borg Improper Access Control vulnerability","id":"CVE-2017-15914","kev_date_added":null,"published":"2018-02-08"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-02-13","vendors":["borgbackup"]},"summary":"Attackers with repository write access can spoof archives, potentially causing data loss during maintenance operations in borgbackup.","url":"https://insights.sbomify.com/CVE-2023-36811/"}