Python Buffer Overflow (CVE-2021-3177)

critical Nessus Plugin ID 145534

Synopsis

The remote host has an application installed that is affected by a buffer overflow vulnerability.

Description

The version of Python installed on the remote Windows host is potentially affected by a buffer overflow in PyCArg_repr in _ctypes/callproc.c, which may lead to remote code execution in certain Python applications that accept floating-point numbers as untrusted input, as demonstrated by a 1e300 argument to c_double.from_param. This occurs because sprintf is used unsafely.

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.

Solution

See vendor advisory.

See Also

https://bugs.python.org/issue42938

Plugin Details

Severity: Critical

ID: 145534

File Name: python_3_9_1.nasl

Version: 1.5

Type: local

Agent: windows

Family: Windows

Published: 1/28/2021

Updated: 1/25/2024

Configuration: Enable paranoid mode

Supported Sensors: Frictionless Assessment Agent, Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 5.9

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

CVSS Score Source: CVE-2021-3177

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 8.8

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

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

Vulnerability Information

CPE: cpe:/a:python:python

Required KB Items: installed_sw/Python Software Foundation Python, SMB/Registry/Enumerated, Settings/ParanoidReport

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 1/18/2021

Vulnerability Publication Date: 1/18/2021

Reference Information

CVE: CVE-2021-3177

IAVA: 2021-A-0052-S