cve.bz

CVE-2021-3426 Path traversal

5.7 mediumEPSS 1.9%Fix available

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

On this page
There's a flaw in Python 3's pydoc. A local or adjacent attacker who discovers or is able to convince another local or adjacent user to start a pydoc server could access the server and use it to disclose sensitive information belonging to the other user that they would not normally be able to access. The highest risk of this flaw is to data confidentiality. This flaw affects Python versions before 3.8.9, Python versions before 3.9.3 and Python versions before 3.10.0a7.

Severity

CVSS 3.1

5.7 medium
CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
EPSS
1.9% (unchanged from 1.9% a week ago; 1.9% 30 days ago) estimated probability of exploitation activity in the next 30 days; 80th 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: no · Technical impact: partial, assessed 2025-12-18. 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-22 Improper Limitation of a Pathname to a Restricted Directory (Path traversal)
CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
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-3426 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-3426?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-3426?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-3426 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-2021-3426

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-2021-3426](https://cve.bz/cve/badge/CVE-2021-3426.svg)](https://cve.bz/cve/CVE-2021-3426)

HTML:

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

Affected

Versions

From the NVD's CPE matches.

ProductAffected
python:pythonbefore 2.7.18
python:pythonfrom 3.6.0 before 3.6.13
python:pythonfrom 3.7.0 before 3.7.10
python:pythonfrom 3.8.0 before 3.8.8
python:pythonfrom 3.9.0 before 3.9.3
python:python3.10.0:alpha1
python:python3.10.0:alpha2
python:python3.10.0:alpha3
python:python3.10.0:alpha4
python:python3.10.0:alpha5
python:python3.10.0:alpha6
fedoraproject:fedora32
fedoraproject:fedora33
fedoraproject:fedora34
debian:debian_linux9.0
redhat:enterprise_linux8.0
oracle:communications_cloud_native_core_binding_support_function1.10.0
oracle:zfs_storage_appliance_kit8.8

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9python3.53.5.3-1+deb9u4DLA-2619-1
Debian10python3.73.7.3-2+deb10u5DLA-3477-1
Debian11python3.93.9.2-1+deb11u2DLA-3980-1
Debian12, 13, 14pypy37.3.3+dfsg-4DEBIAN-CVE-2021-3426
Ubuntu18.04:LTSpython2.72.7.17-1~18.04ubuntu1.7USN-5342-1
Ubuntu18.04:LTSpython3.63.6.9-1~18.04ubuntu1.7UBUNTU-CVE-2021-3426 USN-5342-1
Ubuntu20.04:LTSpython3.83.8.10-0ubuntu1~20.04.10USN-6891-1
Ubuntu20.04:LTSpython3.83.8.10-0ubuntu1~20.04.4USN-5342-1
Ubuntu20.04:LTSpython3.93.9.5-3~20.04.1UBUNTU-CVE-2021-3426
Ubuntu22.04:LTSpython3.103.10.12-1~22.04.4USN-6891-1
UbuntuPro:14.04:LTSpython3.43.4.3-1ubuntu1~14.04.7+esm12UBUNTU-CVE-2021-3426 USN-5342-1
UbuntuPro:14.04:LTSpython3.53.5.2-2ubuntu0~16.04.4~14.04.1+esm1UBUNTU-CVE-2021-3426 USN-6891-1
UbuntuPro:16.04:LTSpython2.72.7.12-1ubuntu0~16.04.18+esm1USN-5342-1
UbuntuPro:16.04:LTSpython3.53.5.2-2ubuntu0~16.04.13+esm2UBUNTU-CVE-2021-3426 USN-5342-1 USN-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+esm1UBUNTU-CVE-2021-3426 USN-5342-3 USN-6891-1
3 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hatenterprise_linux:8::appstreamCython, python38-Cython, Cython-debugsource and 1 more0:0.29.14-4.module+el8.4.0+8888+89bc7e79RHSA-2021:4162
Red Hatenterprise_linux:8::appstreamPyYAML, python38-pyyaml, PyYAML-debugsource and 1 more0:5.4.1-1.module+el8.5.0+10721+14d8e0d5RHSA-2021:4162
Red Hatenterprise_linux:8::appstreamPyYAML, python39-pyyaml, PyYAML-debugsource and 1 more0:5.4.1-1.module+el8.5.0+10613+59a13ec4RHSA-2021:4160
Red Hatenterprise_linux:8::appstreambabel, python38-babel0:2.7.0-11.module+el8.5.0+11015+9c1c7c42RHSA-2021:4162
Red Hatenterprise_linux:8::appstreammod_wsgi, python38-mod_wsgi0:4.6.8-3.module+el8.4.0+8888+89bc7e79RHSA-2021:4162
Red Hatenterprise_linux:8::appstreammod_wsgi, python39-mod_wsgi0:4.7.1-4.module+el8.4.0+9822+20bf1249RHSA-2021:4160
Red Hatenterprise_linux:8::appstreamnumpy, python38-numpy, numpy-debugsource and 3 more0:1.17.3-6.module+el8.5.0+12205+a865257aRHSA-2021:4162
Red Hatenterprise_linux:8::appstreamnumpy, python39-numpy, numpy-debugsource and 3 more0:1.19.4-3.module+el8.5.0+12204+54860423RHSA-2021:4160
Red Hatenterprise_linux:8::appstreampython-PyMySQL, python38-PyMySQL0:0.10.1-1.module+el8.4.0+9692+8e86ab84RHSA-2021:4162
Red Hatenterprise_linux:8::appstreampython-PyMySQL, python39-PyMySQL0:0.10.1-2.module+el8.4.0+9822+20bf1249RHSA-2021:4160
Red Hatenterprise_linux:8::appstreampython-asn1crypto, python38-asn1crypto0:1.2.0-3.module+el8.4.0+8888+89bc7e79RHSA-2021:4162
Red Hatenterprise_linux:8::appstreampython-cffi, python38-cffi, python-cffi-debugsource and 1 more0:1.13.2-3.module+el8.4.0+8888+89bc7e79RHSA-2021:4162
69 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 7 morepython33.6.15-3.91.4SUSE-SU-2021:4015-2
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 7 morepython3-core3.6.15-3.91.3SUSE-SU-2021:4015-2
SUSELinux Enterprise Micro 5.0, Linux Enterprise Micro 5.1, Linux Enterprise Module for Basesystem 15 SP2python33.6.15-3.91.4SUSE-SU-2021:4015-1
SUSELinux Enterprise Micro 5.0, Linux Enterprise Micro 5.1, Linux Enterprise Module for Basesystem 15 SP2 and 1 morepython3-core3.6.15-3.91.3SUSE-SU-2021:4015-1
SUSELinux Enterprise Micro 5.0, Linux Enterprise Module for Basesystem 15 SP2, Linux Enterprise Module for Basesystem 15 SP3python33.6.13-3.81.2SUSE-SU-2021:1557-1
SUSELinux Enterprise Micro 5.0, Linux Enterprise Module for Basesystem 15 SP2, Linux Enterprise Module for Basesystem 15 SP3 and 2 morepython3-core3.6.13-3.81.1SUSE-SU-2021:1557-1
SUSELinux Enterprise Module for Basesystem 15 SP3python3, python3-core3.6.15-10.9.1SUSE-SU-2021:4104-1
SUSELinux Enterprise Module for Development Tools 15 SP3python3-core3.6.15-10.9.1SUSE-SU-2021:4104-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5python36, python36-core3.6.13-4.39.1SUSE-SU-2021:1490-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5python36, python36-core3.6.15-11.1SUSE-SU-2021:3486-1
openSUSELeap 15.3python3, python3-core, python3-documentation3.6.15-10.9.1openSUSE-SU-2021:4104-1
openSUSETumbleweedpython3103.10.0rc1-4.2openSUSE-SU-2024:11283-1
openSUSETumbleweedpython3113.11.0b1-1.1openSUSE-SU-2024:12089-1
openSUSETumbleweedpython3123.12.0a7-1.1openSUSE-SU-2024:12910-1
openSUSETumbleweedpython3133.13.0~b3-1.1openSUSE-SU-2024:14109-1
openSUSETumbleweedpython3143.14.0~a1-1.1openSUSE-SU-2024:14434-1
openSUSETumbleweedpython3153.15.0~a1-1.1openSUSE-SU-2025:15713-1
openSUSETumbleweedpython363.6.15-1.1openSUSE-SU-2024:11284-1
openSUSETumbleweedpython383.8.12-1.2openSUSE-SU-2024:11285-1
openSUSETumbleweedpython393.9.7-2.1openSUSE-SU-2024:11286-1
AlmaLinux8python3-idle, python3-test, platform-python and 3 more3.6.8-41.el8ALSA-2021:4399
AlmaLinux8python3-idle, python3-test, platform-python and 3 more3.6.8-41.el8.almaALSA-2021:4399
AlmaLinux8python38-Cython0.29.14-4.module_el8.6.0+2778+cd494b30ALSA-2021:4162
AlmaLinux8python38-PyMySQL0.10.1-1.module_el8.6.0+2778+cd494b30ALSA-2021:4162
AlmaLinux8python38-asn1crypto1.2.0-3.module_el8.6.0+2778+cd494b30ALSA-2021:4162
AlmaLinux8python38-atomicwrites1.3.0-8.module_el8.6.0+2778+cd494b30ALSA-2021:4162
AlmaLinux8python38-attrs19.3.0-3.module_el8.6.0+2778+cd494b30ALSA-2021:4162
AlmaLinux8python38-babel2.7.0-11.module_el8.6.0+2778+cd494b30ALSA-2021:4162
AlmaLinux8python38-cffi1.13.2-3.module_el8.6.0+2778+cd494b30ALSA-2021:4162
AlmaLinux8python38-chardet3.0.4-19.module_el8.6.0+2778+cd494b30ALSA-2021:4162
AlmaLinux8python38-cryptography2.8-3.module_el8.6.0+2778+cd494b30ALSA-2021:4162
AlmaLinux8python38-idna2.8-6.module_el8.6.0+2778+cd494b30ALSA-2021:4162
54 more for AlmaLinux in the JSON.
Rocky Linux8Cython0:0.29.14-4.module+el8.4.0+570+c2eaf144RLSA-2021:4162
Rocky Linux8Cython0:0.29.21-5.module+el8.4.0+574+843c4898RLSA-2021:4160
Rocky Linux8PyYAML0:5.4.1-1.module+el8.4.0+574+843c4898RLSA-2021:4160 RLSA-2021:4162
Rocky Linux8PyYAML0:5.4.1-1.module+el8.5.0+672+ab6eb015RLSA-2021:4160 RLSA-2021:4162
Rocky Linux8babel0:2.7.0-11.module+el8.5.0+672+ab6eb015RLSA-2021:4162
Rocky Linux8mod_wsgi0:4.6.8-3.module+el8.4.0+570+c2eaf144RLSA-2021:4162
Rocky Linux8mod_wsgi0:4.7.1-4.module+el8.4.0+574+843c4898RLSA-2021:4160
Rocky Linux8numpy0:1.17.3-6.module+el8.5.0+672+ab6eb015RLSA-2021:4162
Rocky Linux8numpy0:1.19.4-3.module+el8.5.0+673+10283621RLSA-2021:4160
Rocky Linux8pybind110:2.6.1-2.module+el8.4.0+574+843c4898RLSA-2021:4160
Rocky Linux8pytest0:4.6.6-3.module+el8.4.0+570+c2eaf144RLSA-2021:4162
Rocky Linux8pytest0:6.0.2-2.module+el8.4.0+574+843c4898RLSA-2021:4160
66 more for Rocky Linux in the JSON.
Alpinev3.15, v3.16, v3.17 and 7 morepython33.9.4-r0ALPINE-CVE-2021-3426
Azure Linux3python-pyno fix listedAZL-109635

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; 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 · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Red Hat Quay from version 3.4 uses Python from Red Hat Enterprise Linux RPM repositories and therefore may receive an update for this issue in a future release. Earlier versions of Red Hat Quay will not receive a patch for this issue.

Python 2.x.x as shipped in any Red Hat product is not affected. This flaw is out of support scope for python3 as shipped with Red Hat Enterprise Linux 7. For more information about Red Hat Enterprise Linux support scope, please see https://access.redhat.com/support/policy/updates/errata/ .

Red Hat's mitigation

Use the console (no argument needed) or HTML file (-w argument) output to generate docs rather than the HTTP server options. Put differently, do not use the -p or -n options of pydoc.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8python39:3.9-8050020210811100211.d428a79bFixed 2021-11-09RHSA-2021:4160
Red Hat Enterprise Linux 8python39-devel:3.9-8050020210811100211.d428a79bFixed 2021-11-09RHSA-2021:4160
Red Hat Enterprise Linux 8python38:3.8-8050020210811101222.e3d35ccaFixed 2021-11-09RHSA-2021:4162
Red Hat Enterprise Linux 8python38-devel:3.8-8050020210811101222.e3d35ccaFixed 2021-11-09RHSA-2021:4162
Red Hat Enterprise Linux 8python3-0:3.6.8-41.el8Fixed 2021-11-09RHSA-2021:4399
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-python38-babel-0:2.7.0-12.el7Fixed 2021-08-24RHSA-2021:3254
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-python38-python-0:3.8.11-2.el7Fixed 2021-08-24RHSA-2021:3254
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-python38-python-cryptography-0:2.8-5.el7Fixed 2021-08-24RHSA-2021:3254
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-python38-python-jinja2-0:2.10.3-6.el7Fixed 2021-08-24RHSA-2021:3254
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-python38-python-lxml-0:4.4.1-7.el7Fixed 2021-08-24RHSA-2021:3254
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-python38-python-pip-0:19.3.1-2.el7Fixed 2021-08-24RHSA-2021:3254
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-python38-python-urllib3-0:1.25.7-7.el7Fixed 2021-08-24RHSA-2021:3254
Red Hat Software Collections for Red Hat Enterprise Linux 7.7 EUSrh-python38-babel-0:2.7.0-12.el7Fixed 2021-08-24RHSA-2021:3254
Red Hat Enterprise Linux 6pythonNot affected
Red Hat Enterprise Linux 7pythonNot affected
Red Hat Enterprise Linux 7python3Out of support scope
Red Hat Enterprise Linux 8python27:2.7/python2Not affected
Red Hat Enterprise Linux 8python36:3.6/python36Not affected
Red Hat Quay 3quay/quay-rhel8Will not fix
Red Hat Software Collectionspython27-pythonNot affected
6 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-2021-3426.

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-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-126 Path Traversal Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-200 (59).

References

Check your stackJSON