CVE-2023-2868

CRITICAL KEV

Barracuda Email Security Gateway <9.2.0.006 - Command Injection

Title source: llm
STIX 2.1

Exploitation Summary

CVE-2023-2868 is actively exploited and listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, added May 26, 2023. EIP tracks 4 public exploits from researchers including cfielding-r7, krmxd, cashapp323232, including a Metasploit module exploits/linux/smtp/barracuda_esg_tarfile_rce.

AI-analyzed exploit summary This repository contains a functional exploit for CVE-2023-2868, a command injection vulnerability in Barracuda Email Security Gateway (ESG). The PoC crafts a malicious tar file with a payload that spawns a reverse shell when processed by the vulnerable ESG appliance.

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.

Exploits (4)

nomisec WORKING POC 11 stars
by cfielding-r7 · remote
https://github.com/cfielding-r7/poc-cve-2023-2868

This repository contains a functional exploit for CVE-2023-2868, a command injection vulnerability in Barracuda Email Security Gateway (ESG). The PoC crafts a malicious tar file with a payload that spawns a reverse shell when processed by the vulnerable ESG appliance.

Classification
Working Poc 100%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Barracuda Email Security Gateway (ESG)
No auth needed
Prerequisites: Network access to the target ESG appliance · Ability to send emails to the target appliance
devstral-2 · analyzed Feb 19, 2026 Full analysis →
metasploit WORKING POC EXCELLENT
by Mandiant, cfielding-r7, Curt Hyvarinen · rubypocunix
https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/smtp/barracuda_esg_tarfile_rce.rb

This Metasploit module exploits CVE-2023-2868, a command injection vulnerability in Barracuda Email Security Gateway (ESG) appliances. It crafts a malicious TAR file with a filename containing backtick-wrapped commands, which are executed when the ESG processes the attachment.

Classification
Working Poc 100%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Barracuda Email Security Gateway (ESG) appliances (firmware prior to May 2023 patch)
No auth needed
Prerequisites: SMTP access to the target ESG · valid email address on the target ESG
devstral-2 · analyzed Jun 05, 2026 Full analysis →

Scores

CVSS v3 9.4
EPSS 0.8696
EPSS Percentile 99.7%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L

CISA SSVC

Vulnrichment
Exploitation active
Automatable yes
Technical Impact total

Details

CISA KEV 2023-05-26
VulnCheck KEV 2023-05-18
InTheWild.io 2023-05-18
ENISA EUVD EUVD-2023-34316
CWE
CWE-20 CWE-77
Status published
Products (5)
barracuda/email_security_gateway_300_firmware 5.1.3.001 - 9.2.0.006
barracuda/email_security_gateway_400_firmware 5.1.3.001 - 9.2.0.006
barracuda/email_security_gateway_600_firmware 5.1.3.001 - 9.2.0.006
barracuda/email_security_gateway_800_firmware 5.1.3.001 - 9.2.0.006
barracuda/email_security_gateway_900_firmware 5.1.3.001 - 9.2.0.006
Published May 24, 2023
KEV Added May 26, 2023
Tracked Since Feb 18, 2026