{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2020-4042 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2020-4042 is a medium-severity authentication bypass vulnerability in bareos, published on 10 Jul 2020. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2020-4042 and fix it if it is affected.\n\nWhat it is: CVE-2020-4042 is a medium-severity authentication bypass vulnerability in bareos, published on 10 Jul 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2020-4042 in the wild and no public exploit code.\n\nAffected product: bareos. No package-level version data is available, so check the vendor advisory linked from the reference page.\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-2020-4042/ (Markdown: https://insights.sbomify.com/CVE-2020-4042/index.md)","id":"CVE-2020-4042","markdown":"https://insights.sbomify.com/CVE-2020-4042/index.md","name":"CVE-2020-4042","record":{"aliases":["CLEANSTART-2024-ZR44827","GHSA-vqpj-2vhj-h752","UBUNTU-CVE-2020-4042"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":true,"product_category":"Bareos backup server","requires_auth":"none","summary":"A malicious client can bypass authentication in Bareos by replaying challenges, allowing unauthorized communication with the director.","user_interaction":"not_required","vuln_class":"auth_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"bareos","vendor":"bareos"}],"cvss":{"score":6.8,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-294","name":"Authentication Bypass by Capture-replay"}],"description":"Bareos before version 19.2.8 and earlier allows a malicious client to communicate with the director without knowledge of the shared secret if the director allows client initiated connection and connects to the client itself. The malicious client can replay the Bareos director's cram-md5 challenge to the director itself leading to the director responding to the replayed challenge. The response obtained is then a valid reply to the directors original challenge. This is fixed in version 19.2.8.","ecosystems":[],"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":"Authentication bypass in Bareos","id":"CVE-2020-4042","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"auth_bypass","year":"2020"},"n_packages":0,"n_references":2,"next":{"headline":"Phar unserialization vulnerability in phpMussel","id":"CVE-2020-4043"},"packages":[],"prev":{"headline":"The filename of uploaded files vulnerable to stored XSS in Bolt CMS","id":"CVE-2020-4041"},"products":["bareos"],"published":"2020-07-10","related":[{"cvss_score":8.1,"headline":"Incorrect Authorization in Bareos Director","id":"CVE-2022-24755","kev_date_added":null,"published":"2022-03-15"},{"cvss_score":7.8,"headline":"Race condition in n/a","id":"CVE-2017-14610","kev_date_added":null,"published":"2017-09-20"},{"cvss_score":7.5,"headline":"Missing Release of Memory after Effective Lifetime in Bareos Director","id":"CVE-2022-24756","kev_date_added":null,"published":"2022-03-15"},{"cvss_score":6,"headline":"Heap-based Buffer Overflow in Bareos Director","id":"CVE-2020-11061","kev_date_added":null,"published":"2020-07-10"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"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":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-04","vendors":["bareos"]},"summary":"A malicious client can bypass authentication in Bareos by replaying challenges, allowing unauthorized communication with the director.","url":"https://insights.sbomify.com/CVE-2020-4042/"}