CVE-2026-128124
JSON

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 packageVersionsReported by
aio-libs aiohttp< 3.14.4CVE List
aiohttp (PyPI)before 3.14.4GitHub Advisory Database, PyPA Advisory Database
aiohttp aiohttpbefore 3.14.4NVD

All scores

GitHub_M8.2high CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
PyPA Advisory Database7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-1333

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

Sources

SourceRecordLicence
CVE ListCVE-2026-128124 changed 2026-11-18CVE Terms of Use
GitHub Advisory DatabaseGHSA-jm3w-gw2p-xjfj changed 2026-11-20CC-BY-4.0
NVDCVE-2026-128124 changed 2026-11-19Public domain
PyPA Advisory DatabasePYSEC-2026-4391 changed 2026-11-20CC-BY-4.0