CVE-2020-29367: Blosc2 Blosc2 Heap-based Buffer Overflow Vulnerability
HIGHCVE-2020-29367 is a HIGH (CVSS 7.8) blosc2 heap-based buffer overflow vulnerability (CWE-787: Out-of-bounds Write) affecting Blosc2 libraries in the PyPI ecosystem. The issue involves blosc2 heap-based buffer overflow. Remediation is available by upgrading affected packages to version 0.1.7.
CVE-2020-29367 at a Glance
Security Impact
CVSS: 7.8
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:H/A:H).
How to Fix CVE-2020-29367
To remediate this vulnerability, upgrade all affected Blosc2 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 blosc2>=0.1.7
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show blosc2
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2020-29367, inspect your installed packages using pip:
pip show blosc2
Analyze the terminal output to locate any version of Blosc2 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.1.7), your application is affected.
Note: The pip show blosc2 command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-787: Out-of-bounds Write, where the product writes data past the end, or before the beginning, of the intended buffer. In Blosc2, 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-29367 Affected Blosc2 Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
blosc2
|
PyPI |
< 0.1.7
|
0.1.7
|
References
Frequently Asked Questions
What is CVE-2020-29367?
Which Blosc2 versions are affected?
What version fixes CVE-2020-29367?
Is blosc2 affected?
What is the CVSS score of CVE-2020-29367?
What CWE is associated with CVE-2020-29367?
How can I check PyPI dependencies for CVE-2020-29367?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-8c7c-2c8j-3xfp",
"modified" : "2026-06-10T18:42:41Z",
"published" : "2022-05-24T17:35:03Z",
"aliases" : [ "CVE-2020-29367" ],
"summary" : "blosc2 heap-based buffer overflow",
"details" : "blosc2.c in Blosc C-Blosc2 through 2.0.0.beta.5 has a heap-based buffer overflow when there is a lack of space to write compressed data.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "blosc2"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.1.7"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-29367"
}, {
"type" : "WEB",
"url" : "https://github.com/Blosc/c-blosc2/commit/c4c6470e88210afc95262c8b9fcc27e30ca043ee"
}, {
"type" : "WEB",
"url" : "https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=26442"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/Blosc/python-blosc2"
}, {
"type" : "WEB",
"url" : "https://github.com/Blosc/python-blosc2/releases/tag/v0.1.7"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/blosc2/PYSEC-2020-343.yaml"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-787" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2024-11-21T22:19:07Z",
"nvd_published_at" : "2020-11-27T20:15:00Z"
}
}