FreeBSD : python -- Information disclosure via pydoc -p: /getfile?key=path allows to read arbitrary file on the filesystem (f671c282-95ef-11eb-9c34-080027f515ea)

medium Nessus Plugin ID 148514

Language:

Synopsis

The remote FreeBSD host is missing one or more security-related updates.

Description

David Schworer reports :

Remove the getfile feature of the pydoc module which could be abused to read arbitrary files on the disk (directory traversal vulnerability). Moreover, even source code of Python modules can contain sensitive data like passwords.

Solution

Update the affected packages.

See Also

http://www.nessus.org/u?1a59eb0a

https://bugs.python.org/issue42988

http://www.nessus.org/u?2eeda06b

Plugin Details

Severity: Medium

ID: 148514

File Name: freebsd_pkg_f671c28295ef11eb9c34080027f515ea.nasl

Version: 1.4

Type: local

Published: 4/14/2021

Updated: 6/1/2021

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 4.4

CVSS v2

Risk Factor: Low

Base Score: 2.7

Temporal Score: 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

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:U/RL:O/RC:C

Vulnerability Information

CPE: p-cpe:/a:freebsd:freebsd:python38, p-cpe:/a:freebsd:freebsd:python39, cpe:/o:freebsd:freebsd

Required KB Items: Host/local_checks_enabled, Host/FreeBSD/release, Host/FreeBSD/pkg_info

Exploit Ease: No known exploits are available

Patch Publication Date: 4/10/2021

Vulnerability Publication Date: 1/21/2021

Reference Information

CVE: CVE-2021-3426