{"answers":{"affected":"It affects 5 products.","exploited":"Yes. Attackers have exploited CVE-2023-2868 in the wild since at least 26 May 2023.","fix":"No fix has been published for CVE-2023-2868 yet. Limit exposure of the affected software until one is available. US federal agencies must fix it by 16 Jun 2023.","what":"CVE-2023-2868 is a critical command injection vulnerability in Barracuda Email Security Gateway, published on 24 May 2023. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-2868 and fix it if it is affected.\n\nWhat it is: CVE-2023-2868 is a critical command injection vulnerability in Barracuda Email Security Gateway, published on 24 May 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: Yes. Attackers have exploited CVE-2023-2868 in the wild since at least 26 May 2023.\n\nAffected product: Barracuda Email Security Gateway. 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-2023-2868/ (Markdown: https://insights.sbomify.com/CVE-2023-2868/index.md)","id":"CVE-2023-2868","markdown":"https://insights.sbomify.com/CVE-2023-2868/index.md","name":"CVE-2023-2868","record":{"aliases":["GHSA-898g-hmh5-hrcr"],"analysis":{"component_type":"network_device","fix_type":"patch","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Email Security Gateway","requires_auth":"none","summary":"Remote attackers can execute system commands via malicious tar file names in Barracuda Email Security Gateway appliances.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"Google","cpe":[{"product":"email_security_gateway_300_firmware","vendor":"barracuda"},{"product":"email_security_gateway_400_firmware","vendor":"barracuda"},{"product":"email_security_gateway_600_firmware","vendor":"barracuda"},{"product":"email_security_gateway_800_firmware","vendor":"barracuda"},{"product":"email_security_gateway_900_firmware","vendor":"barracuda"}],"cvss":{"score":9.4,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L","version":"3.1"},"cwes":[{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command"},{"id":"CWE-20","name":"Improper Input Validation"}],"description":"A remote command injection vulnerability exists in the Barracuda Email Security Gateway (appliance form factor only) product effecting versions 5.1.3.001-9.2.0.006. The vulnerability arises out of a failure to comprehensively sanitize the processing of .tar file (tape archives). The vulnerability stems from incomplete input validation of a user-supplied .tar file as it pertains to the names of the files contained within the archive. As a consequence, a remote attacker can specifically format these file names in a particular manner that will result in remotely executing a system command through Perl's qx operator with the privileges of the Email Security Gateway product. This issue was fixed as part of BNSF-36456 patch. This patch was automatically applied to all customer appliances.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":"2023-05-23","github_poc":3,"max_poc_stars":11,"metasploit":1,"nuclei":0,"refs":[{"date":"2023-06-20T18:43:54Z","kind":"github_poc","ref":"https://github.com/cfielding-r7/poc-cve-2023-2868","stars":11,"title":null},{"date":"2023-05-23","kind":"metasploit","ref":"exploit/linux/smtp/barracuda_esg_tarfile_rce","stars":null,"title":"Barracuda ESG TAR Filename Command Injection"},{"date":"2023-07-30T16:42:27Z","kind":"github_poc","ref":"https://github.com/cashapp323232/CVE-2023-2868CVE-2023-2868","stars":0,"title":null},{"date":"2023-08-25T13:07:51Z","kind":"github_poc","ref":"https://github.com/krmxd/CVE-2023-2868","stars":0,"title":null}],"tier":"exploited"},"has_fix":null,"headline":"Barracuda Networks ESG Appliance Improper Input Validation","id":"CVE-2023-2868","indexable":true,"kev":{"dateAdded":"2023-05-26","dueDate":"2023-06-16","knownRansomwareCampaignUse":"Unknown","product":"Email Security Gateway (ESG) Appliance","requiredAction":"Apply updates per vendor instructions.","vendorProject":"Barracuda Networks","vulnerabilityName":"Barracuda Networks ESG Appliance Improper Input Validation Vulnerability"},"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"command_injection","year":"2023"},"n_packages":0,"n_references":2,"next":{"headline":"WP-Members Membership \u003c= 3.4.7.3 - Missing Authorization to Settings Update","id":"CVE-2023-2869"},"packages":[],"prev":{"headline":"Advantech WebAccess Insufficient Type Distinction","id":"CVE-2023-2866"},"products":["Barracuda Email Security Gateway"],"published":"2023-05-24","related":[{"cvss_score":9.8,"headline":"Remote Code Execution (RCE) Vulnerability","id":"CVE-2023-7102","kev_date_added":null,"published":"2023-12-24"}],"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":"open","licence":"CC0 1.0","name":"CISA KEV"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"BSD-3-Clause","name":"Metasploit"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"active","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-10-21","vendors":["Barracuda"]},"summary":"Remote attackers can execute system commands via malicious tar file names in Barracuda Email Security Gateway appliances.","url":"https://insights.sbomify.com/CVE-2023-2868/"}