CVE-2019-1010142: Scapy Infinite Loop Vulnerability
HIGHCVE-2019-1010142 is a HIGH (CVSS 7.5) infinite loop vulnerability (CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop')) affecting Scapy libraries in the PyPI ecosystem. The issue involves infinite loop in scapy. Remediation is available by upgrading affected packages to version 2.4.1.
CVE-2019-1010142 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).
How to Fix CVE-2019-1010142
To remediate this vulnerability, upgrade all affected Scapy dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install scapy>=2.4.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show scapy
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2019-1010142, inspect your installed packages using pip:
pip show scapy
Analyze the terminal output to locate any version of Scapy in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.4.1), your application is affected.
Note: The pip show scapy command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop'), where the product contains an iteration or loop with an exit condition that cannot be reached, i.e., an infinite loop. In Scapy, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2019-1010142 Affected Scapy Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
scapy
|
PyPI |
≥ 2.4-rc1
< 2.4.1
|
2.4.1
|
References
Frequently Asked Questions
What is CVE-2019-1010142?
Which Scapy versions are affected?
What version fixes CVE-2019-1010142?
Is scapy affected?
What is the CVSS score of CVE-2019-1010142?
What CWE is associated with CVE-2019-1010142?
How can I check PyPI dependencies for CVE-2019-1010142?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-mpf2-q34c-fc6j",
"modified" : "2024-10-22T16:40:01Z",
"published" : "2019-07-22T14:53:58Z",
"aliases" : [ "CVE-2019-1010142" ],
"summary" : "Infinite Loop in scapy",
"details" : "scapy is affected by a Denial of Service vulnerability resulting in an infinite loop and resource consumption rendering the program unresponsive. The component is: `_RADIUSAttrPacketListField.getfield(self..)`. The attack vector is over the network or in a pcap. both work.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "scapy"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.4-rc1"
}, {
"fixed" : "2.4.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-1010142"
}, {
"type" : "WEB",
"url" : "https://github.com/secdev/scapy/pull/1409"
}, {
"type" : "WEB",
"url" : "https://github.com/secdev/scapy/pull/1409/files#diff-441eff981e466959968111fc6314fe93L1058"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/scapy/PYSEC-2019-120.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/secdev/scapy"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/42NRPMC3NS2QVFNIXYP6WV2T3LMLLY7E"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/T46XW4S5BCA3VV3JT3C5Q6LBEXSIACLN"
}, {
"type" : "WEB",
"url" : "https://www.imperva.com/blog/scapy-sploit-python-network-tool-is-vulnerable-to-denial-of-service-dos-attack-cve-pending"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-835" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2019-07-22T14:21:26Z",
"nvd_published_at" : "2019-07-19T16:15:00Z"
}
}