CVE-2021-28861 Open redirect in n/a
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.
| Package | Affected | Fixed in |
|---|---|---|
libpython Bitnami | From 3.0.0 | 3.7.14, 3.8.14, 3.9.14, 3.10.6 |
python Bitnami | From 3.0.0 | 3.7.14, 3.8.14, 3.9.14, 3.10.6 |
python-min Bitnami | From 3.0.0 | 3.7.14, 3.8.14, 3.9.14, 3.10.6 |
Linux distribution packages (37)
python SUSE:Enterprise Storage 6 | All versions | 2.7.18-150000.44.1 |
python-base SUSE:Enterprise Storage 6 | All versions | 2.7.18-150000.44.1 |
python3 SUSE:Enterprise Storage 6 | All versions | 3.6.15-150000.3.109.1 |
python3-core SUSE:Enterprise Storage 6 | All versions | 3.6.15-150000.3.109.1 |
python SUSE:Enterprise Storage 7 | All versions | 2.7.18-150000.44.1 |
python-base SUSE:Enterprise Storage 7 | All versions | 2.7.18-150000.44.1 |
python3 SUSE:Enterprise Storage 7 | All versions | 3.6.15-150000.3.109.1 |
python3-core SUSE:Enterprise Storage 7 | All versions | 3.6.15-150000.3.109.1 |
python SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS | All versions | 2.7.18-150000.44.1 |
python-base SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS | All versions | 2.7.18-150000.44.1 |
python3 SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS | All versions | 3.6.15-150000.3.109.1 |
python3-core SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS | All versions | 3.6.15-150000.3.109.1 |
python SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS | All versions | 2.7.18-150000.44.1 |
python-base SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS | All versions | 2.7.18-150000.44.1 |
python3 SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS | All versions | 3.6.15-150000.3.109.1 |
python3-core SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS | All versions | 3.6.15-150000.3.109.1 |
python SUSE:Linux Enterprise High Performance Computing 15 SP2-ESPOS | All versions | 2.7.18-150000.44.1 |
python-base SUSE:Linux Enterprise High Performance Computing 15 SP2-ESPOS | All versions | 2.7.18-150000.44.1 |
python3 SUSE:Linux Enterprise High Performance Computing 15 SP2-ESPOS | All versions | 3.6.15-150000.3.109.1 |
python3-core SUSE:Linux Enterprise High Performance Computing 15 SP2-ESPOS | All versions | 3.6.15-150000.3.109.1 |
python SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | All versions | 2.7.18-150000.44.1 |
python-base SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | All versions | 2.7.18-150000.44.1 |
python3 SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | All versions | 3.6.15-150000.3.109.1 |
python3-core SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | All versions | 3.6.15-150000.3.109.1 |
python SUSE:Linux Enterprise High Performance Computing 15-ESPOS | All versions | 2.7.18-150000.44.1 |
python-base SUSE:Linux Enterprise High Performance Computing 15-ESPOS | All versions | 2.7.18-150000.44.1 |
python3 SUSE:Linux Enterprise High Performance Computing 15-ESPOS | All versions | 3.6.15-150000.3.109.1 |
python3-core SUSE:Linux Enterprise High Performance Computing 15-ESPOS | All versions | 3.6.15-150000.3.109.1 |
python SUSE:Linux Enterprise High Performance Computing 15-LTSS | All versions | 2.7.18-150000.44.1 |
python-base SUSE:Linux Enterprise High Performance Computing 15-LTSS | All versions | 2.7.18-150000.44.1 |
python3 SUSE:Linux Enterprise High Performance Computing 15-LTSS | All versions | 3.6.15-150000.3.109.1 |
python3-core SUSE:Linux Enterprise High Performance Computing 15-LTSS | All versions | 3.6.15-150000.3.109.1 |
python3 SUSE:Linux Enterprise Micro 5.1 | All versions | 3.6.15-150000.3.109.1 |
python3-core SUSE:Linux Enterprise Micro 5.1 | All versions | 3.6.15-150000.3.109.1 |
python3 SUSE:Linux Enterprise Micro 5.2 | All versions | 3.6.15-150300.10.30.1 |
python3-core SUSE:Linux Enterprise Micro 5.2 | All versions | 3.6.15-150300.10.30.1 |
python3 SUSE:Linux Enterprise Micro 5.3 | All versions | 3.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.
Other vulnerabilities in Fedoraproject Fedora
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.