CVE-2023-2868 is a remote command injection in Barracuda Email Security Gateway appliances 5.1.3.001 to 9.2.0.006: crafted file names inside a .tar email attachment run system commands. NVD scores it 9.8 and CISA KEV lists it. Barracuda patched every appliance on 2023-05-20, but told owners to replace compromised units regardless of patch level.
Vulnerability summary
CVSS base score
9.8
Critical severity
EPSS score (FIRST)
45.9%
Probability of exploitation in the wild in the next 30 days
CISA KEV catalog
Yes
Listed as known exploited
Published
Vulnerability ID: CVE-2023-2868 · Source: NVD (Primary CVSS v3.1)
Affected components
| Component | CPE | Version range |
|---|---|---|
| Barracuda Email Security Gateway appliances (ESG 300, 400, 600, 800, 900), appliance form factor only | cpe:2.3:o:barracuda:email_security_gateway_300_firmware:*:*:*:*:*:*:*:* | 5.1.3.001 to 9.2.0.006 (NVD); fixed by patch BNSF-36456, applied automatically on 2023-05-20; replace compromised appliances (Barracuda) |
What does this mean for affected devices?
The CVE record, published on 2023-05-24 with Google (Mandiant) as CNA, describes a remote command injection in the Barracuda Email Security Gateway, "appliance form factor only", in versions 5.1.3.001 to 9.2.0.006. The appliance did not fully sanitize the names of files inside a user-supplied .tar archive, so a crafted email attachment could run a system command with the privileges of the ESG product. NVD's Primary CVSS v3.1 score is 9.8 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H) with CWE-77; the CNA scores it 9.4 with CWE-20 (NVD, CVE record). NVD's CPE configuration lists ESG 300, 400, 600, 800 and 900 appliance firmware 5.1.3.001 through 9.2.0.006.
Was the ESG patched?
Yes, by Barracuda directly. Its status page says Barracuda found the flaw on 2023-05-19, applied a security patch "to all ESG appliances worldwide" on 2023-05-20 and a second containment patch on 2023-05-21; the CVE record names the fix as patch BNSF-36456, applied automatically. The flaw sat in the module that screens attachments of incoming email; Barracuda says no other product, including its SaaS email services, was affected.
Why replace instead of patch?
Because the attacker was already inside. Barracuda's ESG vulnerability page says that, as stated in its guidance of 31 May and 6 June 2023, it recommends "immediate replacement of compromised ESG appliances, regardless of patch level", provides the replacement at no cost, and asks owners of compromised units to contact Barracuda support. Its updates describe a China-nexus actor that Mandiant tracks as UNC4841 and backdoors placed on a limited number of appliances. In December 2023 Barracuda reported the same actor using a second flaw, CVE-2023-7102 in a third-party spreadsheet parsing library, and fixed it with an automatic update. In 2026 Barracuda fixed a new ESG pair, the admin-UI bypass CVE-2026-116606 and the command injection CVE-2026-111560. The class fix is in how to fix command injection in embedded firmware.
Is CVE-2023-2868 exploited?
Yes. CISA added it to the KEV catalog on 2023-05-26 with the required action "Apply updates per vendor instructions." (due 2023-06-16); known ransomware campaign use is "Unknown". It is still listed in catalog version 2026.11.25 (as of 2026-11-26). FIRST EPSS gives 0.45899, the 99.10th percentile, in the 2026-11-25 dataset (FIRST EPSS). For ranking KEV entries like this one, see KEV and EPSS vulnerability prioritization.
Evidence
- NVD: status Analyzed, published 2023-05-24; remote command injection in Barracuda ESG (appliance form factor only) 5.1.3.001-9.2.0.006 via file names in user-supplied .tar files; fixed by patch BNSF-36456, applied automatically; NVD Primary CVSS v3.1 9.8, CWE-77; Google CNA Secondary 9.4, CWE-20; CPE ESG 300/400/600/800/900 firmware 5.1.3.001 to 9.2.0.006 inclusive; read 2026-11-26. — NVD
- CVE record: PUBLISHED, CNA Google; affected 5.1.3.001 to below 9.2.0.006 (custom); CVSS 3.1 9.4. — CVE.org
- Barracuda status incident: vulnerability identified 2023-05-19; patch applied to all ESG appliances worldwide 2023-05-20; second patch 2023-05-21; flaw in module screening incoming email attachments; no other products incl. SaaS email affected. — Barracuda status page
- Barracuda ESG vulnerability page (trust center): recommends immediate replacement of compromised ESG appliances regardless of patch level (guidance 31 May and 6 June 2023); replacement product at no cost; UNC4841 China-nexus actor (Mandiant); 24 Dec 2023 update: CVE-2023-7102 in Spreadsheet::ParseExcel used against a limited number of ESGs, fixed by automatic security update 21 Dec 2023. — Barracuda trust center
- KEV catalog 2026.11.25: dateAdded 2023-05-26, dueDate 2023-06-16, required action 'Apply updates per vendor instructions.', knownRansomwareCampaignUse Unknown; read 2026-11-26. — CISA KEV
- EPSS 0.45899, percentile 0.99098, dataset 2026-11-25, read 2026-11-26. — FIRST EPSS

Related advisories
Sources
Frequently asked questions
Which Barracuda products are affected by CVE-2023-2868?
Only the Email Security Gateway in its appliance form factor, versions 5.1.3.001 to 9.2.0.006; NVD lists the ESG 300, 400, 600, 800 and 900. Barracuda says no other product, including its SaaS email services, was affected (per NVD and Barracuda).
Do I need to install a patch for CVE-2023-2868?
Barracuda applied patch BNSF-36456 to all ESG appliances automatically on 2023-05-20 and a second patch on 2023-05-21. Make sure the appliance still receives Barracuda updates (per Barracuda and the CVE record).
Why does Barracuda tell owners to replace the ESG appliance?
Attackers had planted backdoors on some appliances before the patch. Barracuda recommends immediate replacement of compromised ESG appliances regardless of patch level and supplies the replacement at no cost (per Barracuda's ESG vulnerability page).
Is CVE-2023-2868 exploited?
Yes. CISA added it to the KEV catalog on 2023-05-26; ransomware use is listed as Unknown. FIRST EPSS gives 0.45899 (99.10th percentile) in the 2026-11-25 dataset (as of 2026-11-26, per CISA KEV and FIRST EPSS).
Questions about this page?