CVE-2020-15101: Freewvs Freewvs's Nested Directory Structure Can Vulnerability

LOW
Advisory Identifier: GHSA-7pmh-vrww-25xx
CVSS 2.8
CWE-674
Published
Advisory Summary

CVE-2020-15101 is a LOW (CVSS 2.8) freewvs's nested directory structure can vulnerability (CWE-674: Uncontrolled Recursion) affecting Freewvs libraries in the PyPI ecosystem. The issue involves freewvs's nested directory structure can interrupt scan. Remediation is available by upgrading affected packages to version 0.1.1.

CVE-2020-15101 at a Glance

CVE Identifier CVE-2020-15101
GHSA Identifier GHSA-7pmh-vrww-25xx
Severity LOW
CVSS v3.1 Base Score 2.8
CWE Classification CWE-674: Uncontrolled Recursion
Affected Product Freewvs
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 2.8

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:R/S:U/C:N/I:N/A:L).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability Low (A:L)

How to Fix CVE-2020-15101

To remediate this vulnerability, upgrade all affected Freewvs dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

freewvs fixed: 0.1.1
pip install freewvs>=0.1.1
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 freewvs

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2020-15101, inspect your installed packages using pip:

pip show freewvs

Analyze the terminal output to locate any version of Freewvs in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.1.1), your application is affected.

Note: The pip show freewvs command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-674: Uncontrolled Recursion, where the product does not properly control the amount of recursion that takes place, consuming excessive resources, such as allocated memory or the program stack. In Freewvs, 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

### Impact A directory structure of more than 1000 nested directories can interrupt a freewvs scan due to Python's recursion limit and os.walk(). This can be problematic in a case where an administrator scans the dirs of potentially untrusted users. ### Patches This has been fixed in this commit by limiting the recursion to 500 directories: https://github.com/schokokeksorg/freewvs/commit/83a6b55c0435c69f447488b791555e6078803143 This issue was discovered by Hanno Böck.

CVE-2020-15101 Affected Freewvs Versions

1 component(s)
Fixed Versions:
0.1.1
Product / Package Ecosystem Affected Versions Fixed Version
freewvs
PyPI
< 0.1.1
0.1.1

References

Frequently Asked Questions

What is CVE-2020-15101?
CVE-2020-15101 is a security vulnerability in Freewvs involving freewvs's nested directory structure can interrupt scan under CWE-674: Uncontrolled Recursion.
Which Freewvs versions are affected?
Affected versions include releases prior to 0.1.1 across affected packages: freewvs.
What version fixes CVE-2020-15101?
Upgrading to 0.1.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is freewvs affected?
Yes, freewvs is affected in releases prior to 0.1.1. Upgrade your dependency to 0.1.1 or later.
What is the CVSS score of CVE-2020-15101?
CVE-2020-15101 has a CVSS v3.1 base score of 2.8 (LOW) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:L.
What CWE is associated with CVE-2020-15101?
CVE-2020-15101 is classified under CWE-674: Uncontrolled Recursion (The product does not properly control the amount of recursion that takes place, consuming excessive resources, such as allocated memory or the program stack.).
How can I check PyPI dependencies for CVE-2020-15101?
Run the dependency tree command: 'pip show freewvs'. 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-7pmh-vrww-25xx",
  "modified" : "2024-08-30T18:43:23Z",
  "published" : "2024-08-30T18:43:23Z",
  "aliases" : [ "CVE-2020-15101" ],
  "summary" : "freewvs's nested directory structure can interrupt scan",
  "details" : "### Impact\nA directory structure of more than 1000 nested directories can interrupt a freewvs scan due to Python's recursion limit and os.walk(). This can be problematic in a case where an administrator scans the dirs of potentially untrusted users.\n\n### Patches\nThis has been fixed in this commit by limiting the recursion to 500 directories:\nhttps://github.com/schokokeksorg/freewvs/commit/83a6b55c0435c69f447488b791555e6078803143\n\nThis issue was discovered by Hanno Böck.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:L"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "freewvs"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.1.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/schokokeksorg/freewvs/security/advisories/GHSA-7pmh-vrww-25xx"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-15101"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/schokokeksorg/freewvs/commit/83a6b55c0435c69f447488b791555e6078803143"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/freewvs/PYSEC-2020-233.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/schokokeksorg/freewvs"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-674" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-08-30T18:43:23Z",
    "nvd_published_at" : "2020-07-14T22:15:00Z"
  }
}