Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-3426

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-3426
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 08:10 UTC · Revision 1

Source evidence

CVE-2021-3426

core-osv · Original source

Published 20 May 2021, 13:15 UTC

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.

osv:CVE-2021-3426
Complete source record
{
  "id": "6a292aaa0054a1597eab6950ae189c6f9f24341ec27734cc8efc45db82fa4643",
  "url": "https://osv.dev/vulnerability/CVE-2021-3426",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-3426",
    "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 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.",
    "evidence": "osv:CVE-2021-3426",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2021-3426",
      "aliases": [
        "BIT-libpython-2021-3426",
        "BIT-python-2021-3426",
        "BIT-python-min-2021-3426",
        "CVE-2021-3426",
        "PSF-2021-4"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/python/cpython",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "8d21aa21f2cbc6d50aab3f420bb23be1d081dac4"
                },
                {
                  "introduced": "5c4568a05a0a62b5947c55f68f9f2ecfb90a4f12"
                },
                {
                  "fixed": "aa73e1722eb9835dc99fd8983885a141112ee4ab"
                },
                {
                  "introduced": "1bf9cc509326bc42cd8cb1650eb9bf64550d817e"
                },
                {
                  "fixed": "9b2dd1fc6c9913dbeee623e724b6baa598038f97"
                },
                {
                  "introduced": "fa919fdf2583bdfead1df00e842f24f30b2a34bf"
                },
                {
                  "fixed": "024d8058b0cb2b13dfd65c8e3804a6b194a151ba"
                },
                {
                  "introduced": "9cf6752276e6fcfd0c23fdb064ad27f448aaaf75"
                },
                {
                  "fixed": "e723086bc33c19c6c52046d515eb3c2aab1b8f97"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:python:python:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "2.7.18"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:python:python:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.6.0"
                      },
                      {
                        "fixed": "3.6.13"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:python:python:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.7.0"
                      },
                      {
                        "fixed": "3.7.10"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:python:python:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.8.0"
                      },
                      {
                        "fixed": "3.8.8"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:python:python:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.9.0"
                      },
                      {
                        "fixed": "3.9.3"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v3.9.2",
            "v3.9.2rc1",
            "v3.8.8rc1",
            "v3.6.12",
            "v3.7.9",
            "v3.9.0b5",
            "v3.8.5",
            "v3.7.8",
            "v3.6.11",
            "v3.6.11rc1",
            "v3.7.8rc1",
            "v3.9.0b3",
            "v3.9.0b1",
            "v3.8.3",
            "v3.8.3rc1",
            "v2.7.18rc1",
            "v3.7.7rc1",
            "v3.9.0a2",
            "v3.6.10",
            "v3.6.10rc1",
            "v3.7.6rc1",
            "v2.7.17",
            "v2.7.17rc1",
            "v3.8.0rc1",
            "v3.6.9",
            "v3.6.9rc1",
            "v3.7.3rc1",
            "v2.7.16rc1",
            "v3.6.8",
            "v3.7.2rc1",
            "v3.6.8rc1",
            "v3.7.0rc1",
            "v3.6.6rc1",
            "v3.7.0b5",
            "v3.7.0b4",
            "v2.7.15rc1",
            "v3.7.0b3",
            "v3.7.0b2",
            "v3.7.0b1",
            "v3.7.0a2",
            "v3.6.2rc1",
            "v3.6.0rc1",
            "v2.7.13rc1",
            "v3.6.0b4",
            "v3.6.0b3",
            "v3.6.0b1",
            "v3.6.0a3",
            "v2.7.12rc1",
            "v2.7.11rc1",
            "v3.5.0b1",
            "v2.7.10rc1",
            "v3.5.0a4",
            "v3.5.0a3",
            "v3.5.0a2",
            "v3.5.0a1",
            "v2.7.9rc1",
            "v2.7.8",
            "v3.4.0b3",
            "v3.4.0b2",
            "v3.4.0b1",
            "v2.7.6rc1",
            "v3.4.0a4",
            "v3.4.0a3",
            "v3.4.0a2",
            "v3.4.0a1",
            "v2.7.5",
            "v2.7.4rc1",
            "v3.3.0rc3",
            "v3.3.0rc2",
            "v3.3.0rc1",
            "v3.3.0b2",
            "v3.3.0b1",
            "v3.3.0a4",
            "v3.3.0a3",
            "v3.3.0a2",
            "v2.7.3rc1",
            "v2.7.2rc1",
            "v2.7",
            "v3.2rc3",
            "v3.2rc2",
            "v3.2rc1",
            "v3.2b2",
            "v3.2b1",
            "v2.7.1",
            "v2.7.1rc1",
            "v3.2a4",
            "v3.2a3",
            "v3.2a2",
            "v3.2a1",
            "v2.7rc2",
            "v2.7rc1",
            "v2.7b2",
            "v2.7b1",
            "v2.7a4",
            "v2.7a3",
            "v2.7a2",
            "v2.7a1",
            "v3.1",
            "v3.1rc2",
            "v3.1rc1",
            "v3.1b1",
            "v3.1a2",
            "v3.1a1",
            "v3.0rc3",
            "v3.0rc2",
            "v2.6",
            "v2.6rc2",
            "v3.0rc1",
            "v2.6rc1",
            "v3.0b3",
            "v2.6b3",
            "v2.6b2",
            "v3.0b2",
            "v2.6b1",
            "v3.0b1",
            "v2.6a3",
            "v3.0a5",
            "v2.6a2",
            "v3.0a4",
            "v3.0a3",
            "v2.6a1",
            "v3.0a2",
            "v3.0a1",
            "v2.5b3",
            "v2.5b2",
            "v2.5b1",
            "v2.5a2",
            "v2.5a1",
            "v2.5a0",
            "v2.4",
            "v2.4c1",
            "v2.4b2",
            "v2.4b1",
            "v2.4a3",
            "v2.4a2",
            "v2.4a1",
            "v2.3c2",
            "v2.3c1",
            "v2.2a3",
            "v2.1",
            "v2.1c2",
            "v2.1c1",
            "v2.1b2",
            "v2.1b1",
            "v2.1a2",
            "v2.1a1",
            "v2.0",
            "v2.0c1",
            "v2.0b2",
            "v2.0b1",
            "v1.6a2",
            "v1.6a1",
            "v1.5.2",
            "v1.5.2c1",
            "v1.5.2b2",
            "v1.5.2b1",
            "v1.5.2a2",
            "v1.5.2a1",
            "v1.5.1",
            "v1.5",
            "v1.5b2",
            "v1.5b1",
            "v1.5a4",
            "v1.5a3",
            "v1.5a2",
            "v1.5a1",
            "v1.4",
            "v1.4b3",
            "v1.4b2",
            "v1.4b1",
            "v1.3",
            "v1.3b1",
            "v1.2",
            "v1.2b4",
            "v1.2b3",
            "v1.2b2",
            "v1.2b1",
            "v1.1.1",
            "v1.1",
            "v1.0.2",
            "v1.0.1",
            "v0.9.9",
            "v0.9.8"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-3426.json"
          }
        }
      ],
      "modified": "2026-10-24T10:31:03.929863290Z",
      "provider": "osv",
      "references": [
        "https://cert-portal.siemens.com/productcert/html/ssa-398330.html",
        "https://lists.debian.org/debian-lts-announce/2023/06/msg00039.html",
        "https://lists.debian.org/debian-lts-announce/2024/12/msg00000.html",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/25HVHLBGO2KNPXJ3G426QEYSSCECJDU5/",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BF2K7HEWADHN6P52R3QLIOX27U3DJ4HI/",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DQYPUKLLBOZMKFPO7RD7CENTXHUUEUV7/",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LM5V4VPLBHBEASSAROYPSHXGXGGPHNOE/",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/N6VXJZSZ6N64AILJX4CTMACYGQGHHD5C/",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QNGAFMPIYIVJ47FCF2NK2PIX22HUG35B/",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VPX7Y5GQDNB4FJTREWONGC4ZSVH7TGHF/",
        "https://lists.debian.org/debian-lts-announce/2021/04/msg00005.html",
        "https://security.gentoo.org/glsa/202104-04",
        "https://security.netapp.com/advisory/ntap-20210629-0003/",
        "https://bugzilla.redhat.com/show_bug.cgi?id=1935913",
        "https://www.oracle.com/security-alerts/cpujan2022.html",
        "https://www.oracle.com/security-alerts/cpuoct2021.html"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "debian:debian_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "9.0"
                  },
                  {
                    "last_affected": "9.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*",
              "cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*",
              "cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*"
            ],
            "vendor_product": "fedoraproject:fedora",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "32"
                  },
                  {
                    "last_affected": "32"
                  },
                  {
                    "introduced": "33"
                  },
                  {
                    "last_affected": "33"
                  },
                  {
                    "introduced": "34"
                  },
                  {
                    "last_affected": "34"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:a:oracle:communications_cloud_native_core_binding_support_function:1.10.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "oracle:communications_cloud_native_core_binding_support_function",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "1.10.0"
                  },
                  {
                    "last_affected": "1.10.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:a:oracle:zfs_storage_appliance_kit:8.8:*:*:*:*:*:*:*"
            ],
            "vendor_product": "oracle:zfs_storage_appliance_kit",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "8.8"
                  },
                  {
                    "last_affected": "8.8"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:a:python:python:3.10.0:alpha1:*:*:*:*:*:*",
              "cpe:2.3:a:python:python:3.10.0:alpha2:*:*:*:*:*:*",
              "cpe:2.3:a:python:python:3.10.0:alpha3:*:*:*:*:*:*",
              "cpe:2.3:a:python:python:3.10.0:alpha4:*:*:*:*:*:*",
              "cpe:2.3:a:python:python:3.10.0:alpha5:*:*:*:*:*:*",
              "cpe:2.3:a:python:python:3.10.0:alpha6:*:*:*:*:*:*"
            ],
            "vendor_product": "python:python",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "3.10.0-alpha1"
                  },
                  {
                    "last_affected": "3.10.0-alpha1"
                  },
                  {
                    "introduced": "3.10.0-alpha2"
                  },
                  {
                    "last_affected": "3.10.0-alpha2"
                  },
                  {
                    "introduced": "3.10.0-alpha3"
                  },
                  {
                    "last_affected": "3.10.0-alpha3"
                  },
                  {
                    "introduced": "3.10.0-alpha4"
                  },
                  {
                    "last_affected": "3.10.0-alpha4"
                  },
                  {
                    "introduced": "3.10.0-alpha5"
                  },
                  {
                    "last_affected": "3.10.0-alpha5"
                  },
                  {
                    "introduced": "3.10.0-alpha6"
                  },
                  {
                    "last_affected": "3.10.0-alpha6"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:enterprise_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "8.0"
                  },
                  {
                    "last_affected": "8.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2021-3426",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 440387,
  "published_at": "2021-05-20T13:15:07.753+00:00"
}