---
id: CVE-2021-3426
title: There's a flaw in Python 3's pydoc
summary: >-
  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
  t…
severity: medium
cvss: 5.7
cvssVector: 'CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N'
cwe:
  - CWE-200
  - CWE-22
vendor: python
product: python
affected:
  - python < 2.7.18
  - 'python >= 3.6.0, < 3.6.13'
  - 'python >= 3.7.0, < 3.7.10'
  - 'python >= 3.8.0, < 3.8.8'
  - 'python >= 3.9.0, < 3.9.3'
  - python = 3.10.0
  - fedora = 32
  - fedora = 33
  - fedora = 34
  - debian_linux = 9.0
  - software_collections
  - enterprise_linux = 8.0
  - cloud_backup
  - ontap_select_deploy_administration_utility
  - snapcenter
  - communications_cloud_native_core_binding_support_function = 1.10.0
  - zfs_storage_appliance_kit = 8.8
patched:
  - python 3.9.3
published: '2021-05-20'
updated: '2026-10-14'
sourceUpdated: '2026-10-14T10:17:41.557'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2021-3426'
references:
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=1935913'
    label: secalert@redhat.com
  - url: 'https://lists.debian.org/debian-lts-announce/2021/04/msg00005.html'
    label: secalert@redhat.com
  - url: 'https://lists.debian.org/debian-lts-announce/2023/06/msg00039.html'
    label: secalert@redhat.com
  - url: >-
      https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/25HVHLBGO2KNPXJ3G426QEYSSCECJDU5/
    label: secalert@redhat.com
  - url: >-
      https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BF2K7HEWADHN6P52R3QLIOX27U3DJ4HI/
    label: secalert@redhat.com
  - url: >-
      https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DQYPUKLLBOZMKFPO7RD7CENTXHUUEUV7/
    label: secalert@redhat.com
  - url: >-
      https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LM5V4VPLBHBEASSAROYPSHXGXGGPHNOE/
    label: secalert@redhat.com
  - url: >-
      https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/N6VXJZSZ6N64AILJX4CTMACYGQGHHD5C/
    label: secalert@redhat.com
  - url: >-
      https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QNGAFMPIYIVJ47FCF2NK2PIX22HUG35B/
    label: secalert@redhat.com
  - url: >-
      https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VPX7Y5GQDNB4FJTREWONGC4ZSVH7TGHF/
    label: secalert@redhat.com
  - url: 'https://security.gentoo.org/glsa/202104-04'
    label: secalert@redhat.com
  - url: 'https://security.netapp.com/advisory/ntap-20210629-0003/'
    label: secalert@redhat.com
  - url: 'https://www.oracle.com/security-alerts/cpujan2022.html'
    label: secalert@redhat.com
  - url: 'https://www.oracle.com/security-alerts/cpuoct2021.html'
    label: secalert@redhat.com
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=1935913'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://lists.debian.org/debian-lts-announce/2021/04/msg00005.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://lists.debian.org/debian-lts-announce/2023/06/msg00039.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://lists.debian.org/debian-lts-announce/2024/12/msg00000.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/25HVHLBGO2KNPXJ3G426QEYSSCECJDU5/
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BF2K7HEWADHN6P52R3QLIOX27U3DJ4HI/
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DQYPUKLLBOZMKFPO7RD7CENTXHUUEUV7/
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LM5V4VPLBHBEASSAROYPSHXGXGGPHNOE/
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/N6VXJZSZ6N64AILJX4CTMACYGQGHHD5C/
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QNGAFMPIYIVJ47FCF2NK2PIX22HUG35B/
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VPX7Y5GQDNB4FJTREWONGC4ZSVH7TGHF/
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://security.gentoo.org/glsa/202104-04'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://security.netapp.com/advisory/ntap-20210629-0003/'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://www.oracle.com/security-alerts/cpujan2022.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://www.oracle.com/security-alerts/cpuoct2021.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://cert-portal.siemens.com/productcert/html/ssa-398330.html'
    label: 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
tags:
  - nvd
epss: 0.01878
epssPercentile: 0.78895
ingestedAt: '2026-10-14T10:25:41.190Z'
---

## Overview

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

- `python < 2.7.18`
- `python >= 3.6.0, < 3.6.13`
- `python >= 3.7.0, < 3.7.10`
- `python >= 3.8.0, < 3.8.8`
- `python >= 3.9.0, < 3.9.3`
- `python = 3.10.0`
- `fedora = 32`
- `fedora = 33`
- `fedora = 34`
- `debian_linux = 9.0`
- `software_collections`
- `enterprise_linux = 8.0`
- `cloud_backup`
- `ontap_select_deploy_administration_utility`
- `snapcenter`
- `communications_cloud_native_core_binding_support_function = 1.10.0`
- `zfs_storage_appliance_kit = 8.8`

## Remediation

Upgrade past the affected range:

- `python 3.9.3`
