Read the docs

Remote heap out-of-bounds read/write in Eclipse Mosquitto

Priority HIGH 82CWE-191Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
No fix listed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-191 and the CVSS impact.

Summary

Eclipse Mosquitto versions 2.1 through 2.1.2 mishandle empty WebSocket data frames on listeners configured with protocol websockets. For a zero-length frame, the read path counts the 4 masking-key bytes as payload, so a remote client can leak uninitialised heap memory, including heap and libc pointers, and underflow to_process so later frame data is written past the allocation (CWE-787). The write is reachable from CONNECT before authentication, so an unauthenticated client can crash the broker even with allow_anonymous false. Combined with the leak, it allows remote code execution as the broker's user (CVSS 3.1 score 9.8, CRITICAL).

Written with Claude Haiku 5.5 from the sources below · 2026-11-19

Description from the CNA

In Eclipse Mosquitto versions 2.1 through 2.1.2, a listener configured with `protocol websockets` mishandles empty WebSocket data frames. `net__read_ws()` in `lib/net_ws.c` returns the number of framing bytes consumed (the 4 masking-key bytes) for a data frame with a zero-length payload, without writing any bytes to the caller’s buffer. The MQTT packet reader in `packet__read_single()` (`lib/packet_mosq.c`) trusts that return value as a payload byte count. A remote client can therefore advance the read position over an uninitialised heap allocation, causing the broker to process and forward uninitialised heap memory (information disclosure, including heap and libc pointers), and can underflow the unsigned `to_process` counter so that subsequent attacker-controlled frame data is written past the end of the allocation (heap out-of-bounds write). The out-of-bounds write is reachable from the CONNECT packet before any authentication check, so an unauthenticated client can corrupt the heap and crash the broker even when `allow_anonymous false` is set. Combining the disclosure and the write allows remote code execution as the broker’s user by any client able to establish a session.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.01274 69th percentileScored 2026-11-30
Fix No fix listed No fixed version in the sources yet

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
Yes
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
Eclipse FoundationEclipse Mosquitto2.1 – 2.1.2—No fix listedCNA
  • Eclipse Mosquitto VendorEclipse Foundation Affected 2.1 – 2.1.2 Fixed in — No fix listed CNA

CPE names Threatist (inferred) · 1

Inferred from how NVD named this product before; not given by a source.

CPEVersionsRoleVendor
cpe:2.3:a:eclipse:mosquitto:*:*:*:*:*:*:*:*——Eclipse Foundation

Remediation

The sources list no fixed version for Eclipse Mosquitto.

Written with Claude Haiku 5.5 from the sources below · 2026-11-19

Timeline

  1. 2026-11-18 Threatist record created from CVE-2026-110486
  2. 2026-11-19 CISA SSVC decision points changed

References

  • TI-2023-23979 HTTP/2 request cancellation lets attackers exhaust server resources KEVCVSS 3.1HIGH 7.5
  • TI-2014-07619 Git before 1.8.5.6, 1.9.x before 1.9.5, 2.0.x before 2.0.5, 2.1.x before 2.1.4, and 2.2.x… CVSS 3.1CRITICAL 9.8
  • TI-2026-81947 Unauthenticated command injection in Eclipse Che che-machine-exec CVSS 3.1CRITICAL 9.8
  • TI-2026-13216 CWE-863: ABAC authorization bypass via trailing slash route normalization in Eclipse BaSyx Go Components CVSS 3.1CRITICAL 9.8
  • TI-2026-06514 Path traversal in Eclipse BaSyx CVSS 3.1CRITICAL 10.0
  • TI-2026-01382 In the Eclipse Theia Website repository, the GitHub Actions workflow… CVSS 3.1CRITICAL 10.0
See all 513 →

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences