# Six Pre-Auth RCE Zero-Days (Stack Buffer Overflows) in Danfoss AK-SM800A Refrigeration Controllers (No CVEs Assigned)

> Midnight Blue researcher Carlo Meijer reported six pre-authentication stack-based buffer overflows leading to remote code execution in Danfoss AK-SM800A refrigeration controllers, affecting all firmware up to and including 5.3.2. CVEs are pending coordinated disclosure; no patch is available and neither BSI nor the researchers link the flaws to the ongoing attacks on internet-exposed Danfoss and Copeland controllers across Europe.

- **Published:** 2026-11-17T15:58:07Z
- **Last reviewed:** 2026-11-17T15:58:07Z
- **Canonical:** https://intel.threadlinqs.com/threat/TL-2026-6258
- **Card image:** https://intel.threadlinqs.com/og/threat/TL-2026-6258.png
- **ID:** TL-2026-6258
- **Severity:** HIGH
- **Category:** VULNERABILITY
- **Status:** TRACKING
- **Detections:** 9 (1 shown free below) · **IOCs:** 11
- **CVEs:** CVE-2025-41450, CVE-2023-25913

## Description

Midnight Blue's Carlo Meijer found six pre-authentication stack-based buffer overflows in the Danfoss AK-SM800A supermarket/refrigeration system manager. Five are in unauthenticated web request handlers of the monolithic main application sm_app (the 'Task_Web' task, reached when NGINX forwards .cgi requests); the sixth is in sm_fcgi_app, the gateway/session-control component that enforces Strict mode. The flaws are mostly unbounded strcpy() calls on attacker-controlled input. In published testing a crafted POST body crashed an sm_app handler and an oversized User-Agent header crashed sm_fcgi_app in an emulator with Strict mode enabled. Exploit details and endpoint names are withheld pending coordinated disclosure; Midnight Blue says the sm_fcgi_app bug may lead to code execution with more work, and reports that strcpy()'s null-byte termination complicates exploitation but was overcome. All versions up to and including 5.3.2 are affected (initial PoC on firmware 3.3.0; later builds, including emulation of 4.2.4, remain vulnerable). Reporting says firmware 5.4.0, probably built on 29 October, reportedly does not fix the issues; BSI first said 5.4.0 was unaffected and then said it could not rule it out.

Platform hardening is weak: sm_app runs as root on 'Danux', a custom Yocto Linux on an i.MX6 SoC, contains hundreds of unchecked strcpy calls, and is built without stack canaries or PIE (NX enabled, partial RELRO). The device does not enforce secure boot (i.MX6 OTP fuses checked). Midnight Blue describes as theoretical, and did not demonstrate, an implant surviving factory reset and firmware update, hiding activity from logs, changing settings or triggering defrosts, and bricking a unit by wiping flash or pushing malformed firmware, which could leave refrigeration offline for days. Strict session control (default since 4.0; HTTPS plus an AKSM-auth session token header) blocks most unauthenticated attacks and is recommended by CERT-FR, but the researchers argue it does not remove the underlying bugs and that the sm_fcgi_app flaw sits in the very component enforcing it.

Context: since 11 October 2026 attackers have targeted internet-exposed Danfoss and Copeland/Dixell controllers across Europe, starting in France, with a second wave on 2 November. Reported effects include forced defrost cycles, spoiled food valued in the tens of millions of euros, and some fires. Earlier AK-SM800A flaws (CVE-2025-41450 code-of-the-day authentication bypass, CVE-2025-41451 command injection) had public exploits within 48 hours of the French attacks; Danfoss said most affected French units were older or ran outdated firmware. SentinelOne says attribution is open and one actor should not be assumed. BSI knows of no in-the-wild exploitation of the six new flaws, and agencies and researchers do not link them to the autumn incidents. There is no CVE, CVSS score or public PoC; the HIGH severity is an analyst judgment (unauthenticated, network-reachable RCE as root), not a source-stated score. Censys shows hundreds of Danfoss systems (some probably honeypots) and over 1,000 Copeland/Dixell controllers exposed; the researchers recommend the same exposure reduction for similar products (for example Eliwell).

## MITRE ATT&CK

- T1595.002 Vulnerability Scanning
- T1588.005 Exploits
- T1190 Exploit Public-Facing Application
- T1059.004 Unix Shell
- T1495 Firmware Corruption
- T1561.001 Disk Content Wipe

## Free detection (Splunk SPL, Microsoft KQL, Sigma)

**Danfoss AK-SM800A Oversized User-Agent or CGI POST Body (sm_fcgi_app / sm_app Pre-Auth Overflow Attempt)** (`TL-2026-6258-SPL-001`)

TL-2026-6258: Midnight Blue reported six pre-auth stack buffer overflows (unbounded strcpy, CWE-121/CWE-120) in Danfoss AK-SM800A firmware <= 5.3.2. Published crash triggers were an oversized POST body to a .cgi handler forwarded by NGINX to sm_app (Task_Web) and an abnormally long User-Agent that crashed sm_fcgi_app even in Strict mode. This behaviour-first search flags HTTP requests with a User-Agent over 512 characters, or POST bodies over 8 KB to .cgi paths, in Zeek HTTP logs. Endpoint names are undisclosed and no CVE exists, so the logic is built on the documented trigger conditions (T1190, T1499) rather than a signature.

- **Languages:** Splunk SPL, Microsoft KQL, Sigma
- **ATT&CK:** T1190, T1499
- **Data sources:** zeek_http (index=network, sourcetype=bro:http:json), CommonSecurityLog (WAF/firewall CEF), webserver access logs (Sigma category webserver)
- **Severity:** high
- **Confidence:** medium

### Splunk SPL

```spl
index=network sourcetype="bro:http:json" earliest=-24h
| rename "id.orig_h" as src_ip, "id.resp_h" as dest_ip
| eval uri_lc=lower(coalesce(uri,"")), ua_len=len(coalesce(user_agent,"")), body_len=tonumber(coalesce(request_body_len,0))
| eval is_cgi=if(like(uri_lc,"%.cgi%"),1,0)
| where ua_len>512 OR (is_cgi=1 AND method="POST" AND body_len>8192)
| eval trigger=case(ua_len>512 AND is_cgi=1,"oversized_user_agent_on_cgi",ua_len>512,"oversized_user_agent",true(),"oversized_post_body_on_cgi")
| stats count min(_time) as first_seen max(_time) as last_seen max(ua_len) as max_ua_len max(body_len) as max_body_len values(uri) as uris values(status_code) as status_codes by src_ip dest_ip trigger
| convert ctime(first_seen) ctime(last_seen)
| sort - max_ua_len
```

### Microsoft KQL

```kql
CommonSecurityLog
| where TimeGenerated > ago(24h)
| extend UaLen = strlen(RequestClientApplication), IsCgi = tolower(RequestURL) contains '.cgi'
| where UaLen > 512 or (IsCgi and RequestMethod =~ 'POST' and SentBytes > 8192)
| extend Trigger = case(UaLen > 512 and IsCgi, 'oversized_user_agent_on_cgi', UaLen > 512, 'oversized_user_agent', 'oversized_post_body_on_cgi')
| summarize Requests = count(), MaxUaLen = max(UaLen), MaxBytesSent = max(SentBytes), Uris = make_set(RequestURL, 10), FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated) by SourceIP, DestinationIP, Trigger
| order by MaxUaLen desc
```

### Sigma

```yaml
title: Danfoss AK-SM800A Oversized User-Agent or CGI POST Body (Pre-Auth Overflow Attempt)
id: 3f1c6a52-8d1e-4b7a-9a0c-5e2b7d9c1a01
status: experimental
description: |
  Detects requests matching the documented crash-trigger conditions of the six unauthenticated
  stack buffer overflows in Danfoss AK-SM800A firmware up to 5.3.2 (TL-2026-6258): an abnormally
  long User-Agent (sm_fcgi_app) or an oversized POST body to a .cgi handler (sm_app Task_Web).
  No CVE is assigned and endpoint names are undisclosed, so the rule is behaviour-based.
references:
  - https://www.midnightblue.nl/blog/multiple-rce-danfoss-aksm800a
  - https://securityaffairs.com/203324/security/fridge-controller-attacks-researchers-find-six-zero-days-in-an-hour.html
author: Threadlinqs Team
date: 2026-11-17
tags:
  - attack.initial-access
  - attack.t1190
  - attack.impact
  - attack.t1499
logsource:
  category: webserver
detection:
  selection_long_ua:
    c-useragent|re: '^.{513,}$'
  selection_large_cgi_post:
    cs-method: 'POST'
    cs-uri-stem|endswith: '.cgi'
    cs-bytes|gte: 8192
  condition: 1 of selection_*
falsepositives:
  - Legitimate configuration or firmware uploads by service engineers through the controller web UI
  - Security scanners or fuzzers run by an authorised assessment team
level: high
```

