CVE-2020-14422 Incorrect Calculation and Use of Insufficiently Random Values in Python
A flaw in Python's ipaddress module allows remote attackers to cause denial of service via hash collision attacks on dictionary entries.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2020-14422?
CVE-2020-14422 is a medium-severity denial of service vulnerability in Fedoraproject Fedora, published on 18 Jun 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Lib/ipaddress.py in Python through 3.8.3 improperly computes hash values in the IPv4Interface and IPv6Interface classes, which might allow a remote attacker to cause a denial of service if an application is affected by the performance of a dictionary containing IPv4Interface or IPv6Interface objects, and this attacker can cause many dictionary entries to be created. This is fixed in: v3.5.10, v3.5.10rc1; v3.6.12; v3.7.9; v3.8.4, v3.8.4rc1, v3.8.5, v3.8.6, v3.8.6rc1; v3.9.0, v3.9.0b4, v3.9.0b5, v3.9.0rc1, v3.9.0rc2.
Which versions are affected by CVE-2020-14422?
3 open source packages ship an affected version, including libpython, python and python-min. It affects 4 products.
| Package | Affected | Fixed in |
|---|---|---|
libpython Bitnami | From 3.0.0 | 3.5.10, 3.6.12, 3.7.9, 3.8.4 |
python Bitnami | From 3.0.0 | 3.5.10, 3.6.12, 3.7.9, 3.8.4 |
python-min Bitnami | From 3.0.0 | 3.5.10, 3.6.12, 3.7.9, 3.8.4 |
Linux distribution packages (37)
python-ipaddress SUSE:Enterprise Storage 5 | All versions | 1.0.18-3.13.1 |
python-ipaddress SUSE:HPE Helion OpenStack 8 | All versions | 1.0.18-3.13.1 |
python-ipaddress SUSE:HPE Helion OpenStack 8 | All versions | 1.0.18-3.3.1 |
python-ipaddress SUSE:Linux Enterprise High Performance Computing 15-ESPOS | All versions | 1.0.18-3.3.1 |
python3 SUSE:Linux Enterprise High Performance Computing 15-ESPOS | All versions | 3.6.10-3.56.1 |
python3-base SUSE:Linux Enterprise High Performance Computing 15-ESPOS | All versions | 3.6.10-3.56.1 |
python-ipaddress SUSE:Linux Enterprise High Performance Computing 15-LTSS | All versions | 1.0.18-3.3.1 |
python3 SUSE:Linux Enterprise High Performance Computing 15-LTSS | All versions | 3.6.10-3.56.1 |
python3-base SUSE:Linux Enterprise High Performance Computing 15-LTSS | All versions | 3.6.10-3.56.1 |
python3 SUSE:Linux Enterprise Module for Basesystem 15 SP1 | All versions | 3.6.10-3.56.1 |
python3-base SUSE:Linux Enterprise Module for Basesystem 15 SP1 | All versions | 3.6.10-3.56.1 |
python3 SUSE:Linux Enterprise Module for Basesystem 15 SP2 | All versions | 3.6.10-3.56.1 |
python3-base SUSE:Linux Enterprise Module for Basesystem 15 SP2 | All versions | 3.6.10-3.56.1 |
python3-base SUSE:Linux Enterprise Module for Development Tools 15 SP1 | All versions | 3.6.10-3.56.1 |
python3-base SUSE:Linux Enterprise Module for Development Tools 15 SP2 | All versions | 3.6.10-3.56.1 |
python-ipaddress SUSE:Linux Enterprise Module for Python 2 15 SP1 | All versions | 1.0.18-3.3.1 |
python-ipaddress SUSE:Linux Enterprise Module for Python 2 15 SP2 | All versions | 1.0.18-3.3.1 |
python-ipaddress SUSE:Linux Enterprise Server 12 SP2-BCL | All versions | 1.0.18-3.13.1 |
python-ipaddress SUSE:Linux Enterprise Server 12 SP2-LTSS | All versions | 1.0.18-3.13.1 |
python-ipaddress SUSE:Linux Enterprise Server 12 SP3-BCL | All versions | 1.0.18-3.13.1 |
python-ipaddress SUSE:Linux Enterprise Server 12 SP3-LTSS | All versions | 1.0.18-3.13.1 |
python-ipaddress SUSE:Linux Enterprise Server 12 SP4-LTSS | All versions | 1.0.18-3.13.1 |
python-ipaddress SUSE:Linux Enterprise Server 12 SP5 | All versions | 1.0.18-3.13.1 |
python-ipaddress SUSE:Linux Enterprise Server 15-LTSS | All versions | 1.0.18-3.3.1 |
python3 SUSE:Linux Enterprise Server 15-LTSS | All versions | 3.6.10-3.56.1 |
python3-base SUSE:Linux Enterprise Server 15-LTSS | All versions | 3.6.10-3.56.1 |
python-ipaddress SUSE:Linux Enterprise Server for SAP Applications 12 SP2 | All versions | 1.0.18-3.13.1 |
python-ipaddress SUSE:Linux Enterprise Server for SAP Applications 12 SP3 | All versions | 1.0.18-3.13.1 |
python-ipaddress SUSE:Linux Enterprise Server for SAP Applications 12 SP4 | All versions | 1.0.18-3.13.1 |
python-ipaddress SUSE:Linux Enterprise Server for SAP Applications 12 SP5 | All versions | 1.0.18-3.13.1 |
python-ipaddress SUSE:Linux Enterprise Server for SAP Applications 15 | All versions | 1.0.18-3.3.1 |
python3 SUSE:Linux Enterprise Server for SAP Applications 15 | All versions | 3.6.10-3.56.1 |
python3-base SUSE:Linux Enterprise Server for SAP Applications 15 | All versions | 3.6.10-3.56.1 |
python-ipaddress SUSE:OpenStack Cloud 7 | All versions | 1.0.18-3.13.1 |
python-ipaddress SUSE:OpenStack Cloud 8 | All versions | 1.0.18-3.13.1 |
python-ipaddress SUSE:OpenStack Cloud 8 | All versions | 1.0.18-3.3.1 |
python-ipaddress SUSE:OpenStack Cloud 9 | All versions | 1.0.18-3.13.1 |
Products include Fedoraproject Fedora, Opensuse Leap, Oracle Enterprise Manager Ops Center, Python Python.
How do I fix CVE-2020-14422?
Upgrade libpython to a fixed version for your release line: 3.5.10, 3.6.12, 3.7.9 or 3.8.4.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2020-14422 being exploited?
There is no known exploitation of CVE-2020-14422 in the wild and no public exploit code.
Other vulnerabilities in Fedoraproject Fedora
Sources
Also known as ALPINE-CVE-2020-14422, BIT-libpython-2020-14422, BIT-python-2020-14422, BIT-python-min-2020-14422, CLEANSTART-2026-QW80220, DEBIAN-CVE-2020-14422 and 14 more.