MSRC_CVE-2021-3177
Vulnerability from csaf_microsoft - Published: 2021-01-02 00:00 - Updated: 2021-01-29 00:00Summary
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.
Notes
Additional Resources
To determine the support lifecycle for your software, see the Microsoft Support Lifecycle: https://support.microsoft.com/lifecycle
Disclaimer
The information provided in the Microsoft Knowledge Base is provided \"as is\" without warranty of any kind. Microsoft disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. In no event shall Microsoft Corporation or its suppliers be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages, even if Microsoft Corporation or its suppliers have been advised of the possibility of such damages. Some states do not allow the exclusion or limitation of liability for consequential or incidental damages so the foregoing limitation may not apply.
{
"document": {
"category": "csaf_vex",
"csaf_version": "2.0",
"distribution": {
"text": "Public",
"tlp": {
"label": "WHITE",
"url": "https://www.first.org/tlp/"
}
},
"lang": "en-US",
"notes": [
{
"category": "general",
"text": "To determine the support lifecycle for your software, see the Microsoft Support Lifecycle: https://support.microsoft.com/lifecycle",
"title": "Additional Resources"
},
{
"category": "legal_disclaimer",
"text": "The information provided in the Microsoft Knowledge Base is provided \\\"as is\\\" without warranty of any kind. Microsoft disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. In no event shall Microsoft Corporation or its suppliers be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages, even if Microsoft Corporation or its suppliers have been advised of the possibility of such damages. Some states do not allow the exclusion or limitation of liability for consequential or incidental damages so the foregoing limitation may not apply.",
"title": "Disclaimer"
}
],
"publisher": {
"category": "vendor",
"contact_details": "secure@microsoft.com",
"name": "Microsoft Security Response Center",
"namespace": "https://msrc.microsoft.com"
},
"references": [
{
"category": "self",
"summary": "CVE-2021-3177 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. - VEX",
"url": "https://msrc.microsoft.com/csaf/vex/2021/msrc_cve-2021-3177.json"
},
{
"category": "external",
"summary": "Microsoft Support Lifecycle",
"url": "https://support.microsoft.com/lifecycle"
},
{
"category": "external",
"summary": "Common Vulnerability Scoring System",
"url": "https://www.first.org/cvss"
}
],
"title": "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.",
"tracking": {
"current_release_date": "2021-01-29T00:00:00.000Z",
"generator": {
"date": "2025-10-19T21:39:52.592Z",
"engine": {
"name": "MSRC Generator",
"version": "1.0"
}
},
"id": "msrc_CVE-2021-3177",
"initial_release_date": "2021-01-02T00:00:00.000Z",
"revision_history": [
{
"date": "2021-01-29T00:00:00.000Z",
"legacy_version": "1",
"number": "1",
"summary": "Information published."
}
],
"status": "final",
"version": "1"
}
},
"product_tree": {
"branches": [
{
"branches": [
{
"branches": [
{
"category": "product_version",
"name": "1.0",
"product": {
"name": "CBL Mariner 1.0 x64",
"product_id": "12137"
}
},
{
"category": "product_version",
"name": "1.0",
"product": {
"name": "CBL Mariner 1.0 ARM",
"product_id": "12138"
}
}
],
"category": "product_name",
"name": "Azure Linux"
}
],
"category": "vendor",
"name": "Microsoft"
}
],
"relationships": [
{
"category": "default_component_of",
"full_product_name": {
"name": "\u003cpython3-3.7.9-4.cm1.x86_64.rpm as a component of CBL Mariner 1.0 x64",
"product_id": "12137-20"
},
"product_reference": "20",
"relates_to_product_reference": "12137"
},
{
"category": "default_component_of",
"full_product_name": {
"name": "python3-3.7.9-4.cm1.x86_64.rpm as a component of CBL Mariner 1.0 x64",
"product_id": "14141-12137"
},
"product_reference": "14141",
"relates_to_product_reference": "12137"
},
{
"category": "default_component_of",
"full_product_name": {
"name": "\u003cpython3-libs-3.7.9-4.cm1.x86_64.rpm as a component of CBL Mariner 1.0 x64",
"product_id": "12137-19"
},
"product_reference": "19",
"relates_to_product_reference": "12137"
},
{
"category": "default_component_of",
"full_product_name": {
"name": "python3-libs-3.7.9-4.cm1.x86_64.rpm as a component of CBL Mariner 1.0 x64",
"product_id": "14142-12137"
},
"product_reference": "14142",
"relates_to_product_reference": "12137"
},
{
"category": "default_component_of",
"full_product_name": {
"name": "\u003cpython3-xml-3.7.9-4.cm1.x86_64.rpm as a component of CBL Mariner 1.0 x64",
"product_id": "12137-18"
},
"product_reference": "18",
"relates_to_product_reference": "12137"
},
{
"category": "default_component_of",
"full_product_name": {
"name": "python3-xml-3.7.9-4.cm1.x86_64.rpm as a component of CBL Mariner 1.0 x64",
"product_id": "14143-12137"
},
"product_reference": "14143",
"relates_to_product_reference": "12137"
},
{
"category": "default_component_of",
"full_product_name": {
"name": "\u003cpython3-curses-3.7.9-4.cm1.x86_64.rpm as a component of CBL Mariner 1.0 x64",
"product_id": "12137-17"
},
"product_reference": "17",
"relates_to_product_reference": "12137"
},
{
"category": "default_component_of",
"full_product_name": {
"name": "python3-curses-3.7.9-4.cm1.x86_64.rpm as a component of CBL Mariner 1.0 x64",
"product_id": "14144-12137"
},
"product_reference": "14144",
"relates_to_product_reference": "12137"
},
{
"category": "default_component_of",
"full_product_name": {
"name": "\u003cpython3-devel-3.7.9-4.cm1.x86_64.rpm as a component of CBL Mariner 1.0 x64",
"product_id": "12137-16"
},
"product_reference": "16",
"relates_to_product_reference": "12137"
},
{
"category": "default_component_of",
"full_product_name": {
"name": "python3-devel-3.7.9-4.cm1.x86_64.rpm as a component of CBL Mariner 1.0 x64",
"product_id": "14145-12137"
},
"product_reference": "14145",
"relates_to_product_reference": "12137"
},
{
"category": "default_component_of",
"full_product_name": {
"name": "\u003cpython3-tools-3.7.9-4.cm1.x86_64.rpm as a component of CBL Mariner 1.0 x64",
"product_id": "12137-15"
},
"product_reference": "15",
"relates_to_product_reference": "12137"
},
{
"category": "default_component_of",
"full_product_name": {
"name": "python3-tools-3.7.9-4.cm1.x86_64.rpm as a component of CBL Mariner 1.0 x64",
"product_id": "14146-12137"
},
"product_reference": "14146",
"relates_to_product_reference": "12137"
},
{
"category": "default_component_of",
"full_product_name": {
"name": "\u003cpython3-pip-3.7.9-4.cm1.noarch.rpm as a component of CBL Mariner 1.0 x64",
"product_id": "12137-13"
},
"product_reference": "13",
"relates_to_product_reference": "12137"
},
{
"category": "default_component_of",
"full_product_name": {
"name": "python3-pip-3.7.9-4.cm1.noarch.rpm as a component of CBL Mariner 1.0 x64",
"product_id": "14147-12137"
},
"product_reference": "14147",
"relates_to_product_reference": "12137"
},
{
"category": "default_component_of",
"full_product_name": {
"name": "\u003cpython3-setuptools-3.7.9-4.cm1.noarch.rpm as a component of CBL Mariner 1.0 x64",
"product_id": "12137-11"
},
"product_reference": "11",
"relates_to_product_reference": "12137"
},
{
"category": "default_component_of",
"full_product_name": {
"name": "python3-setuptools-3.7.9-4.cm1.noarch.rpm as a component of CBL Mariner 1.0 x64",
"product_id": "14148-12137"
},
"product_reference": "14148",
"relates_to_product_reference": "12137"
},
{
"category": "default_component_of",
"full_product_name": {
"name": "\u003cpython3-test-3.7.9-4.cm1.x86_64.rpm as a component of CBL Mariner 1.0 x64",
"product_id": "12137-10"
},
"product_reference": "10",
"relates_to_product_reference": "12137"
},
{
"category": "default_component_of",
"full_product_name": {
"name": "python3-test-3.7.9-4.cm1.x86_64.rpm as a component of CBL Mariner 1.0 x64",
"product_id": "14149-12137"
},
"product_reference": "14149",
"relates_to_product_reference": "12137"
},
{
"category": "default_component_of",
"full_product_name": {
"name": "\u003cpython3-debuginfo-3.7.9-4.cm1.x86_64.rpm as a component of CBL Mariner 1.0 x64",
"product_id": "12137-9"
},
"product_reference": "9",
"relates_to_product_reference": "12137"
},
{
"category": "default_component_of",
"full_product_name": {
"name": "python3-debuginfo-3.7.9-4.cm1.x86_64.rpm as a component of CBL Mariner 1.0 x64",
"product_id": "14150-12137"
},
"product_reference": "14150",
"relates_to_product_reference": "12137"
},
{
"category": "default_component_of",
"full_product_name": {
"name": "\u003cpython3-3.7.9-4.cm1.aarch64.rpm as a component of CBL Mariner 1.0 ARM",
"product_id": "12138-8"
},
"product_reference": "8",
"relates_to_product_reference": "12138"
},
{
"category": "default_component_of",
"full_product_name": {
"name": "python3-3.7.9-4.cm1.aarch64.rpm as a component of CBL Mariner 1.0 ARM",
"product_id": "14151-12138"
},
"product_reference": "14151",
"relates_to_product_reference": "12138"
},
{
"category": "default_component_of",
"full_product_name": {
"name": "\u003cpython3-libs-3.7.9-4.cm1.aarch64.rpm as a component of CBL Mariner 1.0 ARM",
"product_id": "12138-7"
},
"product_reference": "7",
"relates_to_product_reference": "12138"
},
{
"category": "default_component_of",
"full_product_name": {
"name": "python3-libs-3.7.9-4.cm1.aarch64.rpm as a component of CBL Mariner 1.0 ARM",
"product_id": "14152-12138"
},
"product_reference": "14152",
"relates_to_product_reference": "12138"
},
{
"category": "default_component_of",
"full_product_name": {
"name": "\u003cpython3-xml-3.7.9-4.cm1.aarch64.rpm as a component of CBL Mariner 1.0 ARM",
"product_id": "12138-6"
},
"product_reference": "6",
"relates_to_product_reference": "12138"
},
{
"category": "default_component_of",
"full_product_name": {
"name": "python3-xml-3.7.9-4.cm1.aarch64.rpm as a component of CBL Mariner 1.0 ARM",
"product_id": "14153-12138"
},
"product_reference": "14153",
"relates_to_product_reference": "12138"
},
{
"category": "default_component_of",
"full_product_name": {
"name": "\u003cpython3-curses-3.7.9-4.cm1.aarch64.rpm as a component of CBL Mariner 1.0 ARM",
"product_id": "12138-5"
},
"product_reference": "5",
"relates_to_product_reference": "12138"
},
{
"category": "default_component_of",
"full_product_name": {
"name": "python3-curses-3.7.9-4.cm1.aarch64.rpm as a component of CBL Mariner 1.0 ARM",
"product_id": "14154-12138"
},
"product_reference": "14154",
"relates_to_product_reference": "12138"
},
{
"category": "default_component_of",
"full_product_name": {
"name": "\u003cpython3-devel-3.7.9-4.cm1.aarch64.rpm as a component of CBL Mariner 1.0 ARM",
"product_id": "12138-4"
},
"product_reference": "4",
"relates_to_product_reference": "12138"
},
{
"category": "default_component_of",
"full_product_name": {
"name": "python3-devel-3.7.9-4.cm1.aarch64.rpm as a component of CBL Mariner 1.0 ARM",
"product_id": "14155-12138"
},
"product_reference": "14155",
"relates_to_product_reference": "12138"
},
{
"category": "default_component_of",
"full_product_name": {
"name": "\u003cpython3-tools-3.7.9-4.cm1.aarch64.rpm as a component of CBL Mariner 1.0 ARM",
"product_id": "12138-3"
},
"product_reference": "3",
"relates_to_product_reference": "12138"
},
{
"category": "default_component_of",
"full_product_name": {
"name": "python3-tools-3.7.9-4.cm1.aarch64.rpm as a component of CBL Mariner 1.0 ARM",
"product_id": "14156-12138"
},
"product_reference": "14156",
"relates_to_product_reference": "12138"
},
{
"category": "default_component_of",
"full_product_name": {
"name": "\u003cpython3-pip-3.7.9-4.cm1.noarch.rpm as a component of CBL Mariner 1.0 ARM",
"product_id": "12138-14"
},
"product_reference": "14",
"relates_to_product_reference": "12138"
},
{
"category": "default_component_of",
"full_product_name": {
"name": "python3-pip-3.7.9-4.cm1.noarch.rpm as a component of CBL Mariner 1.0 ARM",
"product_id": "14147-12138"
},
"product_reference": "14147",
"relates_to_product_reference": "12138"
},
{
"category": "default_component_of",
"full_product_name": {
"name": "\u003cpython3-setuptools-3.7.9-4.cm1.noarch.rpm as a component of CBL Mariner 1.0 ARM",
"product_id": "12138-12"
},
"product_reference": "12",
"relates_to_product_reference": "12138"
},
{
"category": "default_component_of",
"full_product_name": {
"name": "python3-setuptools-3.7.9-4.cm1.noarch.rpm as a component of CBL Mariner 1.0 ARM",
"product_id": "14148-12138"
},
"product_reference": "14148",
"relates_to_product_reference": "12138"
},
{
"category": "default_component_of",
"full_product_name": {
"name": "\u003cpython3-test-3.7.9-4.cm1.aarch64.rpm as a component of CBL Mariner 1.0 ARM",
"product_id": "12138-2"
},
"product_reference": "2",
"relates_to_product_reference": "12138"
},
{
"category": "default_component_of",
"full_product_name": {
"name": "python3-test-3.7.9-4.cm1.aarch64.rpm as a component of CBL Mariner 1.0 ARM",
"product_id": "14157-12138"
},
"product_reference": "14157",
"relates_to_product_reference": "12138"
},
{
"category": "default_component_of",
"full_product_name": {
"name": "\u003cpython3-debuginfo-3.7.9-4.cm1.aarch64.rpm as a component of CBL Mariner 1.0 ARM",
"product_id": "12138-1"
},
"product_reference": "1",
"relates_to_product_reference": "12138"
},
{
"category": "default_component_of",
"full_product_name": {
"name": "python3-debuginfo-3.7.9-4.cm1.aarch64.rpm as a component of CBL Mariner 1.0 ARM",
"product_id": "14158-12138"
},
"product_reference": "14158",
"relates_to_product_reference": "12138"
}
]
},
"vulnerabilities": [
{
"cve": "CVE-2021-3177",
"cwe": {
"id": "CWE-120",
"name": "Buffer Copy without Checking Size of Input (\u0027Classic Buffer Overflow\u0027)"
},
"notes": [
{
"category": "general",
"text": "mitre",
"title": "Assigning CNA"
}
],
"product_status": {
"fixed": [
"14141-12137",
"14142-12137",
"14143-12137",
"14144-12137",
"14145-12137",
"14146-12137",
"14147-12137",
"14148-12137",
"14149-12137",
"14150-12137",
"14151-12138",
"14152-12138",
"14153-12138",
"14154-12138",
"14155-12138",
"14156-12138",
"14147-12138",
"14148-12138",
"14157-12138",
"14158-12138"
],
"known_affected": [
"12137-20",
"12137-19",
"12137-18",
"12137-17",
"12137-16",
"12137-15",
"12137-13",
"12137-11",
"12137-10",
"12137-9",
"12138-8",
"12138-7",
"12138-6",
"12138-5",
"12138-4",
"12138-3",
"12138-14",
"12138-12",
"12138-2",
"12138-1"
]
},
"references": [
{
"category": "self",
"summary": "CVE-2021-3177 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. - VEX",
"url": "https://msrc.microsoft.com/csaf/vex/2021/msrc_cve-2021-3177.json"
}
],
"remediations": [
{
"category": "vendor_fix",
"date": "2021-01-29T00:00:00.000Z",
"details": "3.7.9-4:Security Update:https://learn.microsoft.com/en-us/azure/azure-linux/tutorial-azure-linux-upgrade",
"product_ids": [
"12137-20",
"12137-19",
"12137-18",
"12137-17",
"12137-16",
"12137-15",
"12137-13",
"12137-11",
"12137-10",
"12137-9",
"12138-8",
"12138-7",
"12138-6",
"12138-5",
"12138-4",
"12138-3",
"12138-14",
"12138-12",
"12138-2",
"12138-1"
],
"url": "https://learn.microsoft.com/en-us/azure/azure-linux/tutorial-azure-linux-upgrade"
}
],
"scores": [
{
"cvss_v3": {
"attackComplexity": "LOW",
"attackVector": "NETWORK",
"availabilityImpact": "HIGH",
"baseScore": 9.8,
"baseSeverity": "CRITICAL",
"confidentialityImpact": "HIGH",
"environmentalsScore": 0.0,
"integrityImpact": "HIGH",
"privilegesRequired": "NONE",
"scope": "UNCHANGED",
"temporalScore": 9.8,
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"version": "3.1"
},
"products": [
"12137-20",
"12137-19",
"12137-18",
"12137-17",
"12137-16",
"12137-15",
"12137-13",
"12137-11",
"12137-10",
"12137-9",
"12138-8",
"12138-7",
"12138-6",
"12138-5",
"12138-4",
"12138-3",
"12138-14",
"12138-12",
"12138-2",
"12138-1"
]
}
],
"title": "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."
}
]
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…