cve.bz

CVE-2021-28861 Open Redirect

7.4 highEPSS 2.8%Fix available

High (7.4). EPSS 2.8% estimated probability of exploitation activity in the next 30 days.

On this page
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."

Severity

CVSS 3.1

7.4 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N
EPSS
2.8% (unchanged from 2.8% a week ago; 2.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 87th percentile. Scored 2026-11-24. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2024-04-17. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-601 URL Redirection to Untrusted Site (Open Redirect)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-28861 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-28861?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-28861?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-28861 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
python:pythonfrom 3.0.0 before 3.7.14
python:pythonfrom 3.8.0 before 3.8.14
python:pythonfrom 3.9.0 before 3.9.14
python:pythonfrom 3.10.0 before 3.10.6
python:python3.11.0:alpha1
python:python3.11.0:alpha2
python:python3.11.0:alpha3
python:python3.11.0:alpha4
python:python3.11.0:alpha5
python:python3.11.0:alpha6
python:python3.11.0:alpha7
python:python3.11.0:beta1
python:python3.11.0:beta2
python:python3.11.0:beta3
fedoraproject:fedora35
fedoraproject:fedora36
fedoraproject:fedora37

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11pypy37.3.5+dfsg-2+deb11u4DLA-3966-1
Debian11python3.93.9.2-1+deb11u2DLA-3980-1
Debian12python3.113.11.0~b4-1DEBIAN-CVE-2021-28861
Debian12, 13, 14pypy37.3.10+dfsg-1DEBIAN-CVE-2021-28861
Ubuntu22.04:LTSpython3.103.10.6-1~22.04.1UBUNTU-CVE-2021-28861
UbuntuPro:16.04:LTSpython3.53.5.2-2ubuntu0~16.04.13+esm5UBUNTU-CVE-2021-28861 USN-5629-1
UbuntuPro:20.04:LTSpython3.93.9.5-3ubuntu0~20.04.1+esm1UBUNTU-CVE-2021-28861 USN-5888-1
Red Hatenterprise_linux:8::appstreamCython, python38-Cython, Cython-debugsource and 1 more0:0.29.14-4.module+el8.4.0+8888+89bc7e79RHSA-2023:2763
Red Hatenterprise_linux:8::appstreamPyYAML, python38-pyyaml, PyYAML-debugsource and 1 more0:5.4.1-1.module+el8.5.0+10721+14d8e0d5RHSA-2023:2763
Red Hatenterprise_linux:8::appstreamPyYAML, python39-pyyaml, PyYAML-debugsource and 1 more0:5.4.1-1.module+el8.5.0+10613+59a13ec4RHSA-2023:2764
Red Hatenterprise_linux:8::appstreambabel, python38-babel0:2.7.0-11.module+el8.5.0+11015+9c1c7c42RHSA-2023:2763
Red Hatenterprise_linux:8::appstreammod_wsgi, python38-mod_wsgi0:4.6.8-4.module+el8.7.0+16653+23ccaf52RHSA-2023:2763
Red Hatenterprise_linux:8::appstreammod_wsgi, python39-mod_wsgi0:4.7.1-5.module+el8.7.0+16654+645aad7fRHSA-2023:2764
Red Hatenterprise_linux:8::appstreamnumpy, python38-numpy, numpy-debugsource and 3 more0:1.17.3-6.module+el8.5.0+12205+a865257aRHSA-2023:2763
Red Hatenterprise_linux:8::appstreamnumpy, python39-numpy, numpy-debugsource and 3 more0:1.19.4-3.module+el8.5.0+12204+54860423RHSA-2023:2764
Red Hatenterprise_linux:8::appstreampython-PyMySQL, python38-PyMySQL0:0.10.1-1.module+el8.4.0+9692+8e86ab84RHSA-2023:2763
Red Hatenterprise_linux:8::appstreampython-PyMySQL, python39-PyMySQL0:0.10.1-2.module+el8.4.0+9822+20bf1249RHSA-2023:2764
Red Hatenterprise_linux:8::appstreampython-asn1crypto, python38-asn1crypto0:1.2.0-3.module+el8.4.0+8888+89bc7e79RHSA-2023:2763
Red Hatenterprise_linux:8::appstreampython-cffi, python38-cffi, python-cffi-debugsource and 1 more0:1.13.2-3.module+el8.4.0+8888+89bc7e79RHSA-2023:2763
66 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 6, Enterprise Storage 7, Linux Enterprise High Performance Computing 15 SP1-ESPOS and 17 morepython3, python3-core3.6.15-150000.3.109.1SUSE-SU-2022:3593-1
SUSEEnterprise Storage 6, Enterprise Storage 7, Linux Enterprise High Performance Computing 15 SP1-ESPOS and 16 morepython, python-base2.7.18-150000.44.1SUSE-SU-2022:3512-2
SUSELinux Enterprise Micro 5.2, Linux Enterprise Micro 5.3, Linux Enterprise Module for Basesystem 15 SP3 and 1 morepython3, python3-core3.6.15-150300.10.30.1SUSE-SU-2022:3544-1
SUSELinux Enterprise Module for Basesystem 15 SP3python39, python39-core3.9.14-150300.4.16.1SUSE-SU-2022:3485-1
SUSELinux Enterprise Module for Basesystem 15 SP3, Linux Enterprise Module for Python 2 15 SP3python, python-base2.7.18-150000.44.1SUSE-SU-2022:3512-1
SUSELinux Enterprise Module for Desktop Applications 15 SP3python2.7.18-150000.44.1SUSE-SU-2022:3512-1
SUSELinux Enterprise Module for Development Tools 15 SP3python39-core3.9.14-150300.4.16.1SUSE-SU-2022:3485-1
SUSELinux Enterprise Module for Development Tools 15 SP3, Linux Enterprise Module for Development Tools 15 SP4python3-core3.6.15-150300.10.30.1SUSE-SU-2022:3544-1
SUSELinux Enterprise Module for Python 3 15 SP4python310, python310-core3.10.7-150400.4.10.1SUSE-SU-2022:3473-1
SUSELinux Enterprise Module for Web and Scripting 12, Linux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5 and 1 morepython3, python3-base3.4.10-25.96.1SUSE-SU-2022:3511-1
SUSELinux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP3-BCLpython, python-doc, python-base2.7.18-28.90.1SUSE-SU-2022:3940-1
SUSELinux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP3-BCL, Linux Enterprise Server 12 SP4-LTSS and 3 morepython3, python3-base3.4.10-25.96.1SUSE-SU-2022:3511-2
4 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.3, Leap 15.4python, python-doc, python-base2.7.18-150000.44.1SUSE-SU-2022:3512-1
openSUSELeap 15.3, Leap 15.4python3, python3-core, python3-documentation3.6.15-150300.10.30.1SUSE-SU-2022:3544-1
openSUSELeap 15.3, Leap 15.4python39, python39-core, python39-documentation3.9.14-150300.4.16.1SUSE-SU-2022:3485-1
openSUSELeap 15.4python310, python310-core, python310-documentation3.10.7-150400.4.10.1SUSE-SU-2022:3473-1
openSUSELeap Micro 5.2python3, python3-core3.6.15-150300.10.30.1SUSE-SU-2022:3544-1
openSUSETumbleweedpython2.7.18-23.1openSUSE-SU-2024:12321-1
openSUSETumbleweedpython3103.10.6-3.1openSUSE-SU-2024:12297-1
openSUSETumbleweedpython383.8.13-4.1openSUSE-SU-2024:12300-1
openSUSETumbleweedpython393.9.13-5.1openSUSE-SU-2024:12301-1
AlmaLinux8python3-idle, python3-libs, python3-test and 4 more3.6.8-48.el8_7.1.almaALSA-2023:0833
AlmaLinux8python38, python38-idle, python38-libs and 5 more3.8.16-1.module_el8.8.0+3482+d5d93a3eALSA-2023:2763
AlmaLinux8python38-Cython0.29.14-4.module_el8.6.0+2778+cd494b30ALSA-2023:2763
AlmaLinux8python38-Cython0.29.14-4.module_el8.6.0+3163+f4472775ALSA-2023:2763
AlmaLinux8python38-PyMySQL0.10.1-1.module_el8.6.0+2778+cd494b30ALSA-2023:2763
AlmaLinux8python38-asn1crypto1.2.0-3.module_el8.6.0+2778+cd494b30ALSA-2023:2763
AlmaLinux8python38-atomicwrites1.3.0-8.module_el8.6.0+2778+cd494b30ALSA-2023:2763
AlmaLinux8python38-attrs19.3.0-3.module_el8.6.0+2778+cd494b30ALSA-2023:2763
AlmaLinux8python38-babel2.7.0-11.module_el8.6.0+2778+cd494b30ALSA-2023:2763
AlmaLinux8python38-cffi1.13.2-3.module_el8.6.0+2778+cd494b30ALSA-2023:2763
AlmaLinux8python38-cffi1.13.2-3.module_el8.6.0+3163+f4472775ALSA-2023:2763
AlmaLinux8python38-chardet3.0.4-19.module_el8.6.0+2778+cd494b30ALSA-2023:2763
79 more for AlmaLinux in the JSON.
Rocky Linux8Cython0:0.29.14-4.module+el8.9.0+1418+f0d66789RLSA-2023:2763
Rocky Linux8Cython0:0.29.21-5.module+el8.10.0+1582+bc278001RLSA-2023:2764
Rocky Linux8Cython0:0.29.21-5.module+el8.10.0+1860+afcc1c71RLSA-2023:2764
Rocky Linux8PyYAML0:5.4.1-1.module+el8.10.0+1582+bc278001RLSA-2023:2763 RLSA-2023:2764
Rocky Linux8PyYAML0:5.4.1-1.module+el8.10.0+1860+afcc1c71RLSA-2023:2763 RLSA-2023:2764
Rocky Linux8PyYAML0:5.4.1-1.module+el8.9.0+1418+f0d66789RLSA-2023:2763 RLSA-2023:2764
Rocky Linux8babel0:2.7.0-11.module+el8.9.0+1418+f0d66789RLSA-2023:2763
Rocky Linux8numpy0:1.19.4-3.module+el8.10.0+1582+bc278001RLSA-2023:2764
Rocky Linux8numpy0:1.19.4-3.module+el8.10.0+1860+afcc1c71RLSA-2023:2764
Rocky Linux8pybind110:2.7.1-1.module+el8.9.0+1357+a3b80af7RLSA-2023:2764
Rocky Linux8pytest0:4.6.6-3.module+el8.9.0+1418+f0d66789RLSA-2023:2763
Rocky Linux8pytest0:6.0.2-2.module+el8.10.0+1582+bc278001RLSA-2023:2764
65 more for Rocky Linux in the JSON.
Azure Linux2python33.9.19-1AZL-10618

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This vulnerability is rated as a moderate because in Python's http.server module, an input validation flaw in lib/http/server.py allows for an open redirection. This issue is triggered when a remote, unauthenticated attacker (Attack Vector: Network, Privileges Required: None) convinces a user to access a crafted URL that begins with two forward slashes (//) leads to an information disclosure.

Versions of python36:3.6/python36 as shipped with Red Hat Enterprise Linux 8 are marked as 'Not affected' as they just provide "symlinks" to the main python3 component, which provides the actual interpreter of the Python programming language.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8python3-0:3.6.8-48.el8_7.1Fixed 2023-02-21RHSA-2023:0833
Red Hat Enterprise Linux 8python38:3.8-8080020221221151857.0d9ba776Fixed 2023-05-16RHSA-2023:2763
Red Hat Enterprise Linux 8python38-devel:3.8-8080020221221151857.0d9ba776Fixed 2023-05-16RHSA-2023:2763
Red Hat Enterprise Linux 8python39:3.9-8080020221221152015.aed85c85Fixed 2023-05-16RHSA-2023:2764
Red Hat Enterprise Linux 8python39-devel:3.9-8080020221221152015.aed85c85Fixed 2023-05-16RHSA-2023:2764
Red Hat Enterprise Linux 9python3.9-0:3.9.14-1.el9Fixed 2022-11-15RHSA-2022:8353
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-python38-python-0:3.8.14-1.el7Fixed 2022-10-03RHSA-2022:6766
Red Hat Enterprise Linux 6pythonNot affected
Red Hat Enterprise Linux 7pythonNot affected
Red Hat Enterprise Linux 7python3Out of support scope
Red Hat Enterprise Linux 8python2Not affected
Red Hat Enterprise Linux 8python27:2.7/python2Not affected
Red Hat Enterprise Linux 8python36Not affected
Red Hat Enterprise Linux 8python36:3.6/python36Not affected
Red Hat Enterprise Linux 8python38Affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-28861.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-23-348-10Siemens SIMATIC S7-15002023-12-12Critical Manufacturing, Transportation Systems, Energy, Healthcare and Public Health, Financial Services, Government Services and FacilitiesSIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0), SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0), SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) and 2 morenone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Attack patterns (CAPEC)

  • CAPEC-178 Cross-Site Flashing Likelihood: Medium · Severity: Medium

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON