# CVE-2023-2868: Remote Code injection in Barracuda Email Security Gateway

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.4
- **CVSS:** 9.4 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: Low
- **Exploited in the wild:** Yes: in CISA KEV since 2023-05-26; federal due date 2023-06-16
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 45.90% (percentile 99, 2026-11-26)
- **CWE:** CWE-20
- **Published:** 2023-05-24T18:00:52.360Z
- **Modified:** 2026-06-17T05:53:39.770Z

## Who should check

- Anyone running Barracuda Email Security Gateway \>= 5.1.3.001, \< 9.2.0.006

## 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.

## Affected and fixed versions

- Barracuda Email Security Gateway: \>= 5.1.3.001, \< 9.2.0.006 (cvelist)

## Mitigation

- Upgrade Barracuda Email Security Gateway to 9.2.0.006 or later.

## Timeline

- 2023-05-24: Published
- 2023-05-26: Added to CISA KEV (exploited in the wild)
- 2023-06-16: CISA remediation due date for US federal agencies
- 2026-06-17: Last modified

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-2868. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-2868.md
Affected: Barracuda Email Security Gateway >= 5.1.3.001, < 9.2.0.006
Fixed in: Barracuda Email Security Gateway 9.2.0.006

Steps:
1. Search this machine and project for Barracuda Email Security Gateway: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-2868 being exploited?

Yes. CISA lists CVE-2023-2868 in its Known Exploited Vulnerabilities catalog since 2023-05-26, which means attacks have been seen. No public exploit code is known. EPSS estimates a 45.90% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-2868?

Critical: CVSS 9.4 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2023-2868?

Barracuda Email Security Gateway \>= 5.1.3.001, \< 9.2.0.006.

### Is there a fix for CVE-2023-2868?

Yes. Fixed in Barracuda Email Security Gateway 9.2.0.006. Upgrade Barracuda Email Security Gateway to 9.2.0.006 or later.

### How do I check if I'm affected by CVE-2023-2868?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://www.barracuda.com/company/legal/esg-vulnerability>
- vendor: <https://status.barracuda.com/incidents/34kx82j5n4q9>
- other: <https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2023-2868>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-2868>
- CISA KEV: CISA Known Exploited Vulnerabilities Catalog <https://www.cisa.gov/known-exploited-vulnerabilities-catalog>

HTML: <https://flawdb.com/CVE-2023-2868> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-2868>
