Vulnerabilities in pkg:pypi/nfstream
PACKAGECVE-2020-25340 is a MODERATE (CVSS 5.5) denial of service vulnerability (CWE-770: Allocation of Resources Without Limits or Throttling) affecting Nfstream libraries in the PyPI ecosystem. The issue involves nfstream local denial of service (dos). Remediation is available in the latest vendor maintenance releases.
pkg:pypi/nfstream
Vulnerability advisories affecting package pkg:pypi/nfstream. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-whmq-cfm5-j8mj | CVE-2020-25340 | MODERATE | NFStream Local Denial of Service (DoS) |
CVE-2020-25340 at a Glance
Security Impact
CVSS: 5.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H).
How to Fix CVE-2020-25340
To remediate this vulnerability, upgrade all affected Nfstream 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 nfstream>=Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show nfstream
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2020-25340, inspect your installed packages using pip:
pip show nfstream
Analyze the terminal output to locate any version of Nfstream in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: The pip show nfstream command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-770: Allocation of Resources Without Limits or Throttling, where the product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated. In Nfstream, 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-2020-25340 Affected Nfstream Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
nfstream
|
PyPI |
5.2.0
All 1 versions
5.2.0
|
None specified
|
References
Frequently Asked Questions
What is CVE-2020-25340?
Which Nfstream versions are affected?
What version fixes CVE-2020-25340?
Is nfstream affected?
What is the CVSS score of CVE-2020-25340?
What CWE is associated with CVE-2020-25340?
How can I check PyPI dependencies for CVE-2020-25340?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-whmq-cfm5-j8mj",
"modified" : "2024-09-26T14:38:49Z",
"published" : "2022-05-24T17:42:18Z",
"aliases" : [ "CVE-2020-25340" ],
"summary" : "NFStream Local Denial of Service (DoS)",
"details" : "An issue was discovered in NFStream 5.2.0. Because some allocated modules are not correctly freed, if the nfstream object is directly destroyed without being used after it is created, it will cause a memory leak that may result in a local denial of service (DoS).",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "nfstream"
},
"versions" : [ "5.2.0" ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-25340"
}, {
"type" : "WEB",
"url" : "https://github.com/ntop/nDPI/issues/994"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/nfstream/nfstream"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/nfstream/PYSEC-2021-68.yaml"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-401", "CWE-770" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-04-22T22:57:23Z",
"nvd_published_at" : "2021-02-16T15:15:00Z"
}
}