IM
IronMonkey Threat Research

CVE-2021-3177 CRITICAL

Published: 2021-01-19 | Last Modified: 2025-12-18 | Status: Modified

Description

Python 3.x through 3.9.1 has 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.

Additional Descriptions (1)

Python versiones 3.x hasta 3.9.1, presenta un desbordamiento de búfer en la función PyCArg_repr en el archivo _ctypes/callproc.c, que puede conllevar a una ejecución de código remota en determinadas aplicaciones de Python que aceptan números de punto flotante como entrada no confiable, como es demostrado por un argumento 1e300 para c_double.from_param. Esto ocurre porque sprintf es usado de manera no segura

CVSS Metrics

Base Score: 9.8 (CRITICAL)

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

Attack VectorNETWORK
Attack ComplexityLOW
Privileges RequiredNONE
User InteractionNONE
ScopeUNCHANGED
Confidentiality ImpactHIGH
Integrity ImpactHIGH
Availability ImpactHIGH

Source: [email protected]

Type: Primary

Exploitability Score: 3.9

Impact Score: 5.9

Base Score: 7.5 (HIGH)

AV:N/AC:L/Au:N/C:P/I:P/A:P

Access VectorNETWORK
Access ComplexityLOW
AuthenticationNONE
Confidentiality ImpactPARTIAL
Integrity ImpactPARTIAL
Availability ImpactPARTIAL

Source: [email protected]

Type: Primary

Exploitability Score: 10.0

Impact Score: 6.4

Weaknesses

Source Type Description
[email protected] Primary
en CWE-120
134c704f-9b21-4f2e-91b3-4a467353bcc0 Secondary
en CWE-120

Affected Products

Vendor Product Version Update Type
python python * <built-in method update of dict object at 0x7fd3686c1080> Application
python python * <built-in method update of dict object at 0x7fd3094c92c0> Application
python python * <built-in method update of dict object at 0x7fd3686c1b80> Application
python python * <built-in method update of dict object at 0x7fd368ea6ec0> Application
fedoraproject fedora 32 <built-in method update of dict object at 0x7fd368ea6dc0> Operating System
fedoraproject fedora 33 <built-in method update of dict object at 0x7fd36b3fb040> Operating System
netapp active_iq_unified_manager - <built-in method update of dict object at 0x7fd3686c22c0> Application
netapp active_iq_unified_manager - <built-in method update of dict object at 0x7fd36b3fb340> Application
netapp ontap_select_deploy_administration_utility - <built-in method update of dict object at 0x7fd36a2dc740> Application
debian debian_linux 9.0 <built-in method update of dict object at 0x7fd36a2dd880> Operating System
oracle communications_cloud_native_core_network_function_cloud_native_environment 22.2.0 <built-in method update of dict object at 0x7fd36a2dee00> Application
oracle communications_offline_mediation_controller 12.0.0.3.0 <built-in method update of dict object at 0x7fd36a2de940> Application
oracle communications_pricing_design_center 12.0.0.3.0 <built-in method update of dict object at 0x7fd36a2dea80> Application
oracle enterprise_manager_ops_center 12.4.0.0 <built-in method update of dict object at 0x7fd36b12ce40> Application
oracle zfs_storage_appliance_kit 8.8 <built-in method update of dict object at 0x7fd3854b84c0> Application

Affected Configurations

Operator: OR

Vulnerable CPE
Yes cpe:2.3:a:python:python:*:*:*:*:*:*:*:*
Yes cpe:2.3:a:python:python:*:*:*:*:*:*:*:*
Yes cpe:2.3:a:python:python:*:*:*:*:*:*:*:*
Yes cpe:2.3:a:python:python:*:*:*:*:*:*:*:*

Operator: OR

Vulnerable CPE
Yes cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*
Yes cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*

Operator: OR

Vulnerable CPE
Yes cpe:2.3:a:netapp:active_iq_unified_manager:-:*:*:*:*:vmware_vsphere:*:*
Yes cpe:2.3:a:netapp:active_iq_unified_manager:-:*:*:*:*:windows:*:*
Yes cpe:2.3:a:netapp:ontap_select_deploy_administration_utility:-:*:*:*:*:*:*:*

Operator: OR

Vulnerable CPE
Yes cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*

Operator: OR

Vulnerable CPE
Yes cpe:2.3:a:oracle:communications_cloud_native_core_network_function_cloud_native_environment:22.2.0:*:*:*:*:*:*:*
Yes cpe:2.3:a:oracle:communications_offline_mediation_controller:12.0.0.3.0:*:*:*:*:*:*:*
Yes cpe:2.3:a:oracle:communications_pricing_design_center:12.0.0.3.0:*:*:*:*:*:*:*
Yes cpe:2.3:a:oracle:enterprise_manager_ops_center:12.4.0.0:*:*:*:*:*:*:*
Yes cpe:2.3:a:oracle:zfs_storage_appliance_kit:8.8:*:*:*:*:*:*:*

References