Skip to main content

lwIP MQTT CVE-2026-87121

| EUVDEUVD-2026-84816 CRITICAL
Out-of-bounds Write (CWE-787)
2026-09-22 icscert GHSA-h8q6-7rjx-3m2r
9.3
CVSS 4.0 · Vendor: icscert
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Position as or impersonate MQTT broker
  2. Delivery
    Device initiates MQTT connection
  3. Exploit
    Send crafted MQTT packet
  4. Execution
    Trigger out-of-bounds write in client
  5. Persist
    Corrupt memory / hijack control flow
  6. Impact
    Execute arbitrary code on device

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, write limits
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires (1) the target device to be running the lwIP TCP/IP stack's optional MQTT client module, and (2) the attacker to control or impersonate the MQTT broker that client connects to - either by operating a malicious broker the device is configured to reach, compromising the legitimate broker, or taking a man-in-the-middle position on the client-to-broker path (feasible where TLS is absent or unverified). Because MQTT is client-initiated, the device is not directly reachable inbound, so the attacker cannot simply scan and hit it; the limiting factor is achieving broker control/MITM. No authentication or user interaction is needed once that position is held. No specific affected version is published, so version-based scoping is not possible.

Impact

The vendor CVSS 4.0 score of 9.3 (AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H) presents this as a trivially exploitable unauthenticated remote code execution flaw, but the mechanism materially qualifies that headline. The out-of-bounds write is in the lwIP MQTT *client*, and MQTT is a client-initiated protocol: the affected device dials out to a broker rather than accepting inbound connections. Practical exploitation therefore requires the attacker to operate or impersonate the broker the device connects to (a malicious/compromised broker or a man-in-the-middle position), which is a real precondition the AC:L/AT:N vector does not reflect - I assess this closer to AC:H (3.1) / AT:P (4.0). Exploitation status: no public exploit identified at time of analysis - there is no EPSS score, no CISA KEV listing, and no published POC. The signal set is thus internally consistent only in impact (memory corruption → code execution is credible for an OOB write) but the ease-of-attack metrics are optimistic. This is a genuinely serious issue for any device running the lwIP MQTT client against an untrusted or spoofable broker, but it is not a mass-scannable, spray-and-pray internet vulnerability; treat it as a high-impact-but-conditionally-exploitable ICS/IoT patch priority rather than an actively-exploited emergency.

Exploit ScenarioDerived

An attacker who controls the MQTT broker an embedded device connects to - or who can man-in-the-middle that connection on the network path - returns a crafted MQTT response (e.g. malformed CONNACK/PUBLISH/topic or length field) that overflows a buffer in the lwIP MQTT client. The out-of-bounds write corrupts memory and is leveraged to achieve full code execution on the device. No public POC or exploit code has been identified, and the attack is gated on the device actively using the MQTT client and reaching an attacker-influenced broker.

Emergency Immediate action required. Why: CRITICAL + active threat signals, no patch available.
No patch listed yet 0.8% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv2 – Sep 22, 2026

An out-of-bounds write in the MQTT client module of the lwIP TCP/IP stack lets an adversary who controls or impersonates the MQTT broker that a device connects to corrupt heap/stack memory and potentially achieve full code execution on that device. Only devices built with lwIP's optional MQTT client compiled in are exposed, and because MQTT connections are client-initiated the device is not directly reachable inbound: the attacker must operate a malicious broker, compromise the legitimate broker, or hold a man-in-the-middle position on the client-to-broker path (feasible where TLS is absent or certificate validation is disabled). No authentication or user interaction is required once that broker-side position is achieved, but no public exploit code has been identified at time of analysis and no CISA KEV listing exists; the vendor CVSS 4.0 score of 9.3 (AV:N/AC:L/AT:N) presents this as trivially exploitable, whereas the assessed CVSS 3.1 vector (AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H) reflects the significant broker-control/MITM prerequisite.

Earlier versions of this analysis (1)
v1 Sep 22, 2026 - 20:36 CVSS 9.8

Out-of-bounds write in the optional MQTT client module of the lwIP TCP/IP stack can allow an attacker who controls, has compromised, or can inject into the MQTT broker session of an affected device to corrupt memory and achieve full code execution on that device. The carrier CVSS of 9.8 reflects a fully remote, unauthenticated, total-impact outcome, but the assessed vector (AV:N/AC:H/PR:N/UI:N) and exploitation conditions indicate the practical barrier is higher: the device must have the MQTT client compiled in and actively connecting, and the attacker must control the broker it talks to, be positioned to man-in-the-middle or inject into the session (facilitated by plaintext MQTT without TLS), or have compromised a legitimate broker. No public exploit code and no confirmed active exploitation were identified at time of analysis, and devices that omit the MQTT module or only connect to trusted brokers over authenticated TLS are substantially harder to exploit.

RemediationAI

