{"uuid": "13003a76-e2bd-428c-8274-326ec764f90c", "vulnerability_lookup_origin": "1a89b78e-f703-45f3-bb86-59eb712668bd", "author": "9f56dd64-161d-43a6-b9c3-555944290a09", "vulnerability": "CVE-2023-2868", "type": "seen", "source": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/smtp/barracuda_esg_tarfile_rce.rb", "content": "{\"aliases\": [], \"arch\": \"cmd\", \"author\": [\"Mandiant\", \"cfielding-r7\", \"Curt Hyvarinen\"], \"autofilter_ports\": [25, 465, 587, 2525, 25025, 25000], \"autofilter_services\": [\"smtp\", \"smtps\"], \"check\": true, \"default_credential\": false, \"description\": \"This module exploits CVE-2023-2868, a command injection vulnerability in\\n          Barracuda Email Security Gateway (ESG) appliances. The vulnerability exists\\n          in how the ESG processes TAR file attachments - filenames containing shell\\n          metacharacters (backticks) are passed directly to shell commands during\\n          extraction, allowing remote command execution.\\n\\n          The exploit sends an email with a specially crafted TAR attachment where\\n          the filename contains a backtick-wrapped command. When the ESG processes\\n          this attachment, the command is executed as the mail processing user.\\n\\n          Note: Payload execution may take 30-90 seconds after email delivery.\\n          Amavisd queues and processes attachments asynchronously.\\n\\n          Affected versions: Barracuda ESG firmware prior to May 2023 patch.\\n\\n          Payloads containing single quotes or backticks are incompatible with\\n          the injection mechanism. Use cmd/unix/generic with a custom CMD for\\n          specialized payload requirements.\", \"disclosure_date\": \"2023-05-23\", \"fullname\": \"exploit/linux/smtp/barracuda_esg_tarfile_rce\", \"is_install_path\": true, \"mod_time\": \"2026-04-02 17:30:43 +0000\", \"name\": \"Barracuda ESG TAR Filename Command Injection\", \"needs_cleanup\": null, \"notes\": {\"Reliability\": [\"repeatable-session\"], \"SideEffects\": [\"ioc-in-logs\", \"artifacts-on-disk\"], \"Stability\": [\"crash-safe\"]}, \"path\": \"/modules/exploits/linux/smtp/barracuda_esg_tarfile_rce.rb\", \"platform\": \"Unix\", \"post_auth\": false, \"rank\": 600, \"ref_name\": \"linux/smtp/barracuda_esg_tarfile_rce\", \"references\": [\"CVE-2023-2868\", \"URL-https://www.barracuda.com/company/legal/esg-vulnerability\", \"URL-https://www.mandiant.com/resources/blog/barracuda-esg-exploited-globally\", \"URL-https://attackerkb.com/topics/NCRbE1IDJP/cve-2023-2868\"], \"rport\": 25, \"session_types\": false, \"targets\": [\"Unix Command\"], \"type\": \"exploit\"}", "creation_timestamp": "2026-09-08T06:49:22.818264Z"}