8.2high
AIOHTTP: Event loop stall in add_domain() wildcard matching
- Severity
- 8.2high CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.72% (higher than 55% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-jm3w-gw2p-xjfjPYSEC-2026-4391
Description
AIOHTTP is an asynchronous HTTP client/server framework for asyncio and Python. Prior to 3.14.4, Application.add_domain() converts every asterisk wildcard in a domain mask into a greedy regular-expression fragment, so a mask containing two or more wildcards can take polynomial time to reject a long Host header that does not match. A remote attacker can repeatedly send such headers to a server configured with a multi-wildcard domain mask and stall the event loop. This issue is fixed in version 3.14.4.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| aio-libs aiohttp | < 3.14.4 | CVE List |
| aiohttp (PyPI) | before 3.14.4 | GitHub Advisory Database, PyPA Advisory Database |
| aiohttp aiohttp | before 3.14.4 | NVD |
All scores
| GitHub_M | 8.2high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N |
| GitHub | high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| PyPA Advisory Database | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
AIOHTTP is an asynchronous HTTP client/server framework for asyncio and Python. Prior to 3.14.4, Application.add_domain() converts every asterisk wildcard in a domain mask into a greedy regular-expression fragment, so a mask containing two or more wildcards can take polynomial time to reject a long Host header that does not match. A remote attacker can repeatedly send such headers to a server configured with a multi-wildcard domain mask and stall the event loop. This issue is fixed in version 3.14.4.
GitHub Advisory Database
Summary
Application.add_domain() compiled each * in a host mask to [^:]*. With two or more wildcards in a mask, matching a long Host header that does not match the mask took polynomial time on the event loop.
Impact
An attacker could stall a server that registers a domain mask with more than one wildcard by sending requests with a long Host header.
Workaround
Use at most one * in a domain mask.
Patch: https://github.com/aio-libs/aiohttp/commit/c6ac0e44c3c573ff9616f4a6a532992538b31e43
References
| https://github.com/aio-libs/aiohttp/security/advisories/GHSA-jm3w-gw2p-xjfj | fix, mitigation, patch, vendor-advisory, web | |
| https://github.com/aio-libs/aiohttp/pull/13943 | fix, patch, web | |
| https://github.com/aio-libs/aiohttp/pull/13945 | fix, patch, web | |
| https://github.com/aio-libs/aiohttp/commit/766b882820da0651c84090e366a3b024b4a263c9 | fix, patch, web | |
| https://github.com/aio-libs/aiohttp/commit/c6ac0e44c3c573ff9616f4a6a532992538b31e43 | fix, patch, web | |
| https://github.com/aio-libs/aiohttp/releases/tag/v3.14.4 | advisory, release-notes, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-128124 | advisory | |
| https://github.com/aio-libs/aiohttp | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-128124 changed 2026-11-18 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-jm3w-gw2p-xjfj changed 2026-11-20 | CC-BY-4.0 |
| NVD | CVE-2026-128124 changed 2026-11-19 | Public domain |
| PyPA Advisory Database | PYSEC-2026-4391 changed 2026-11-20 | CC-BY-4.0 |