No vendor-released patch is identified in the available intelligence; the primary action is to monitor CISA ICSA-26-265-01 (https://www.cisa.gov/news-events/ics-advisories/icsa-26-265-01) and the upstream lwIP project at https://savannah.nongnu.org/projects/lwip for an upstream commit or release containing the bounds-check fix, and to track downstream firmware vendors for updated images. Where MQTT telemetry is not required, the most effective compensating control is to rebuild firmware with the MQTT client compiled out (LWIP_MQTT disabled), which removes the attack surface entirely at the cost of losing MQTT-based telemetry and control; if MQTT must remain enabled, enforce TLS with strict broker certificate validation and pinning so an attacker cannot impersonate or MITM the broker - note that deployments which disable or skip certificate verification gain no protection from this control. Further harden by restricting device egress at the firewall/DNS level so clients can only reach a single hardened, trusted broker, placing that broker on a segmented management VLAN with strict ACLs, and alerting on unusually large or malformed PUBLISH/CONNACK frames hitting the broker, accepting the trade-off of reduced network flexibility and additional broker-side operational effort. These controls reduce exposure but do not correct the underlying memory-safety defect in the lwIP MQTT parser.

Affected VersionsENISA

TCP/IP Stack MQTT 2.0.1 ≤2.2.1

Affected Packages

euvd tcp_ip_stack_mqtt no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

lwIP (lightweight IP) is a widely used open-source TCP/IP stack for resource-constrained embedded and IoT platforms, maintained under the Savannah lwip project, where the MQTT client is an optional application-layer module. The flaw is an out-of-bounds write (CWE-787) triggered by parsing broker-supplied MQTT protocol data - typical candidates are oversized or malformed CONNACK, PUBLISH or SUBACK control packets, or crafted topic/payload lengths, being copied into fixed-size receive buffers without adequate bounds checking. Because the vulnerable code sits in the client's receive path, the attacker's input vector is the broker side of the session rather than a directly addressable listener, which is why the assessed vector carries AC:H rather than the vendor's AC:L. The CPE string cpe:2.3:a:lwip:tcp/ip_stack_mqtt:*:*:*:*:*:*:*:* confirms the affected component is the lwIP TCP/IP Stack MQTT and, with a wildcard version element, indicates no specific affected release range has been published, so version-based scoping of deployments is not possible from the available intelligence. Memory corruption of this class can allow controlled overwriting of adjacent data structures, enabling arbitrary code execution with the privileges of the MQTT client task, consistent with the C:H/I:H/A:H impact assessment and the RCE / Buffer Overflow / Memory Corruption tags assigned by ICS-CERT.

Know when Lwip gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (icscert) PRIMARY 9.3 CRITICAL
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
vuln.today AI 8.1 HIGH

AC:H because the attacker must control or impersonate the broker the client dials out to (MITM/malicious broker); PR:N/UI:N as no creds or interaction needed, full memory-corruption RCE gives C/I/A:H.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (icscert).

CVSS VectorVendor: icscert

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
Analysis Updated
Sep 22, 2026 - 20:43 vuln.today
v2 - CVSS changed
CVSS changed
Sep 22, 2026 - 20:37 NVD
9.8 (CRITICAL) 9.3 (CRITICAL)
CVE Published
Sep 22, 2026 - 19:48 cve.org
CRITICAL 9.8

DescriptionCVE.org

lwIP TCP/IP Stack MQTT is vulnerable to an out-of-bounds write, which may allow an attacker to gain full code execution on the device.

Executive ViewAI

Why It Matters

A critical memory-corruption flaw in the lwIP TCP/IP stack's MQTT client module affects any product our organization or our customers deploy with that optional component compiled in, allowing an attacker who controls or impersonates the MQTT broker to potentially execute arbitrary code on the device without credentials or user interaction. The exposure is limited to fleets that speak MQTT to a broker, and the practical risk concentrates on devices using plaintext MQTT or with TLS certificate validation disabled, since those connections can be intercepted or redirected. Because no vendor-released patch exists today, leadership should treat this as a sustained risk to embedded and IoT product lines rather than a short-term patch cycle, with downstream customer and regulatory exposure if affected devices are fielded.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: remove or disable the optional lwIP MQTT client from build configurations where it is not required; enforce TLS with strict certificate validation and broker identity pinning so a malicious, impersonated, or man-in-the-middle broker cannot complete a session; restrict device outbound network access to an allowlist of trusted broker endpoints; segment MQTT-connected devices away from higher-value networks; and monitor broker certificate and MQTT session anomalies for signs of interception.

Threat Intelligence Overview

EPSS Score
0.8%
Top 46% exploitable
Prevalence
Medium
lwIP is widely embedded in IoT/OT, but its MQTT client module is optional
Threat Intel
1
1 source
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CISA GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.8%
Patch available No
Active threat Yes
Deciding rule
CRITICAL + active threat signals, no patch available
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Total

Priority Score

57
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +46
PoC: 0
Weaponized: 0
Threat intel: +10
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

Threat IntelligenceMISP

CISA Advisories
Sources: CISA (public domain)

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy