CVE-2023-2868Remote Code injection in Barracuda Email Security Gateway
- 9.4CriticalCVSS base score
- 86.8%Exploitation in 30 daysEPSS · top 0.3% of all CVEs
- YesKnown exploitedin CISA's KEV since 26 May 2023
- 1Public exploitsMetasploit, Nuclei and Exploit-DB
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.
Exploited in the wild
CISA lists this vulnerability in its Known Exploited Vulnerabilities catalog as Barracuda Networks ESG Appliance Improper Input Validation Vulnerability.
- Added
- 26 May 2023
- Fix due (US federal)
- 16 Jun 2023
- Used by ransomware
- Not known
Apply updates per vendor instructions.
ENISA's EU Vulnerability Database lists it as exploited, from CISA's KEV, since 26 May 2023.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. The public collections list a Metasploit module for it. CISA's SSVC rates its exploitation: it is being exploited.
Show the exploits1
Metasploit modules1 module
- Barracuda ESG TAR Filename Command Injection (Metasploit module) (opens in a new tab)
exploit/linux/smtp/barracuda_esg_tarfile_rceRank excellentdisclosed 23 May 2023
Modules, templates and exploits as listed by the Metasploit Framework (BSD-3-Clause), ProjectDiscovery's Nuclei templates (MIT) and the Exploit Database (GPLv2), read once a day. Where the data comes from
Timeline
ID reserved
By Google
Published
- 2 days later
· 2 days later
Added to CISA KEV
Known exploited in the wild
- 2 years later
· 2 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GoogleCNA (assigner) | 3.1 | Critical9.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L |
| NVDNVD · Analyzed | 3.1 | Critical9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 86.8% · top 0.3% of all CVEs (17 Nov 2026)
- CISA SSVC
- Exploitation: active · Automatable: yes · Technical impact: total
The list uses the assigner's score when there is one, then CISA's, then NVD's: Critical 9.4.
Affected products
Barracuda · Barracuda Email Security Gateway
- affected 5.1.3.001 – < 9.2.0.006
References
References3
- https://www.barracuda.com/company/legal/esg-vulnerability (opens in a new tab)x_transferred
- https://status.barracuda.com/incidents/34kx82j5n4q9 (opens in a new tab)x_transferred
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2023-2868 (opens in a new tab)government-resource
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- CISA KEV catalog (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2023-34316 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2023-2868)Record last updated .