CVE-2020-25340: Nfstream Denial of Service Vulnerability

MODERATE
Advisory Identifier: GHSA-whmq-cfm5-j8mj
CVSS 5.5
CWE-770 CWE-401
Published
Advisory Summary

CVE-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.

CVE-2020-25340 at a Glance

CVE Identifier CVE-2020-25340
GHSA Identifier GHSA-whmq-cfm5-j8mj
Severity MODERATE
CVSS v3.1 Base Score 5.5
CWE Classification CWE-770: Allocation of Resources Without Limits or Throttling
Affected Product Nfstream
Package Ecosystem PyPI
Published Date
Last Updated

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).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (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.

nfstream fixed: Latest secure release
pip install nfstream>=Latest secure release
Verify Direct and Transitive Dependencies

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

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).

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?
CVE-2020-25340 is a security vulnerability in Nfstream involving NFStream Local Denial of Service (DoS) under CWE-770: Allocation of Resources Without Limits or Throttling.
Which Nfstream versions are affected?
Affected versions include releases prior to current release patches across affected packages: nfstream.
What version fixes CVE-2020-25340?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is nfstream affected?
Yes, nfstream is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2020-25340?
CVE-2020-25340 has a CVSS v3.1 base score of 5.5 (MODERATE) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2020-25340?
CVE-2020-25340 is classified under CWE-770: Allocation of Resources Without Limits or Throttling (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.).
How can I check PyPI dependencies for CVE-2020-25340?
Run the dependency tree command: 'pip show nfstream'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}