CVE-2026-54275

AIOHTTP: TLS Server Hostname Override Is Ignored When Reusing HTTPS Connections

Published Jun 22, 2026 CVSS 4.0 · 2.7 Low EPSS < 1% KEV · Not listed
Description
AIOHTTP is an asynchronous HTTP client/server framework for asyncio and Python. Prior to 3.14.1, the server_hostname TLS SNI check can be bypassed when an existing connection is reused. If an application makes multiple requests to the same domain, but with different per-request server_hostname parameters, then the later calls may succeed by reusing the existing connection when they should have been rejected due to the TLS SNI check. This vulnerability is fixed in 3.14.1.

Analysis

AI-generated

Technical impact

AIOHTTP allows the TLS Server Name Indication (SNI) check to be ignored when an existing connection is reused, enabling an attacker to override the intended server hostname and connect to a different target than specified. This flaw may allow traffic intended for one domain to be inadvertently routed to another, potentially exposing data or enabling subtle man‑in‑the‑middle interference. The official CVSS score of 2.7 indicates a low severity, reflecting that the flaw requires precise control over application‑level request parameters and that it does not grant immediate credential compromise or arbitrary code execution.

Affected Systems

The issue affects the aio-libs aiohttp library, versions prior to 3.14.1, which runs on Python/asyncio environments. Applications that use this library to issue multiple HTTPS requests to the same domain while specifying different per‑request server_hostname values are impacted.

Risk and Exploitability

The vulnerability is low risk, with an EPSS score of < 1% and no listing in the CISA KEV catalog. It is inferred that the attack vector requires an attacker to control or influence application‑level request parameters and that it does not grant immediate credential compromise or arbitrary code execution. The low CVSS score and lack of evidence of active exploitation further suggest limited immediate threat. However, any deployment using older aiohttp versions should be updated to eliminate the possibility of server hostname mis‑resolution during connection reuse.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade aiohttp to version 3.14.1 to apply the vendor fix that restores correct TLS SNI validation on reused connections.
  • Modify application code to avoid reusing connections when server_hostname values differ, for example by creating a new connector per request or disabling connection pooling for those requests.
  • Monitor outbound HTTPS traffic for unexpected hostnames or mismatched SNI values to detect potential misrouting.

Generated by OpenCVE AI on June 26, 2026 at 04:47 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-4m7w-qmgq-4wj5 aiohttp: TLS Server Hostname Override Is Ignored When Reusing HTTPS Connections
History
Type Values Removed Values Added
Weaknesses CWE-367
References
Metrics threat_severity

None

cvssV3_1

{'score': 4.8, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N'}

threat_severity

Moderate

Type Values Removed Values Added
First Time appeared Aio-libs
Aio-libs aiohttp
Vendors & Products Aio-libs
Aio-libs aiohttp
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description AIOHTTP is an asynchronous HTTP client/server framework for asyncio and Python. Prior to 3.14.1, the server_hostname TLS SNI check can be bypassed when an existing connection is reused. If an application makes multiple requests to the same domain, but with different per-request server_hostname parameters, then the later calls may succeed by reusing the existing connection when they should have been rejected due to the TLS SNI check. This vulnerability is fixed in 3.14.1.
Title AIOHTTP: TLS Server Hostname Override Is Ignored When Reusing HTTPS Connections
Weaknesses CWE-297
References
Metrics cvssV4_0

{'score': 2.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:U'}

Weaknesses
  • CWE-297

    Improper Validation of Certificate with Host Mismatch

  • CWE-367

    Time-of-check Time-of-use (TOCTOU) Race Condition

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jun 22, 2026, 5:27 PM
Reserved
Jun 12, 2026, 5:13 PM
Status
Analyzed
Published
Jun 22, 2026, 6:16 PM
Modified
Oct 25, 2026, 11:10 PM
Severity
Moderate
Public date
Jun 22, 2026, 4:34 PM