9.4Critical KEV

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

Barracuda Barracuda Email Security Gateway Published: (3 years ago)

Known exploited — Barracuda Networks ESG Appliance Improper Input Validation Vulnerability

CISA confirmed this vulnerability is used in real attacks on 26.05.2023. Remediation deadline for US federal agencies: 16.06.2023.

Required action: Apply updates per vendor instructions. https://status.barracuda.com/incidents/34kx82j5n4q9; https://nvd.nist.gov/vuln/detail/CVE-2023-2868

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.

Weakness (CWE): CWE-20CWE-77

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
Barracuda Barracuda Email Security Gateway 5.1.3.001 – < 9.2.0.006
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

References and patches

CPE matches (NVD) (5)

  • cpe:2.3:o:barracuda:email_security_gateway_300_firmware:*:*:*:*:*:*:*:* ≥ 5.1.3.001 ≤ 9.2.0.006
  • cpe:2.3:o:barracuda:email_security_gateway_400_firmware:*:*:*:*:*:*:*:* ≥ 5.1.3.001 ≤ 9.2.0.006
  • cpe:2.3:o:barracuda:email_security_gateway_600_firmware:*:*:*:*:*:*:*:* ≥ 5.1.3.001 ≤ 9.2.0.006
  • cpe:2.3:o:barracuda:email_security_gateway_800_firmware:*:*:*:*:*:*:*:* ≥ 5.1.3.001 ≤ 9.2.0.006
  • cpe:2.3:o:barracuda:email_security_gateway_900_firmware:*:*:*:*:*:*:*:* ≥ 5.1.3.001 ≤ 9.2.0.006