# CVE-2021-3426: Information disclosure via pydoc getfile

- Severity: Medium 5.7 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.86%, higher than 79% of CVEs (2026-12-01)
- Published: 2021-05-20T00:00:00.000Z
- Modified: 2026-10-14T10:17:41.557Z
- Also known as: PSF-2021-4, BIT-LIBPYTHON-2021-3426, BIT-PYTHON-2021-3426, BIT-PYTHON-MIN-2021-3426
- Weaknesses: CWE-22, CWE-200
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: redhat

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

(As written by CVE List.)

## Affected

- python: python 3.8.9, python 3.9.3, python 3.10.0a7
- https://github.com/python/cpython: before 5b1e50256b6532667b6d31debc350f6c7d3f30aa; before 7c2284f97d140c4e4a85382bfb3a42440be2464d; before 7e38d3309e0a5a7b9e23ef933aef0079c6e317f7; before 9b999479c0022edfc9835a8a1f06e046f3881048; before ed753d94856213ae9fc028195f670e66a24e2334
- python python: before 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.0
- fedoraproject fedora: 32; 33; 34
- debian debian_linux: 9.0
- redhat software_collections: no versions given
- redhat enterprise_linux: 8.0
- netapp cloud_backup: no versions given
- netapp ontap_select_deploy_administration_utility: no versions given
- netapp snapcenter: no versions given
- oracle communications_cloud_native_core_binding_support_function: 1.10.0
- oracle zfs_storage_appliance_kit: 8.8
- libpython (Bitnami): before 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
- python (Bitnami): before 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
- python-min (Bitnami): before 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

## Every score

- CISA-ADP: 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`
- NVD: 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`
- NVD: CVSS:2.0 2.7 Low `AV:A/AC:L/Au:S/C:P/I:N/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://lists.debian.org/debian-lts-announce/2021/04/msg00005.html> (advisory, 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-04> (advisory, third-party-advisory, vendor-advisory)
- <https://bugzilla.redhat.com/show_bug.cgi?id=1935913> (advisory, issue-tracking, patch, third-party-advisory)
- <https://www.oracle.com/security-alerts/cpuoct2021.html> (advisory, patch, third-party-advisory)
- <https://security.netapp.com/advisory/ntap-20210629-0003/> (advisory, third-party-advisory)
- <https://www.oracle.com/security-alerts/cpujan2022.html> (advisory, patch, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2023/06/msg00039.html> (mailing-list, web)
- <https://lists.debian.org/debian-lts-announce/2024/12/msg00000.html> (web)
- <https://cert-portal.siemens.com/productcert/html/ssa-398330.html>
- <https://bugzilla.redhat.com/show_bug.cgi?id=1917807> (advisory)
- <https://bugs.python.org/issue42988> (report)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-3426> (web)

## Sources

- CVE List: [CVE-2021-3426](https://www.cve.org/CVERecord?id=CVE-2021-3426), CVE Terms of Use, modified 2026-10-14
- Python Software Foundation: [PSF-2021-4](https://osv.dev/vulnerability/PSF-2021-4), CC-BY-4.0, modified 2025-10-09
- NVD: [CVE-2021-3426](https://nvd.nist.gov/vuln/detail/CVE-2021-3426), Public domain, modified 2026-10-14
- Bitnami Vulnerability Database: [BIT-LIBPYTHON-2021-3426](https://osv.dev/vulnerability/BIT-LIBPYTHON-2021-3426), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-PYTHON-2021-3426](https://osv.dev/vulnerability/BIT-PYTHON-2021-3426), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-PYTHON-MIN-2021-3426](https://osv.dev/vulnerability/BIT-PYTHON-MIN-2021-3426), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2021-3426 · Whole record: https://cve.day/CVE-2021-3426.json · Rebuilt by cve.day 2026-11-25T22:58:01.466Z
