Vulnerabilities in pkg:pypi/certifi
PACKAGECVE-2024-39689 is a LOW certifi removes globaltrust root certificate vulnerability (CWE-345: Insufficient Verification of Data Authenticity) affecting Certifi libraries in the PyPI ecosystem. The issue involves certifi removes globaltrust root certificate. Remediation is available by upgrading affected packages to version 2024.7.4.
pkg:pypi/certifi
Vulnerability advisories affecting package pkg:pypi/certifi. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-248v-346w-9cwc | CVE-2024-39689 | LOW | Certifi removes GLOBALTRUST root certificate |
| GHSA-xqr8-7jwr-rhp7 | CVE-2023-37920 | HIGH | Removal of e-Tugra root certificate |
| GHSA-43fp-rhv2-5gv8 | CVE-2022-23491 | MODERATE | Certifi removing TrustCor root certificate |
CVE-2024-39689 at a Glance
How to Fix CVE-2024-39689
To remediate this vulnerability, upgrade all affected Certifi 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 certifi>=2024.7.4
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show certifi
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2024-39689, inspect your installed packages using pip:
pip show certifi
Analyze the terminal output to locate any version of Certifi in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2024.7.4), your application is affected.
Note: The pip show certifi command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-345: Insufficient Verification of Data Authenticity, where the product does not sufficiently verify the origin or authenticity of data, in a way that causes it to accept invalid data. In Certifi, 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-2024-39689 Affected Certifi Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
certifi
|
PyPI |
≥ 2021.5.30
< 2024.7.4
|
2024.7.4
|
References
Frequently Asked Questions
What is CVE-2024-39689?
Which Certifi versions are affected?
What version fixes CVE-2024-39689?
Is certifi affected?
What CWE is associated with CVE-2024-39689?
How can I check PyPI dependencies for CVE-2024-39689?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-248v-346w-9cwc",
"modified" : "2025-02-13T00:44:19Z",
"published" : "2024-07-05T20:06:40Z",
"aliases" : [ "CVE-2024-39689" ],
"summary" : "Certifi removes GLOBALTRUST root certificate",
"details" : "Certifi 2024.07.04 removes root certificates from \"GLOBALTRUST\" from the root store. These are in the process of being removed from Mozilla's trust store.\n\nGLOBALTRUST's root certificates are being removed pursuant to an investigation which identified \"long-running and unresolved compliance issues\". Conclusions of Mozilla's investigation can be found [here]( https://groups.google.com/a/mozilla.org/g/dev-security-policy/c/XpknYMPO8dI).",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "certifi"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2021.5.30"
}, {
"fixed" : "2024.7.4"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/certifi/python-certifi/security/advisories/GHSA-248v-346w-9cwc"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-39689"
}, {
"type" : "WEB",
"url" : "https://github.com/certifi/python-certifi/commit/bd8153872e9c6fc98f4023df9c2deaffea2fa463"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/certifi/python-certifi"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/certifi/PYSEC-2024-230.yaml"
}, {
"type" : "WEB",
"url" : "https://groups.google.com/a/mozilla.org/g/dev-security-policy/c/XpknYMPO8dI"
}, {
"type" : "WEB",
"url" : "https://security.netapp.com/advisory/ntap-20241206-0001"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-345" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2024-07-05T20:06:40Z",
"nvd_published_at" : "2024-07-05T19:15:10Z"
}
}