CVE-2021-21330
No exploitation reported by the sources we read.
- Published2021-02-26
- Fixed in3.7.4
- WeaknessCWE-601
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
Description
aiohttp is an asynchronous HTTP client/server framework for asyncio and Python. In aiohttp before version 3.7.4 there is an open redirect vulnerability. A maliciously crafted link to an aiohttp-based web-server could redirect the browser to a different website. It is caused by a bug in the `aiohttp.web_middlewares.normalize_path_middleware` middleware. This security problem has been fixed in 3.7.4. Upgrade your dependency using pip as follows "pip install aiohttp >= 3.7.4". If upgrading is not an option for you, a workaround can be to avoid using `aiohttp.web_middlewares.normalize_path_middleware` in your applications.
Timeline
dates in UTC- 2021-02-2603:15CVE publishedNVD
Versions per branch
NVD · OSV| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 3.7 | < 3.7.4 | 3.7.4 | NVD · OSV |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 33.x | = 33 | no fix published | NVD |
| 34.x | = 34 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 10.0 | = 10.0 | no fix published | NVD |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- apache-supersetCleanStartall versions · fixed in 2021.40.1-r0
- apache-supersetCleanStartall versions · fixed in 2021.41.0-r0
- candlepinRed Hat:satellite:6.10::el7all versions · fixed in 0:4.0.9-1.el7sat
- foremanRed Hat:satellite:6.10::el7all versions · fixed in 0:2.5.2.17-2.el7sat
- foremanRed Hat:satellite_capsule:6.10::el7all versions · fixed in 0:2.5.2.17-2.el7sat
- python-aiohttpUbuntu:Pro:20.04:LTSall versions · fixed in 3.6.2-1ubuntu0.1~esm1
- python-aiohttpUbuntu:Pro:18.04:LTSall versions · fixed in 3.0.1-1ubuntu0.1~esm1
- python-aiohttpSUSE:Linux Enterprise Module for Public Cloud 15 SP4all versions · fixed in 3.6.0-150100.3.9.1
38 more package ranges on OSV.dev
Vendor advisories
Red Hat Security Advisory: Satellite 6.10 Release
Fix
- Update Aiohttp to 3.7.4
- Vendor fix Red Hat Product Security RHSA-2021:4702 · 2 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
Advisories and patches
- github.comPatch
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- PoC-in-GitHubno public repository identifiedread 2026-11-16
- Metasploit modules
- none listed Metasploit Framework
Sources
- CNACVSS 3.13.1known since 2026-10-23
- NVDCVSS 3.16.1read 2026-10-23
- NVDCVSS 2.05.8read 2026-10-23
- CNAweakness (CWE)CWE-601known since 2026-10-23
- NVDweakness (CWE)CWE-601read 2026-10-23
- FIRST EPSSEPSS score1.7 %2026-11-15
- OSVaffected packages—
- GitHub AdvisoriesadvisoryLOW2021-02-26
Identifiers
- AZL-44805same flawAzure Linux · MIT
- EUVD-2021-0003same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-v6wp-4m6f-gcjgsame flawGitHub Advisory Database · CC-BY-4.0
- PYSEC-2021-76same flawPyPA Advisory Database · CC-BY-4.0
- DSA-4864-1advisory covering several CVEsDebian · LicenseRef-unstated
- MGASA-2021-0161advisory covering several CVEsMageia · LicenseRef-unstated
- openSUSE-SU-2024:13209-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2026:11467-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- RHSA-2021:4702advisory covering several CVEsRed Hat · CC-BY-4.0
- SUSE-RU-2022:3275-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2021:1313-1advisory covering several CVEsSUSE · LicenseRef-unstated
- USN-5386-1advisory covering several CVEsUbuntu
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Published
- 2021-02-26
- Last Modified
- 2026-06-17
- NVD status
- Modified
- GitHub Advisory
- GHSA-v6wp-4m6f-gcjg
Frequently asked questions
What is CVE-2021-21330?
Is CVE-2021-21330 actively exploited?
What is the CVSS score for CVE-2021-21330?
Running aiohttp? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-v6wp-4m6f-gcjg
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0