**Known false positives:**

- Legitimate configuration, backup or firmware uploads (large POST bodies) by service engineers or integrators
- Authorised vulnerability scanners or fuzzing tools that send long headers
- Unusual but benign client software that appends very long User-Agent strings

**Tuning notes:** Restrict dest_ip to your inventoried AK-SM800A controllers (lookup or CIDR) to remove unrelated web traffic. Baseline legitimate upload sizes from known service-provider source IPs and raise the 8192-byte body threshold or allowlist those sources. Pair hits with HTTP 5xx/connection resets from the controller (see TL-2026-6258-SIG-001) to raise confidence. Endpoint names are withheld by researchers; revisit with specific .cgi paths once coordinated disclosure completes.

### 8 more detection rules (Splunk SPL, Microsoft KQL, Sigma), unlock with TL Creds

- Danfoss AK-SM800A CGI Endpoint Enumeration or Fuzzing From a Single Source (locked: unlock with TL Creds)
- Danfoss AK-SM800A Controller Account, Remote-Access, Config or Log Tampering (locked: unlock with TL Creds)
- Danfoss AK-SM800A Controller-Initiated Outbound Connections (Payload Fetch / Reverse Shell / C2) (locked: unlock with TL Creds)
- Danfoss AK-SM800A NGINX 502/504 on POST to CGI Handler (Backend Crash During Exploitation) (locked: unlock with TL Creds)
- Danfoss AK-SM800A Shell Spawned by [indicator] or [indicator] (locked: unlock with TL Creds)
- Download or Reverse-Shell Utilities Executed on Danfoss AK-SM800A Controllers (locked: unlock with TL Creds)
- Danfoss AK-SM800A [indicator] / [indicator] / Task_Web Crash-Restart Loop (locked: unlock with TL Creds)
- Danfoss AK-SM800A Flash Erase or Firmware Overwrite Commands (Bricking / Wipe Attempt) (locked: unlock with TL Creds)

Sign up free to unlock the detection rules: https://threadlinqs.com/?modal=signup

## Sources

- [Fridge Controller Attacks: Researchers Find Six Zero-Days in an Hour (Security Affairs)](https://securityaffairs.com/203324/security/fridge-controller-attacks-researchers-find-six-zero-days-in-an-hour.html)
- [Don't bother patching: multiple remote code execution vulnerabilities in Danfoss AK-SM800A (Midnight Blue)](https://www.midnightblue.nl/blog/multiple-rce-danfoss-aksm800a)
- [CISA ICSA-25-140-03: Danfoss AK-SM 8xxA Series (CVE-2025-41450/41451/41452)](https://www.cisa.gov/news-events/ics-advisories/icsa-25-140-03)
- [Freeze the Controller, Defrost the Food: Uncovering Vulnerabilities in Danfoss Refrigeration Controllers (Claroty Team82)](https://claroty.com/team82/research/freeze-the-controller-defrost-the-food-uncovering-vulnerabilities-in-danfoss-refrigeration-controllers)
- [Danfoss Security Advisory DSA-2023-08-01 (CVE-2023-25913/25914/25915)](https://danfoss.com/en/service-and-support/coordinated-vulnerability-disclosure/danfoss-security-advisories/dsa-2023-08-01)
- [Synacktiv: Danfoss SM-800A multiple vulnerabilities](https://www.synacktiv.com/sites/default/files/2023-10/synacktiv-danfoss-sm800a-multiple-vulnerabilities.pdf)
- [Over 100 European stores hit as supermarket fridge attacks resume (SecurityWeek)](https://securityweek.com/over-100-european-stores-hit-as-supermarket-fridge-attacks-resume/amp/)
- [Hack of Danfoss refrigeration controllers in Europe causes tens of millions (Facilities Dive)](https://www.facilitiesdive.com/news/hack-of-danfoss-refrigeration-controllers-in-europe-causes-tens-of-millions/832832/)

## Full data

The other 8 detection rules (Splunk SPL / Microsoft KQL / Sigma) unlock with TL Creds; a free account includes daily creds: https://threadlinqs.com/?modal=signup
Indicator values unlock with TL Creds, at a lower price on Red and Purple; AI agents can query rules and IOCs through the Threadlinqs MCP server (Purple): https://intel.threadlinqs.com/mcp

Canonical: https://intel.threadlinqs.com/threat/TL-2026-6258
