GHSA-g4m4-9q4c-mfw6: Fiona Fiona Affected By CVE-2020-14152 Related Vulnerability
HIGHGHSA-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
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).
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.
pip install fiona>=1.10b2
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
GHSA-g4m4-9q4c-mfw6 Affected Fiona Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
fiona
|
PyPI |
< 1.10b2
|
1.10b2
|
References
Frequently Asked Questions
What is GHSA-g4m4-9q4c-mfw6?
Which Fiona versions are affected?
What version fixes GHSA-g4m4-9q4c-mfw6?
Is fiona affected?
What is the CVSS score of GHSA-g4m4-9q4c-mfw6?
What CWE is associated with GHSA-g4m4-9q4c-mfw6?
How can I check PyPI dependencies for GHSA-g4m4-9q4c-mfw6?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}