CVE-2021-3426
JSON

5.7medium

Information disclosure via pydoc getfile

Severity
5.7medium CVSS:3.1 by CISA-ADP
Exploit likelihood
1.86% (higher than 79% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
redhat
Also known as
PSF-2021-4BIT-LIBPYTHON-2021-3426BIT-PYTHON-2021-3426BIT-PYTHON-MIN-2021-3426

Description

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.

Affected

Product or packageVersionsReported by
pythonpython 3.8.9, python 3.9.3, python 3.10.0a7CVE List
https://github.com/python/cpythonbefore 5b1e50256b6532667b6d31debc350f6c7d3f30aa, before 7c2284f97d140c4e4a85382bfb3a42440be2464d, before 7e38d3309e0a5a7b9e23ef933aef0079c6e317f7, before 9b999479c0022edfc9835a8a1f06e046f3881048, before ed753d94856213ae9fc028195f670e66a24e2334Python Software Foundation
python pythonbefore 2.7.18, from 3.6.0 before 3.6.13, from 3.7.0 before 3.7.10, from 3.8.0 before 3.8.8, from 3.9.0 before 3.9.3, 3.10.0NVD
fedoraproject fedora32, 33, 34NVD
debian debian_linux9.0NVD
redhat software_collectionsNot specifiedNVD
redhat enterprise_linux8.0NVD
netapp cloud_backupNot specifiedNVD
netapp ontap_select_deploy_administration_utilityNot specifiedNVD
netapp snapcenterNot specifiedNVD
oracle communications_cloud_native_core_binding_support_function1.10.0NVD
oracle zfs_storage_appliance_kit8.8NVD

All scores

CISA-ADP5.7medium CVSS:3.1CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
NVD5.7medium CVSS:3.1CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
NVD2.7low CVSS:2.0AV:A/AC:L/Au:S/C:P/I:N/A:N
Bitnami Vulnerability Databasemedium rating

Classification

CWE-22CWE-200

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

Se presenta un fallo en pydoc de Python versión 3. Un atacante local o adyacente que descubre o es capaz de convencer a otro usuario local o adyacente para que iniciar un servidor pydoc podría acceder al servidor y usarlo para divulgar información confidencial perteneciente al otro usuario al que normalmente no podría acceder. El mayor riesgo de este fallo es la confidencialidad de los datos. Este fallo afecta a Python versiones anteriores a 3.8.9, Python versiones anteriores a 3.9.3 y Python versiones anteriores a 3.10.0a7

Bitnami Vulnerability Database

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.0.

References

https://lists.debian.org/debian-lts-announce/2021/04/msg00005.htmladvisory, mailing-list, third-party-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/25HVHLBGO2KNPXJ3G426QEYSSCECJDU5/vendor-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VPX7Y5GQDNB4FJTREWONGC4ZSVH7TGHF/vendor-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DQYPUKLLBOZMKFPO7RD7CENTXHUUEUV7/vendor-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/N6VXJZSZ6N64AILJX4CTMACYGQGHHD5C/vendor-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QNGAFMPIYIVJ47FCF2NK2PIX22HUG35B/vendor-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BF2K7HEWADHN6P52R3QLIOX27U3DJ4HI/vendor-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LM5V4VPLBHBEASSAROYPSHXGXGGPHNOE/vendor-advisory, web
https://security.gentoo.org/glsa/202104-04advisory, third-party-advisory, vendor-advisory
https://bugzilla.redhat.com/show_bug.cgi?id=1935913advisory, issue-tracking, patch, third-party-advisory
https://www.oracle.com/security-alerts/cpuoct2021.htmladvisory, patch, third-party-advisory
https://security.netapp.com/advisory/ntap-20210629-0003/advisory, third-party-advisory

Sources

SourceRecordLicence
CVE ListCVE-2021-3426 changed 2026-10-14CVE Terms of Use
Python Software FoundationPSF-2021-4 changed 2025-10-09CC-BY-4.0
NVDCVE-2021-3426 changed 2026-10-14Public domain
Bitnami Vulnerability DatabaseBIT-LIBPYTHON-2021-3426 changed 2026-09-08Apache-2.0
Bitnami Vulnerability DatabaseBIT-PYTHON-2021-3426 changed 2026-09-08Apache-2.0
Bitnami Vulnerability DatabaseBIT-PYTHON-MIN-2021-3426 changed 2026-09-08Apache-2.0