CVE-2026-104199
### Impact `amqtt` is vulnerable to a remote denial of service caused by improper MQTT topic-filter validation combined with catastrophic regular-expression backtracking. A single client can freeze the entire broker by sending one specially crafted `SUBSCRIBE` packet followed by one `PUBLISH` packet. The vulnerability is caused by two defects: 1. `add_subscription()` validates the placement of the single-level wildcard `+` using substring checks for `/+` and `+/`, rather than verifying that each `/`-delimited level containing `+` is exactly `+`. This allows malformed filters such as `"+/" + "+" * 60` to be accepted instead of rejected with return code `0x80`, as required by MQTT-4.7.1-3. 2. `_matches()` converts every `+` character into the greedy regular-expression fragment `[^/]*` and evaluates the resulting expression with `re.fullmatch()`. A filter containing many adjacent `+` characters can cause catastrophic backtracking when matched against a topic that partially matches but ultimately fails. Topic matching runs synchronously inside the broker’s global broadcast loop. When the malicious match is evaluated, it blocks the asyncio event loop and prevents the broker from processing any other work. The issue was reproduced using a single raw MQTT 3.1.1 TCP connection with no third-party client dependencies. Successful exploitation causes: - Existing message delivery to stop - New MQTT connections to receive no `CONNACK` - Keepalive processing to stop - Broadcast processing to stop - The broker to remain unavailable until the process is restarted Under the default configuration, anonymous clients can exploit the vulnerability without credentials. When authentication is enabled, any authenticated client permitted to create arbitrary subscriptions and publish messages may still exploit it. Authentication alone is therefore not a sufficient mitigation. - Ecosystem: `pip` - Package: `amqtt` - Affected versions: `>= 0.11.0, <= 0.11.3` The vulnerable code is p
Properties
- Severity
- high
- Summary
- aMQTT: Inefficient Regular Expression Complexity and Uncontrolled Resource Consumption and Improper Input Validation
- Nvd fetched at
- 2026-11-22T12:30:49.958423+00:00
- Epss score
- 0.00659
- Cvss severity
- HIGH
- Cvss score
- 8.7
- Retrieved at
- 2026-11-22T12:32:25+00:00
- Ghsa published
- 2026-11-20T14:43:41Z
- Source url
- https://github.com/advisories/GHSA-2hjf-7455-w946
- Ghsa updated
- 2026-11-20T14:43:42Z
- Ghsa id
- GHSA-2hjf-7455-w946
- Last source
- FIRST EPSS
- Score
- 8.7
- Cvss version
- 4.0
- Cve id
- CVE-2026-104199
- Cvss vector
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- First seen by Signal
- 2026-11-19T23:31:53+00:00
- Name
- CVE-2026-104199
- Is ghsa only
- false
- Vector
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Related Entities (5)
HAS_WEAKNESS (3)
AFFECTS (1)
VULNERABLE_TO (1)
Related research
Explore deeper with Ninja Signal's threat intelligence graph