Vulnerabilities in pkg:pypi/diplib
PACKAGECVE-2021-39432 is a MODERATE (CVSS 6.5) diplib double free vulnerability (CWE-415: Double Free) affecting Diplib libraries in the PyPI ecosystem. The issue involves diplib double free. Remediation is available by upgrading affected packages to version 3.1.0.
pkg:pypi/diplib
Vulnerability advisories affecting package pkg:pypi/diplib. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-xf2w-5673-h6ww | CVE-2021-39432 | MODERATE | diplib Double Free |
CVE-2021-39432 at a Glance
Security Impact
CVSS: 6.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H).
How to Fix CVE-2021-39432
To remediate this vulnerability, upgrade all affected Diplib 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 diplib>=3.1.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show diplib
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2021-39432, inspect your installed packages using pip:
pip show diplib
Analyze the terminal output to locate any version of Diplib in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.1.0), your application is affected.
Note: The pip show diplib command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-415: Double Free, where the product calls free() twice on the same memory address. In Diplib, 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-2021-39432 Affected Diplib Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
diplib
|
PyPI |
< 3.1.0
|
3.1.0
|
References
Frequently Asked Questions
What is CVE-2021-39432?
Which Diplib versions are affected?
What version fixes CVE-2021-39432?
Is diplib affected?
What is the CVSS score of CVE-2021-39432?
What CWE is associated with CVE-2021-39432?
How can I check PyPI dependencies for CVE-2021-39432?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-xf2w-5673-h6ww",
"modified" : "2026-06-10T18:44:04Z",
"published" : "2022-11-04T19:01:09Z",
"aliases" : [ "CVE-2021-39432" ],
"summary" : "diplib Double Free",
"details" : "diplib v3.0.0 is vulnerable to Double Free.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "diplib"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.1.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-39432"
}, {
"type" : "WEB",
"url" : "https://github.com/DIPlib/diplib/issues/80"
}, {
"type" : "WEB",
"url" : "https://github.com/DIPlib/diplib/commit/8b9a2670ce66ff2fd5addf592f7825e1f5adb5b5"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/DIPlib/diplib"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/diplib/PYSEC-2022-43131.yaml"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-415", "CWE-416" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-11-21T22:14:21Z",
"nvd_published_at" : "2022-11-04T17:15:00Z"
}
}