CVE-2024-39689: Certifi Certifi Removes GLOBALTRUST Root Certificate Vulnerability

LOW
Advisory Identifier: GHSA-248v-346w-9cwc
CWE-345
Published
Advisory Summary

CVE-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.

CVE-2024-39689 at a Glance

CVE Identifier CVE-2024-39689
GHSA Identifier GHSA-248v-346w-9cwc
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-345: Insufficient Verification of Data Authenticity
Affected Product Certifi
Package Ecosystem PyPI
Published Date
Last Updated

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.

certifi fixed: 2024.7.4
pip install certifi>=2024.7.4
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 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

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. GLOBALTRUST'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).

CVE-2024-39689 Affected Certifi Versions

1 component(s)
Fixed Versions:
2024.7.4
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?
CVE-2024-39689 is a security vulnerability in Certifi involving Certifi removes GLOBALTRUST root certificate under CWE-345: Insufficient Verification of Data Authenticity.
Which Certifi versions are affected?
Affected versions include releases prior to 2024.7.4 across affected packages: certifi.
What version fixes CVE-2024-39689?
Upgrading to 2024.7.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is certifi affected?
Yes, certifi is affected in releases prior to 2024.7.4. Upgrade your dependency to 2024.7.4 or later.
What CWE is associated with CVE-2024-39689?
CVE-2024-39689 is classified under CWE-345: Insufficient Verification of Data Authenticity (The product does not sufficiently verify the origin or authenticity of data, in a way that causes it to accept invalid data.).
How can I check PyPI dependencies for CVE-2024-39689?
Run the dependency tree command: 'pip show certifi'. 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-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"
  }
}