UBUNTU-CVE-2026-128124: High severity ubuntu/python-aiohttp vulnerability
AIOHTTP is an asynchronous HTTP client/server framework for asyncio and Python. Prior to 3.14.4, Application.adddomain() 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 Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 3.14.4
Event History
Frequently Asked Questions
Which deployments are exposed to this denial-of-service condition?
Only aiohttp servers that use Application.add_domain() with a domain mask containing two or more asterisk wildcards are described as affected. The issue is triggered while rejecting a long Host header that does not match the configured mask.
What does an attacker need to do to exploit it?
An unauthenticated remote attacker can repeatedly send long, non-matching Host headers to the affected server. The vulnerable multi-wildcard domain mask causes polynomial-time matching work that can stall the event loop.
Are default aiohttp configurations affected?
The provided information identifies exposure only where a server is configured with a multi-wildcard domain mask through Application.add_domain(). It does not indicate that a default configuration uses such a mask.
What is the remediation?
Upgrade aiohttp to version 3.14.4 or later, which fixes the issue. If upgrading is not immediately possible, avoid or replace Application.add_domain() masks containing two or more asterisks.
How can I determine whether an application is vulnerable?
Check whether the application uses aiohttp Application.add_domain() and whether any configured domain mask contains two or more asterisk wildcards. Also verify whether the installed aiohttp version is earlier than 3.14.4.