CVE & CISA-KEV Catalog

CVE-2021-28861

HIGHEPSS 86th pctl
7.4
CVSS v3
NVD

Description

Python 3.x through 3.10 has an open redirection vulnerability in lib/http/server.py due to no protection against multiple (/) at the beginning of URI path which may leads to information disclosure. NOTE: this is disputed by a third party because the http.server.html documentation page states "Warning: http.server is not recommended for production. It only implements basic security checks."

How to fix

Remediation Available
pypy3Debian
Fixed in:7.3.10+dfsg-1CVE-2021-28861
Fixed in:7.3.10+dfsg-1CVE-2021-28861
Fixed in:7.3.10+dfsg-1CVE-2021-28861
python3.11Debian
Fixed in:3.11.0~b4-1CVE-2021-28861
CythonRed Hat / RHEL
Fixed in:0:0.29.14-4.module+el8.4.0+8888+89bc7e79.src::python38:3.8RHSA-2023:2763
CythonRocky
Fixed in:0:0.29.14-4.module+el8.4.0+8888+89bc7e79.src::python38:3.8RHSA-2023:2763
Cython-0:0.29.21Red Hat / RHEL
Fixed in:5.module+el8.4.0+9822+20bf1249.src::python39-devel:3.9RHSA-2023:2764
Cython-0:0.29.21Rocky
Fixed in:5.module+el8.4.0+9822+20bf1249.src::python39-devel:3.9RHSA-2023:2764
Cython-debugsourceRed Hat / RHEL
Fixed in:0:0.29.14-4.module+el8.4.0+8888+89bc7e79.ppc64le::python38:3.8RHSA-2023:2763
Fixed in:0:0.29.14-4.module+el8.4.0+8888+89bc7e79.x86_64::python38:3.8RHSA-2023:2763
Fixed in:0:0.29.14-4.module+el8.4.0+8888+89bc7e79.aarch64::python38:3.8RHSA-2023:2763
Fixed in:0:0.29.14-4.module+el8.4.0+8888+89bc7e79.s390x::python38:3.8RHSA-2023:2763
Cython-debugsourceRocky
Fixed in:0:0.29.14-4.module+el8.4.0+8888+89bc7e79.aarch64::python38:3.8RHSA-2023:2763
Fixed in:0:0.29.14-4.module+el8.4.0+8888+89bc7e79.ppc64le::python38:3.8RHSA-2023:2763
Fixed in:0:0.29.14-4.module+el8.4.0+8888+89bc7e79.x86_64::python38:3.8RHSA-2023:2763
Fixed in:0:0.29.14-4.module+el8.4.0+8888+89bc7e79.s390x::python38:3.8RHSA-2023:2763
Cython-debugsource-0:0.29.21Red Hat / RHEL
Fixed in:5.module+el8.4.0+9822+20bf1249.ppc64le::python39-devel:3.9RHSA-2023:2764
Fixed in:5.module+el8.4.0+9822+20bf1249.aarch64::python39-devel:3.9RHSA-2023:2764
Fixed in:5.module+el8.4.0+9822+20bf1249.s390x::python39-devel:3.9RHSA-2023:2764
Fixed in:5.module+el8.4.0+9822+20bf1249.x86_64::python39-devel:3.9RHSA-2023:2764
Cython-debugsource-0:0.29.21Rocky
Fixed in:5.module+el8.4.0+9822+20bf1249.x86_64::python39-devel:3.9RHSA-2023:2764
Fixed in:5.module+el8.4.0+9822+20bf1249.aarch64::python39-devel:3.9RHSA-2023:2764
Fixed in:5.module+el8.4.0+9822+20bf1249.ppc64le::python39-devel:3.9RHSA-2023:2764
Fixed in:5.module+el8.4.0+9822+20bf1249.s390x::python39-devel:3.9RHSA-2023:2764
PyYAMLRocky
Fixed in:0:5.4.1-1.module+el8.5.0+10721+14d8e0d5.src::python38:3.8RHSA-2023:2763
Fixed in:0:5.4.1-1.module+el8.5.0+10613+59a13ec4.src::python39:3.9RHSA-2023:2764
PyYAMLRed Hat / RHEL
Fixed in:0:5.4.1-1.module+el8.5.0+10613+59a13ec4.src::python39:3.9RHSA-2023:2764
Fixed in:0:5.4.1-1.module+el8.5.0+10721+14d8e0d5.src::python38:3.8RHSA-2023:2763
PyYAML-debugsourceRocky
Fixed in:0:5.4.1-1.module+el8.5.0+10613+59a13ec4.ppc64le::python39:3.9RHSA-2023:2764
Fixed in:0:5.4.1-1.module+el8.5.0+10721+14d8e0d5.aarch64::python38:3.8RHSA-2023:2763
Fixed in:0:5.4.1-1.module+el8.5.0+10721+14d8e0d5.x86_64::python38:3.8RHSA-2023:2763
Fixed in:0:5.4.1-1.module+el8.5.0+10613+59a13ec4.s390x::python39:3.9RHSA-2023:2764
Fixed in:0:5.4.1-1.module+el8.5.0+10613+59a13ec4.aarch64::python39:3.9RHSA-2023:2764
Fixed in:0:5.4.1-1.module+el8.5.0+10613+59a13ec4.x86_64::python39:3.9RHSA-2023:2764
Fixed in:0:5.4.1-1.module+el8.5.0+10721+14d8e0d5.s390x::python38:3.8RHSA-2023:2763
Fixed in:0:5.4.1-1.module+el8.5.0+10721+14d8e0d5.ppc64le::python38:3.8RHSA-2023:2763
PyYAML-debugsourceRed Hat / RHEL
Fixed in:0:5.4.1-1.module+el8.5.0+10613+59a13ec4.aarch64::python39:3.9RHSA-2023:2764
Fixed in:0:5.4.1-1.module+el8.5.0+10613+59a13ec4.s390x::python39:3.9RHSA-2023:2764
Fixed in:0:5.4.1-1.module+el8.5.0+10721+14d8e0d5.aarch64::python38:3.8RHSA-2023:2763
Fixed in:0:5.4.1-1.module+el8.5.0+10721+14d8e0d5.x86_64::python38:3.8RHSA-2023:2763
Fixed in:0:5.4.1-1.module+el8.5.0+10613+59a13ec4.ppc64le::python39:3.9RHSA-2023:2764
Fixed in:0:5.4.1-1.module+el8.5.0+10613+59a13ec4.x86_64::python39:3.9RHSA-2023:2764
Fixed in:0:5.4.1-1.module+el8.5.0+10721+14d8e0d5.s390x::python38:3.8RHSA-2023:2763
Fixed in:0:5.4.1-1.module+el8.5.0+10721+14d8e0d5.ppc64le::python38:3.8RHSA-2023:2763
babelRocky
Fixed in:0:2.7.0-11.module+el8.5.0+11015+9c1c7c42.src::python38:3.8RHSA-2023:2763
babelRed Hat / RHEL
Fixed in:0:2.7.0-11.module+el8.5.0+11015+9c1c7c42.src::python38:3.8RHSA-2023:2763
mod_wsgiRed Hat / RHEL
Fixed in:0:4.6.8-4.module+el8.7.0+16653+23ccaf52.src::python38:3.8RHSA-2023:2763
Fixed in:0:4.7.1-5.module+el8.7.0+16654+645aad7f.src::python39:3.9RHSA-2023:2764
mod_wsgiRocky
Fixed in:0:4.7.1-5.module+el8.7.0+16654+645aad7f.src::python39:3.9RHSA-2023:2764
Fixed in:0:4.6.8-4.module+el8.7.0+16653+23ccaf52.src::python38:3.8RHSA-2023:2763
numpyRocky
Fixed in:0:1.19.4-3.module+el8.5.0+12204+54860423.src::python39:3.9RHSA-2023:2764
Fixed in:0:1.17.3-6.module+el8.5.0+12205+a865257a.src::python38:3.8RHSA-2023:2763
numpyRed Hat / RHEL
Fixed in:0:1.19.4-3.module+el8.5.0+12204+54860423.src::python39:3.9RHSA-2023:2764
Fixed in:0:1.17.3-6.module+el8.5.0+12205+a865257a.src::python38:3.8RHSA-2023:2763
numpy-debugsourceRed Hat / RHEL
Fixed in:0:1.19.4-3.module+el8.5.0+12204+54860423.s390x::python39:3.9RHSA-2023:2764
Fixed in:0:1.19.4-3.module+el8.5.0+12204+54860423.ppc64le::python39:3.9RHSA-2023:2764
Fixed in:0:1.17.3-6.module+el8.5.0+12205+a865257a.ppc64le::python38:3.8RHSA-2023:2763
Fixed in:0:1.17.3-6.module+el8.5.0+12205+a865257a.s390x::python38:3.8RHSA-2023:2763
Fixed in:0:1.19.4-3.module+el8.5.0+12204+54860423.x86_64::python39:3.9RHSA-2023:2764
Fixed in:0:1.17.3-6.module+el8.5.0+12205+a865257a.x86_64::python38:3.8RHSA-2023:2763
Fixed in:0:1.19.4-3.module+el8.5.0+12204+54860423.aarch64::python39:3.9RHSA-2023:2764
Fixed in:0:1.17.3-6.module+el8.5.0+12205+a865257a.aarch64::python38:3.8RHSA-2023:2763
numpy-debugsourceRocky
Fixed in:0:1.17.3-6.module+el8.5.0+12205+a865257a.x86_64::python38:3.8RHSA-2023:2763
Fixed in:0:1.19.4-3.module+el8.5.0+12204+54860423.aarch64::python39:3.9RHSA-2023:2764
Fixed in:0:1.19.4-3.module+el8.5.0+12204+54860423.ppc64le::python39:3.9RHSA-2023:2764
Fixed in:0:1.19.4-3.module+el8.5.0+12204+54860423.s390x::python39:3.9RHSA-2023:2764
Fixed in:0:1.19.4-3.module+el8.5.0+12204+54860423.x86_64::python39:3.9RHSA-2023:2764
Fixed in:0:1.17.3-6.module+el8.5.0+12205+a865257a.s390x::python38:3.8RHSA-2023:2763
Fixed in:0:1.17.3-6.module+el8.5.0+12205+a865257a.ppc64le::python38:3.8RHSA-2023:2763
Fixed in:0:1.17.3-6.module+el8.5.0+12205+a865257a.aarch64::python38:3.8RHSA-2023:2763
pybind11-0:2.7.1Red Hat / RHEL
Fixed in:1.module+el8.6.0+12838+640e6226.src::python39-devel:3.9RHSA-2023:2764
pybind11-0:2.7.1Rocky
Fixed in:1.module+el8.6.0+12838+640e6226.src::python39-devel:3.9RHSA-2023:2764
pytest-0:4.6.6Red Hat / RHEL
Fixed in:3.module+el8.4.0+8888+89bc7e79.src::python38-devel:3.8RHSA-2023:2763
pytest-0:4.6.6Rocky
Fixed in:3.module+el8.4.0+8888+89bc7e79.src::python38-devel:3.8RHSA-2023:2763
pytest-0:6.0.2Red Hat / RHEL
Fixed in:2.module+el8.4.0+9822+20bf1249.src::python39-devel:3.9RHSA-2023:2764
pytest-0:6.0.2Rocky
Fixed in:2.module+el8.4.0+9822+20bf1249.src::python39-devel:3.9RHSA-2023:2764
python-PyMySQLRed Hat / RHEL
Fixed in:0:0.10.1-2.module+el8.4.0+9822+20bf1249.src::python39:3.9RHSA-2023:2764
Fixed in:0:0.10.1-1.module+el8.4.0+9692+8e86ab84.src::python38:3.8RHSA-2023:2763
python-PyMySQLRocky
Fixed in:0:0.10.1-2.module+el8.4.0+9822+20bf1249.src::python39:3.9RHSA-2023:2764
Fixed in:0:0.10.1-1.module+el8.4.0+9692+8e86ab84.src::python38:3.8RHSA-2023:2763

