Two significant vulnerabilities in Barracuda Email Security Gateway (ESG) allow unauthenticated attackers to bypass pre-authentication authorization and execute OS command injection remotely, leading to root-level code execution This article explores vulnerabilities barracuda email. . Security researcher Sina Kheirkhah disclosed this attack path on November 5, 2026.
It also affects Load Balancer ADC, Message Archiver, Web Application Firewall, and Web Security Gateway. Backup2.pm and fix_tz.pl use Perl backticks to build sed commands and interpolate the system_timezone value without validation.
A payload like UTC#;touch /tmp/watchTowr;# closes the quoted sed expression, starts a new command, and comments out the rest. This bug is particularly concerning due to the system's use of sudo to execute injected commands as root. Attackers can exploit this vulnerability by leveraging the bayesian_upload.pm handler, which accepts uploaded backups and passes them to restore_all.
This process unpacks the archive and reads backup.xml, allowing the attacker to manipulate the Spam_Config component, which restores a MySQL dump into the local database. Each file’s checksum is calculated using the formula md5(file_bytes + secret + “.”), where the secret is a static string, “Barracuda Networks is your new best friend”. A single multipart request combining the password-change parameters, the pu_bayesian_upload field, and the malicious tar backup completes the chain.
Join 16,000+ SOC teams using ANY.RUN to streamline threat investigations and reduce manual effort. Explore for your team.











