CVE-2023-2868: Remote Code injection in Barracuda Email Security Gateway
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.
Other sources
Barracuda Email Security Gateway (ESG) appliance contains an improper input validation vulnerability of a user-supplied .tar file, leading to remote command injection.
— CISA
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Barracuda Email Security Gateway 800 Firmwareto a version that resolves this vulnerability.Patch BNSF-36456 - Operational
Verify that patch BNSF-36456 has been applied to all Barracuda Email Security Gateway appliances; if any appliance does not have BNSF-36456 installed, install the BNSF-36456 patch or contact Barracuda support for remediation.
Event History
Peer vulnerabilities
Found alongside the following vulnerabilities.
Frequently Asked Questions
What is CVE-2023-2868?
CVE-2023-2868 is a vulnerability that allows remote command injection in the Barracuda Email Security Gateway (appliance form factor only) product.
What is the severity of CVE-2023-2868?
The severity of CVE-2023-2868 is critical with a severity value of 9.8.
Which software versions are affected by CVE-2023-2868?
Versions 5.1.3.001-9.2.0.006 of the Barracuda Email Security Gateway (appliance form factor only) product are affected by CVE-2023-2868.
How can the vulnerability be exploited?
The vulnerability can be exploited by injecting remote commands via a .tar file.
How can I fix CVE-2023-2868?
To fix CVE-2023-2868, update the Barracuda Email Security Gateway (appliance form factor only) product to a version higher than 9.2.0.006.