This vulnerability affects an unusually large number of packages. The highest-confidence fixes are shown above; the full list is longer. Check the referenced advisories for complete coverage.

TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionRequired
ScopeChanged

Impact

ConfidentialityHigh
IntegrityNone
AvailabilityNone

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N

Exploit Intelligence

2.71%probability of exploitation in 30 days
86thpercentile

Elevated risk: more likely to be exploited than 86% of all known CVEs.

References

Related Vulnerabilities

Other CWE-601 (Open Redirect) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2018-11784Medium4.398%-Fix
CVE-2025-4123High7.697%-Fix
CVE-2021-22881Medium6.187%-Fix
CVE-2022-45402Medium6.182%-Fix
CVE-2017-1000117High8.878%-Fix
CVE-2019-10098Medium6.174%-Fix

Common questions

How do I fix CVE-2021-28861?

Published advisories record a fix for 379 affected products. The "How to fix" section on this page lists the fixed version and source advisory for each one, so apply the entry matching what you actually run.

Is CVE-2021-28861 being actively exploited?

Not that we know of. CVE-2021-28861 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 2.7% is the estimated probability that it will be exploited in the next 30 days. That is higher than 86% of all scored CVEs.

How severe is CVE-2021-28861?

CVE-2021-28861 has a CVSS v3 base score of 7.4, rated high. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.

What does CVE-2021-28861 affect?

Published advisories record a fix for pypy3 (Debian), python3.11 (Debian), Cython (Red Hat / RHEL), Cython (Rocky), and 375 more. Only products with a sourced advisory are listed, so treat this as what we can cite rather than a complete inventory.

Embed a live status badge for CVE-2021-28861
CVE-2021-28861 severity badge

Markdown

[![CVE-2021-28861](https://tridentstack.com/cve/badge/CVE-2021-28861.svg)](https://tridentstack.com/cve/CVE-2021-28861)

HTML

<a href="https://tridentstack.com/cve/CVE-2021-28861"><img src="https://tridentstack.com/cve/badge/CVE-2021-28861.svg" alt="CVE-2021-28861"></a>

Check your Linux endpoints for this class of vulnerability

TridentStack Control continuously scans Linux endpoints for known vulnerabilities and deploys the fixes from the same console. 200 endpoints free forever, no credit card.

Patch your fleet freeStart freeThis CVE lookup is free and always will be.

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2026-10-14.