Python Information Disclosure in PyDoc (CVE-2021-3426)

medium Nessus Plugin ID 152871

Synopsis

The remote host contains one or more unsupported versions of Python.

Description

Python's versions prior to 3.6.13, 3.7.10, 3.8.9, 3.9.3 and 3.10.0a7 is affected by information disclosure vulnerability due to pydoc -p: /getfile?key=path that allows user to read arbitrary file on the filesystem. An unauthenticated, 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.

Solution

Upgrade to Python version 3.6.13, 3.7.10, 3.8.9, 3.9.3 and 3.10.0a7 or later.

See Also

https://bugs.python.org/issue42988

Plugin Details

Severity: Medium

ID: 152871

File Name: python_pydoc_id.nbin

Version: 1.51

Type: remote

Family: Web Servers

Published: 8/27/2021

Updated: 11/12/2024

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 4.4

CVSS v2

Risk Factor: Low

Base Score: 2.7

Temporal Score: 2.2

Vector: CVSS2#AV:A/AC:L/Au:S/C:P/I:N/A:N

CVSS Score Source: CVE-2021-3426

CVSS v3

Risk Factor: Medium

Base Score: 5.7

Temporal Score: 5.3

Vector: CVSS:3.0/AV:A/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Temporal Vector: CVSS:3.0/E:F/RL:O/RC:C

Vulnerability Information

CPE: cpe:/a:python:python

Required KB Items: installed_sw/Python

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 4/20/2020

Vulnerability Publication Date: 4/20/2020

Reference Information

CVE: CVE-2021-3426