cve.bz

CVE-2020-14422 Use of Insufficiently Random Values

5.9 mediumEPSS 13%

Medium (5.9). EPSS 13% estimated probability of exploitation activity in the next 30 days.

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

Severity

CVSS 3.1

5.9 medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
13% (unchanged from 13% a week ago; 13% 30 days ago) estimated probability of exploitation activity in the next 30 days; 96th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2026-10-08. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-330 Use of Insufficiently Random Values
CWE-682 Incorrect Calculation
OWASP Top 10
A04:2025 Cryptographic Failures
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-2020-14422 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2020-14422?via=ask-ai-copy and https://cve.bz/cve/CVE-2020-14422?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-2020-14422 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.

Badge for a README or a site

CVE-2020-14422

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2020-14422](https://cve.bz/cve/badge/CVE-2020-14422.svg)](https://cve.bz/cve/CVE-2020-14422)

HTML:

<a href="https://cve.bz/cve/CVE-2020-14422"><img src="https://cve.bz/cve/badge/CVE-2020-14422.svg" alt="CVE-2020-14422"></a>

Affected

Versions

From the NVD's CPE matches.

ProductAffected
python:pythonfrom 3.0.0 before 3.5.10
python:pythonfrom 3.6.0 before 3.6.12
python:pythonfrom 3.7.0 before 3.7.9
python:pythonfrom 3.8.0 before 3.8.4
opensuse:leap15.1
opensuse:leap15.2
fedoraproject:fedora31
fedoraproject:fedora32
oracle:enterprise_manager_ops_center12.4.0.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9python3.53.5.3-1+deb9u2DLA-2280-1
Debian10python-ipaddress1.0.17-1+deb10u1DLA-3424-1
Debian11python-ipaddressno fix listedDEBIAN-CVE-2020-14422
Ubuntu16.04:LTSpython2.72.7.12-1ubuntu0~16.04.12USN-4428-1
Ubuntu16.04:LTSpython3.53.5.2-2ubuntu0~16.04.11UBUNTU-CVE-2020-14422 USN-4428-1
Ubuntu18.04:LTSpython2.72.7.17-1~18.04ubuntu1.1USN-4428-1
Ubuntu18.04:LTSpython3.63.6.9-1~18.04ubuntu1.1UBUNTU-CVE-2020-14422 USN-4428-1
Ubuntu20.04:LTSpython3.83.8.2-1ubuntu1.2UBUNTU-CVE-2020-14422 USN-4428-1 USN-6891-1
Ubuntu22.04:LTSpython3.103.10.12-1~22.04.4USN-6891-1
UbuntuPro:14.04:LTSpython2.72.7.6-8ubuntu0.6+esm6USN-4428-1
UbuntuPro:14.04:LTSpython3.43.4.3-1ubuntu1~14.04.7+esm7UBUNTU-CVE-2020-14422 USN-4428-1
UbuntuPro:14.04:LTSpython3.53.5.2-2ubuntu0~16.04.4~14.04.1+esm1UBUNTU-CVE-2020-14422 USN-6891-1
UbuntuPro:16.04:LTSpython3.53.5.2-2ubuntu0~16.04.13+esm13USN-6891-1
UbuntuPro:18.04:LTSpython3.63.6.9-1~18.04ubuntu1.13+esm2USN-6891-1
UbuntuPro:18.04:LTSpython3.73.7.5-2ubuntu1~18.04.2+esm3UBUNTU-CVE-2020-14422 USN-6891-1
3 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hatenterprise_linux:7::client, enterprise_linux:7::server, enterprise_linux:7::workstationpython3, python3-idle, python3-libs and 5 more0:3.6.8-18.el7RHSA-2020:5010
Red Hatenterprise_linux:7::computenodepython3, python3-idle, python3-test and 4 more0:3.6.8-18.el7RHSA-2020:5010
Red Hatenterprise_linux:8::appstreamCython, python38-Cython, Cython-debugsource and 1 more0:0.29.14-4.module+el8.2.0+5234+f98739b6RHSA-2020:4641
Red Hatenterprise_linux:8::appstreamPyYAML, python38-pyyaml, PyYAML-debugsource and 1 more0:5.3.1-1.module+el8.3.0+7187+a27ec44bRHSA-2020:4641
Red Hatenterprise_linux:8::appstreambabel, python38-babel0:2.7.0-10.module+el8.2.0+5234+f98739b6RHSA-2020:4641
Red Hatenterprise_linux:8::appstreammod_wsgi, python38-mod_wsgi0:4.6.8-3.module+el8.2.0+5234+f98739b6RHSA-2020:4641
Red Hatenterprise_linux:8::appstreamnumpy, python38-numpy, numpy-debugsource and 3 more0:1.17.3-5.module+el8.3.0+7187+a27ec44bRHSA-2020:4641
Red Hatenterprise_linux:8::appstreampython-PyMySQL, python38-PyMySQL0:0.9.3-3.module+el8.2.0+5234+f98739b6RHSA-2020:4641
Red Hatenterprise_linux:8::appstreampython-asn1crypto, python38-asn1crypto0:1.2.0-3.module+el8.2.0+5234+f98739b6RHSA-2020:4641
Red Hatenterprise_linux:8::appstreampython-cffi, python38-cffi, python-cffi-debugsource and 1 more0:1.13.2-3.module+el8.2.0+5234+f98739b6RHSA-2020:4641
Red Hatenterprise_linux:8::appstreampython-chardet, python38-chardet0:3.0.4-19.module+el8.2.0+5234+f98739b6RHSA-2020:4641
Red Hatenterprise_linux:8::appstreampython-cryptography, python38-cryptography, python-cryptography-debugsource and 1 more0:2.8-3.module+el8.2.0+5234+f98739b6RHSA-2020:4641
29 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 5, HPE Helion OpenStack 8, Linux Enterprise Module for Web and Scripting 12 and 16 morepython3, python3-base3.4.10-25.52.1SUSE-SU-2020:2699-1
SUSEEnterprise Storage 5, HPE Helion OpenStack 8, Linux Enterprise Server 12 SP2-BCL and 14 morepython-ipaddress1.0.18-3.13.1SUSE-SU-2020:2157-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8, OpenStack Cloud Crowbar 8python-ipaddress1.0.18-3.3.1SUSE-SU-2020:1939-1
SUSELinux Enterprise High Performance Computing 15-ESPOS, Linux Enterprise High Performance Computing 15-LTSS, Linux Enterprise Module for Basesystem 15 SP1 and 3 morepython3, python3-base3.6.10-3.56.1SUSE-SU-2020:1822-1
SUSELinux Enterprise High Performance Computing 15-ESPOS, Linux Enterprise High Performance Computing 15-LTSS, Linux Enterprise Module for Basesystem 15 SP1 and 3 morepython3, python3-core3.6.12-3.67.2SUSE-SU-2020:3930-1
SUSELinux Enterprise High Performance Computing 15-ESPOS, Linux Enterprise High Performance Computing 15-LTSS, Linux Enterprise Module for Python 2 15 SP1 and 3 morepython-ipaddress1.0.18-3.3.1SUSE-SU-2020:1920-1
SUSELinux Enterprise Module for Development Tools 15 SP1, Linux Enterprise Module for Development Tools 15 SP2python3-base3.6.10-3.56.1SUSE-SU-2020:1822-1
SUSELinux Enterprise Module for Development Tools 15 SP1, Linux Enterprise Module for Development Tools 15 SP2python3-core3.6.12-3.67.2SUSE-SU-2020:3930-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5python36, python36-base3.6.10-4.17.1SUSE-SU-2020:2216-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5python36, python36-core3.6.12-4.22.2SUSE-SU-2020:3563-1
SUSEOpenStack Cloud 9, OpenStack Cloud Crowbar 9python-ipaddress1.0.22-3.3.1SUSE-SU-2020:1940-1
openSUSELeap 15.1python-ipaddress1.0.18-lp151.3.3.1openSUSE-SU-2020:0989-1
openSUSELeap 15.1python3, python3-base3.6.10-lp151.6.21.1openSUSE-SU-2020:0931-1
openSUSELeap 15.1python3, python3-core, python3-documentation3.6.12-lp151.6.32.1openSUSE-SU-2020:2333-1
openSUSELeap 15.2python-ipaddress1.0.18-lp152.4.3.1openSUSE-SU-2020:1002-1
openSUSELeap 15.2python3, python3-core, python3-documentation3.6.12-lp152.4.14.1openSUSE-SU-2020:2332-1
openSUSELeap 15.2python3, python3-doc, python3-base3.6.10-lp152.4.3.1openSUSE-SU-2020:0940-1
openSUSETumbleweedpython363.6.15-1.1openSUSE-SU-2024:11284-1
AlmaLinux8python38-Cython0.29.14-4.module_el8.6.0+2778+cd494b30ALSA-2020:4641
AlmaLinux8python38-asn1crypto1.2.0-3.module_el8.6.0+2778+cd494b30ALSA-2020:4641
AlmaLinux8python38-cffi1.13.2-3.module_el8.6.0+2778+cd494b30ALSA-2020:4641
AlmaLinux8python38-chardet3.0.4-19.module_el8.6.0+2778+cd494b30ALSA-2020:4641
AlmaLinux8python38-cryptography2.8-3.module_el8.6.0+2778+cd494b30ALSA-2020:4641
AlmaLinux8python38-idna2.8-6.module_el8.6.0+2778+cd494b30ALSA-2020:4641
AlmaLinux8python38-markupsafe1.1.1-6.module_el8.6.0+2778+cd494b30ALSA-2020:4641
AlmaLinux8python38-mod_wsgi4.6.8-3.module_el8.6.0+2778+cd494b30ALSA-2020:4641
AlmaLinux8python38-psycopg2, python38-psycopg2-doc, python38-psycopg2-tests2.8.4-4.module_el8.6.0+2778+cd494b30ALSA-2020:4641
AlmaLinux8python38-pycparser2.19-3.module_el8.6.0+2778+cd494b30ALSA-2020:4641
AlmaLinux8python38-pysocks1.7.1-4.module_el8.6.0+2778+cd494b30ALSA-2020:4641
AlmaLinux8python38-pytz2019.3-3.module_el8.6.0+2778+cd494b30ALSA-2020:4641
2 more for AlmaLinux in the JSON.
Rocky Linux8Cython0:0.29.14-4.module+el8.4.0+570+c2eaf144RLSA-2020:4641
Rocky Linux8PyYAML0:5.3.1-1.module+el8.4.0+570+c2eaf144RLSA-2020:4641
Rocky Linux8babel0:2.7.0-10.module+el8.4.0+570+c2eaf144RLSA-2020:4641
Rocky Linux8mod_wsgi0:4.6.8-3.module+el8.4.0+570+c2eaf144RLSA-2020:4641
Rocky Linux8numpy0:1.17.3-5.module+el8.4.0+570+c2eaf144RLSA-2020:4641
Rocky Linux8python-asn1crypto0:1.2.0-3.module+el8.4.0+570+c2eaf144RLSA-2020:4641
Rocky Linux8python-cffi0:1.13.2-3.module+el8.4.0+570+c2eaf144RLSA-2020:4641
Rocky Linux8python-chardet0:3.0.4-19.module+el8.4.0+570+c2eaf144RLSA-2020:4641
Rocky Linux8python-cryptography0:2.8-3.module+el8.4.0+570+c2eaf144RLSA-2020:4641
Rocky Linux8python-cryptography0:2.8-3.module+el8.5.0+672+ab6eb015RLSA-2020:4641
Rocky Linux8python-idna0:2.8-6.module+el8.4.0+570+c2eaf144RLSA-2020:4641
Rocky Linux8python-jinja20:2.10.3-4.module+el8.4.0+570+c2eaf144RLSA-2020:4641
14 more for Rocky Linux in the JSON.
Alpinev3.9python33.6.9-r3ALPINE-CVE-2020-14422
Alpinev3.10python33.7.7-r1ALPINE-CVE-2020-14422
Alpinev3.11python33.8.2-r1ALPINE-CVE-2020-14422
Alpinev3.12, v3.13, v3.14 and 10 morepython33.8.4-r0ALPINE-CVE-2020-14422

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; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

In Red Hat Enterprise Linux, python3 includes the ipaddress module by default, while for python2 a separate package, python-ipaddress, needs to be installed for the module to be used. Moreover, the ipaddress module is included in other packages as well, like python-pip.

Red Hat's mitigation

As a short term solution, if your application is using the IPv4Interface/IPv6Interface classes as keys of a dictionary, it is possible to patch the __hash__ method of those classes to not be constant.

```

IPv4Interface.__hash__ = lambda self: hash((self._ip, self._prefixlen, int(self.network.network_address)))

IPv6Interface.__hash__ = lambda self: hash((self._ip, self._prefixlen, int(self.network.network_address)))

```

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7python3-0:3.6.8-18.el7Fixed 2020-11-10RHSA-2020:5010
Red Hat Enterprise Linux 8python3-0:3.6.8-31.el8Fixed 2020-11-04RHSA-2020:4433
Red Hat Enterprise Linux 8python38:3.8-8030020200818121840.4190259bFixed 2020-11-04RHSA-2020:4641
Red Hat Software Collections for Red Hat Enterprise Linux 6rh-python36-python-0:3.6.12-1.el6Fixed 2020-10-19RHSA-2020:4285
Red Hat Software Collections for Red Hat Enterprise Linux 6rh-python36-python-pip-0:9.0.1-5.el6Fixed 2020-10-19RHSA-2020:4285
Red Hat Software Collections for Red Hat Enterprise Linux 6rh-python36-python-virtualenv-0:15.1.0-3.el6Fixed 2020-10-19RHSA-2020:4285
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-python36-python-0:3.6.12-1.el7Fixed 2020-10-19RHSA-2020:4285
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-python36-python-pip-0:9.0.1-5.el7Fixed 2020-10-19RHSA-2020:4285
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-python36-python-virtualenv-0:15.1.0-3.el7Fixed 2020-10-19RHSA-2020:4285
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-python38-python-0:3.8.6-1.el7Fixed 2020-10-20RHSA-2020:4299
Red Hat Enterprise Linux 5pythonOut of support scope
Red Hat Enterprise Linux 6pythonOut of support scope
Red Hat Enterprise Linux 7python-ipaddressWill not fix
Red Hat Enterprise Linux 7python-pipWill not fix
Red Hat Enterprise Linux 8python27:2.7/python2-pipWill not fix
Red Hat Enterprise Linux 8python27:2.7/python-ipaddressWill not fix
Red Hat Enterprise Linux 8python36:3.6/python36Not affected
Red Hat Enterprise Linux 8python-pipNot affected
Red Hat Quay 3python-ipaddressWill not fix
Red Hat Software Collectionspython27-python-pipWill not fix
15 more in the JSON and on Red Hat's page.

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-2020-14422.

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-128 Integer Attacks Severity: Medium
  • CAPEC-129 Pointer Manipulation Severity: Medium
  • CAPEC-59 Session Credential Falsification through Prediction Likelihood: High · Severity: High
  • CAPEC-112 Brute Force Severity: High
  • CAPEC-485 Signature Spoofing by Key Recreation Likelihood: Low · Severity: High

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

References

Check your stackJSON