CVE-2023-2868 Barracuda Networks ESG Appliance Improper Input Validation

Exploited in the wild Critical 9.4 Published Updated

Remote attackers can execute system commands via malicious tar file names in Barracuda Email Security Gateway appliances.

Exploited in the wild
Since 26 May 2023
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2023-2868?

CVE-2023-2868 is a critical command injection vulnerability in Barracuda Email Security Gateway, published on 24 May 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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-77, CWE-20

Which versions are affected by CVE-2023-2868?

It affects 5 products.

Products include Barracuda Email Security Gateway 300 Firmware, Barracuda Email Security Gateway 400 Firmware, Barracuda Email Security Gateway 600 Firmware, Barracuda Email Security Gateway 800 Firmware, Barracuda Email Security Gateway 900 Firmware.

How do I fix CVE-2023-2868?

No fix has been published for CVE-2023-2868 yet. Limit exposure of the affected software until one is available. US federal agencies must fix it by 16 Jun 2023.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2023-2868 being exploited?

Yes. Attackers have exploited CVE-2023-2868 in the wild since at least 26 May 2023.

Public exploit code: 1 Metasploit module and 3 proofs of concept on GitHub.

Sources

Also known as GHSA-898g-hmh5-hrcr.

Is CVE-2023-2868 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free