# CVE-2026-104199: aMQTT: Inefficient Regular Expression Complexity and Uncontrolled Resource Consumption and Improper Input Validation

- Severity: High 8.7 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.66%, higher than 52% of CVEs (2026-12-01)
- Published: 2026-11-19T19:57:23.067Z
- Modified: 2026-11-24T04:17:21.530Z
- Also known as: GHSA-2hjf-7455-w946
- Weaknesses: CWE-20, CWE-400, CWE-1333
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

aMQTT is an open source MQTT broker and client. From 0.11.0 until 0.11.4, add_subscription() in amqtt/broker.py accepts malformed single-level + wildcard placement because it checks substrings instead of validating each slash-delimited level. The _matches() function converts each + into a greedy regular-expression fragment and evaluates it with re.fullmatch(), allowing a filter containing many adjacent + characters to trigger catastrophic backtracking when compared with a topic that partially matches but ultimately fails. Because matching runs synchronously in _run_broadcast(), one subscription followed by a publish can block the broker event loop, stopping message delivery and new connection processing until restart. Anonymous clients can trigger the issue with the default configuration. Any authenticated client permitted to create arbitrary subscriptions and publish messages may still exploit it when authentication is enabled. This issue is fixed in version 0.11.4.

(As written by CVE List.)

## Affected

- Yakifo amqtt: >= 0.11.0, < 0.11.4
- amqtt (PyPI): from 0.11.0 before 0.11.4

## Every score

- GitHub_M: CVSS:4.0 8.7 High `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`
- GitHub: CVSS:4.0 High `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`

## References

- <https://github.com/Yakifo/amqtt/security/advisories/GHSA-2hjf-7455-w946> (web)
- <https://github.com/Yakifo/amqtt/pull/361> (web)
- <https://github.com/Yakifo/amqtt/commit/e48a8a65027667f936d415db7f01d3ac350104e0> (web)
- <https://github.com/Yakifo/amqtt/releases/tag/v0.11.4> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-104199> (advisory)
- <https://github.com/Yakifo/amqtt> (package)

## Sources

- CVE List: [CVE-2026-104199](https://www.cve.org/CVERecord?id=CVE-2026-104199), CVE Terms of Use, modified 2026-11-24
- GitHub Advisory Database: [GHSA-2hjf-7455-w946](https://github.com/advisories/GHSA-2hjf-7455-w946), CC-BY-4.0, modified 2026-11-20
- NVD: [CVE-2026-104199](https://nvd.nist.gov/vuln/detail/CVE-2026-104199), Public domain, modified 2026-11-24

---

Page: https://cve.day/CVE-2026-104199 · Whole record: https://cve.day/CVE-2026-104199.json · Rebuilt by cve.day 2026-11-25T22:59:52.182Z
