CVE-2021-28861 Open redirect in n/a

Medium 6.5 Published Updated

An open redirect in Python's http.server module allows attackers to redirect users to malicious sites, potentially leading to information disclosure.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2021-28861?

CVE-2021-28861 is a medium-severity vulnerability in Fedoraproject Fedora, published on 23 Aug 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official 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."

Weakness: CWE-601

Which versions are affected by CVE-2021-28861?

3 open source packages ship an affected version, including libpython, python and python-min. It affects 2 products.

PackageAffectedFixed in
libpython BitnamiFrom 3.0.03.7.14, 3.8.14, 3.9.14, 3.10.6
python BitnamiFrom 3.0.03.7.14, 3.8.14, 3.9.14, 3.10.6
python-min BitnamiFrom 3.0.03.7.14, 3.8.14, 3.9.14, 3.10.6
Linux distribution packages (37)
python SUSE:Enterprise Storage 6All versions2.7.18-150000.44.1
python-base SUSE:Enterprise Storage 6All versions2.7.18-150000.44.1
python3 SUSE:Enterprise Storage 6All versions3.6.15-150000.3.109.1
python3-core SUSE:Enterprise Storage 6All versions3.6.15-150000.3.109.1
python SUSE:Enterprise Storage 7All versions2.7.18-150000.44.1
python-base SUSE:Enterprise Storage 7All versions2.7.18-150000.44.1
python3 SUSE:Enterprise Storage 7All versions3.6.15-150000.3.109.1
python3-core SUSE:Enterprise Storage 7All versions3.6.15-150000.3.109.1
python SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOSAll versions2.7.18-150000.44.1
python-base SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOSAll versions2.7.18-150000.44.1
python3 SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOSAll versions3.6.15-150000.3.109.1
python3-core SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOSAll versions3.6.15-150000.3.109.1
python SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSSAll versions2.7.18-150000.44.1
python-base SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSSAll versions2.7.18-150000.44.1
python3 SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSSAll versions3.6.15-150000.3.109.1
python3-core SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSSAll versions3.6.15-150000.3.109.1
python SUSE:Linux Enterprise High Performance Computing 15 SP2-ESPOSAll versions2.7.18-150000.44.1
python-base SUSE:Linux Enterprise High Performance Computing 15 SP2-ESPOSAll versions2.7.18-150000.44.1
python3 SUSE:Linux Enterprise High Performance Computing 15 SP2-ESPOSAll versions3.6.15-150000.3.109.1
python3-core SUSE:Linux Enterprise High Performance Computing 15 SP2-ESPOSAll versions3.6.15-150000.3.109.1
python SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSSAll versions2.7.18-150000.44.1
python-base SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSSAll versions2.7.18-150000.44.1
python3 SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSSAll versions3.6.15-150000.3.109.1
python3-core SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSSAll versions3.6.15-150000.3.109.1
python SUSE:Linux Enterprise High Performance Computing 15-ESPOSAll versions2.7.18-150000.44.1
python-base SUSE:Linux Enterprise High Performance Computing 15-ESPOSAll versions2.7.18-150000.44.1
python3 SUSE:Linux Enterprise High Performance Computing 15-ESPOSAll versions3.6.15-150000.3.109.1
python3-core SUSE:Linux Enterprise High Performance Computing 15-ESPOSAll versions3.6.15-150000.3.109.1
python SUSE:Linux Enterprise High Performance Computing 15-LTSSAll versions2.7.18-150000.44.1
python-base SUSE:Linux Enterprise High Performance Computing 15-LTSSAll versions2.7.18-150000.44.1
python3 SUSE:Linux Enterprise High Performance Computing 15-LTSSAll versions3.6.15-150000.3.109.1
python3-core SUSE:Linux Enterprise High Performance Computing 15-LTSSAll versions3.6.15-150000.3.109.1
python3 SUSE:Linux Enterprise Micro 5.1All versions3.6.15-150000.3.109.1
python3-core SUSE:Linux Enterprise Micro 5.1All versions3.6.15-150000.3.109.1
python3 SUSE:Linux Enterprise Micro 5.2All versions3.6.15-150300.10.30.1
python3-core SUSE:Linux Enterprise Micro 5.2All versions3.6.15-150300.10.30.1
python3 SUSE:Linux Enterprise Micro 5.3All versions3.6.15-150300.10.30.1

Products include Fedoraproject Fedora, Python Python.

How do I fix CVE-2021-28861?

Upgrade libpython to a fixed version for your release line: 3.7.14, 3.8.14, 3.9.14 or 3.10.6.

Is CVE-2021-28861 being exploited?

There is no known exploitation of CVE-2021-28861 in the wild and no public exploit code.

All Fedoraproject Fedora vulnerabilities

Sources

Also known as AZL-10618, BIT-libpython-2021-28861, BIT-python-2021-28861, BIT-python-min-2021-28861, CLSA-2022-1663183291, CLSA-2022-1663184139 and 21 more.

Is CVE-2021-28861 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free