GHSA-g4m4-9q4c-mfw6: Fiona Fiona Affected By CVE-2020-14152 Related Vulnerability

HIGH
CVSS 7.1
CWE-400
Published
Advisory Summary

GHSA-g4m4-9q4c-mfw6 is a HIGH (CVSS 7.1) fiona affected by cve-2020-14152 related vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Fiona libraries in the PyPI ecosystem. The issue involves fiona affected by cve-2020-14152 related to madler-zlib. Remediation is available by upgrading affected packages to version 1.10b2.

GHSA-g4m4-9q4c-mfw6 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-g4m4-9q4c-mfw6
Severity HIGH
CVSS v3.1 Base Score 7.1
CWE Classification CWE-400: Uncontrolled Resource Consumption
Affected Product Fiona
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 7.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H).

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

How to Fix GHSA-g4m4-9q4c-mfw6

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

fiona fixed: 1.10b2
pip install fiona>=1.10b2
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 fiona

How to Check if You Are Affected

To determine whether your Python environment is affected by GHSA-g4m4-9q4c-mfw6, inspect your installed packages using pip:

pip show fiona

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

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

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In Fiona, 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

### Summary Vulnerability scan of fiona shows [CVE-2020-14152](https://nvd.nist.gov/vuln/detail/CVE-2020-14152). The vulnerability is in libjpeg, a transitive dependency of fiona (via GDAL and PROJ). ### Details In IJG JPEG (aka libjpeg) before 9d, jpeg_mem_available() in jmemnobs.c in djpeg does not honor the max_memory_to_use setting, possibly causing excessive memory consumption. ### Impact fiona will not open JPEG files and is not vulnerable to attack in that way. fiona might be vulnerable to malformed PROJ grid files using JPEG compression. No such vulnerability or compromise has been demonstrated.

GHSA-g4m4-9q4c-mfw6 Affected Fiona Versions

1 component(s)
Fixed Versions:
1.10b2
Product / Package Ecosystem Affected Versions Fixed Version
fiona
PyPI
< 1.10b2
1.10b2

References

Frequently Asked Questions

What is GHSA-g4m4-9q4c-mfw6?
GHSA-g4m4-9q4c-mfw6 is a security vulnerability in Fiona involving Fiona affected by CVE-2020-14152 related to madler-zlib under CWE-400: Uncontrolled Resource Consumption.
Which Fiona versions are affected?
Affected versions include releases prior to 1.10b2 across affected packages: fiona.
What version fixes GHSA-g4m4-9q4c-mfw6?
Upgrading to 1.10b2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is fiona affected?
Yes, fiona is affected in releases prior to 1.10b2. Upgrade your dependency to 1.10b2 or later.
What is the CVSS score of GHSA-g4m4-9q4c-mfw6?
GHSA-g4m4-9q4c-mfw6 has a CVSS v3.1 base score of 7.1 (HIGH) with vector string CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H.
What CWE is associated with GHSA-g4m4-9q4c-mfw6?
GHSA-g4m4-9q4c-mfw6 is classified under CWE-400: Uncontrolled Resource Consumption (The product does not properly control the allocation and maintenance of a limited resource.).
How can I check PyPI dependencies for GHSA-g4m4-9q4c-mfw6?
Run the dependency tree command: 'pip show fiona'. 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-g4m4-9q4c-mfw6",
  "modified" : "2024-08-21T22:30:00Z",
  "published" : "2024-07-16T19:32:22Z",
  "aliases" : [ ],
  "summary" : "Fiona affected by CVE-2020-14152 related to madler-zlib",
  "details" : "### Summary\nVulnerability scan of fiona shows [CVE-2020-14152](https://nvd.nist.gov/vuln/detail/CVE-2020-14152). The vulnerability is in libjpeg, a transitive dependency of fiona (via GDAL and PROJ).\n\n### Details\nIn IJG JPEG (aka libjpeg) before 9d, jpeg_mem_available() in jmemnobs.c in djpeg does not honor the max_memory_to_use setting, possibly causing excessive memory consumption.\n\n### Impact\nfiona will not open JPEG files and is not vulnerable to attack in that way. fiona might be vulnerable to malformed PROJ grid files using JPEG compression. No such vulnerability or compromise has been demonstrated.\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "fiona"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.10b2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/Toblerity/Fiona/security/advisories/GHSA-g4m4-9q4c-mfw6"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-14152"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/libjpeg-turbo/libjpeg-turbo/issues/500"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/OSGeo/gdal/commit/075480a3cba13c9dd2ab4e39e92d6147a6c98eca"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/Toblerity/Fiona/commit/07708211726e276e22dedb9cd567b4f6a7b8c809"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/libjpeg-turbo/libjpeg-turbo/commit/da2a27ef056a0179cbd80f9146e58b89403d9933"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/Toblerity/Fiona"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-400" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-07-16T19:32:22Z",
    "nvd_published_at" : null
  }
}