Attackers can get root RCE on Barracuda ESG by chaining auth bypass with command injection
An unauthenticated remote attacker can achieve root code execution on vulnerable Barracuda Email Security Gateway devices by chaining CVE-2026-116606 and CVE-2026-111560.
Security & privacy watchTowr Labs 5 Nov 2026 Disclosure Prototype evidence
Published as “Barracuda Networks is your new best friend (Barracuda Email Security Gateway Pre-Auth Remote Root RCE CVE-2026-116606 / CVE-2026-111560)”
Why it matters
Enterprises running vulnerable Barracuda ESG should apply the 9.4.0.029 patch immediately to block remote root compromise.
Summary
The researchers examined two Barracuda ESG firmware versions (9.4.0.027 vulnerable, 9.4.0.029 patched) and identified a pre-authentication authorization bypass (CVE-2026-116606) that returns a success JSON without halting processing. They also found an OS command injection (CVE-2026-111560) in Backup2.pm and fix_tz.pl that runs via sudo as root. By uploading a crafted backup file that injects a malicious system_timezone value, they chain the bypass to trigger the injection and achieve root command execution, confirming remote RCE in a lab environment.
What they found 5
- The pre-auth bypass returns HTTP 200 with a JSON body indicating success even on failed password change
“The appliance answers with HTTP 200 and a JSON body that declares the failed password change: {"message":"Error: Password Change: ","no_ajax_redirect":"true","redirect":"/cgi-mod/password_change.cgi?auth_type=Local&locale=en_US&user=admin&error=Error: Password Change: ","success":"true"}”
- Backup2.pm uses Perl back-ticks to run a sed command with untrusted input, enabling command injection
“`sed -i 's#TZ=.*#TZ=$system_timezone#' /home/product/code/config/tz`;”
- The injected command is executed as root via sudo when fix_tz.pl is invoked
“if( -f "/home/product/code/firmware/current/bin/fix_tz.pl" ) { system('/usr/bin/sudo', '/home/product/code/firmware/current/bin/fix_tz.pl'); }”
- A crafted backup file can embed a malicious system_timezone value that triggers the injection and creates a file as root
“What if we restore the value of the system_timezone row with a shell command stuck on the end: UTC#';touch /tmp/watchTowr;#”
- The backup checksum is derived from a static secret, allowing attackers to compute a valid checksum
“The checksum is just md5(file_bytes + "Barracuda Networks is your new best friend" + ".")”
Caveats 5
- A limited-privilege user can't write this file" - true, but we’re discussing security appliances. It’s different - which is exactly why the code above uses sudo to execute the fix_tz.pl file.
- Exploit requires crafting a backup archive with a correct MD5 checksum using a known secret
- Tested only on firmware versions 9.4.0.027 and 9.4.0.029
- Lab environment; no evidence of real-world exploitation
- CVSS scores in vendor advisory differ from the authors' calculations
What’s new here 4
- Discovery of a pre-authentication authorization bypass that does not stop request processing
- Identification of a Perl back-tick command injection that executes as root via sudo
- Demonstration of chaining the two flaws to obtain remote root code execution
- Release of a detection artefact generator for defenders
In the news
- —CISA Expands KEV Catalog with Multiple Actively Exploited Zero‑Day Flaws Across Major Vendors CVE-2026-111560, CVE-2026-116606
- —Barracuda releases patches for pre-authentication bypass and command injection flaws (CVE‑2026‑116606, CVE‑2026‑111560) CVE-2026-111560, CVE-2026-116606