CVE-2023-37920: Certifi Removal Of E-Tugra Root Certificate Vulnerability

HIGH
Advisory Identifier: GHSA-xqr8-7jwr-rhp7
CVSS 7.5
CWE-345
Published
Advisory Summary

CVE-2023-37920 is a HIGH (CVSS 7.5) removal of e-tugra root certificate vulnerability (CWE-345: Insufficient Verification of Data Authenticity) affecting Certifi libraries in the PyPI ecosystem. The issue involves removal of e-tugra root certificate. Remediation is available by upgrading affected packages to version 2023.7.22.

CVE-2023-37920 at a Glance

CVE Identifier CVE-2023-37920
GHSA Identifier GHSA-xqr8-7jwr-rhp7
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-345: Insufficient Verification of Data Authenticity
Affected Product Certifi
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 7.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:N/S:U/C:N/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2023-37920

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: 2023.7.22
pip install certifi>=2023.7.22
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-2023-37920, 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 2023.7.22), 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 2023.07.22 removes root certificates from "e-Tugra" from the root store. These are in the process of being removed from Mozilla's trust store. e-Tugra's root certificates are being removed pursuant to an investigation prompted by reporting of security issues in their systems. Conclusions of Mozilla's investigation can be found [here](https://groups.google.com/a/mozilla.org/g/dev-security-policy/c/C-HrP1SEq1A).

CVE-2023-37920 Affected Certifi Versions

1 component(s)
Fixed Versions:
2023.7.22
Product / Package Ecosystem Affected Versions Fixed Version
certifi
PyPI
≥ 2015.4.28
< 2023.7.22
2023.7.22

References

Frequently Asked Questions

What is CVE-2023-37920?
CVE-2023-37920 is a security vulnerability in Certifi involving Removal of e-Tugra root certificate under CWE-345: Insufficient Verification of Data Authenticity.
Which Certifi versions are affected?
Affected versions include releases prior to 2023.7.22 across affected packages: certifi.
What version fixes CVE-2023-37920?
Upgrading to 2023.7.22 (or the latest patched release for your respective branch) resolves the vulnerability.
Is certifi affected?
Yes, certifi is affected in releases prior to 2023.7.22. Upgrade your dependency to 2023.7.22 or later.
What is the CVSS score of CVE-2023-37920?
CVE-2023-37920 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2023-37920?
CVE-2023-37920 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-2023-37920?
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-xqr8-7jwr-rhp7",
  "modified" : "2025-02-12T21:33:44Z",
  "published" : "2023-07-25T14:43:53Z",
  "aliases" : [ "CVE-2023-37920" ],
  "summary" : "Removal of e-Tugra root certificate",
  "details" : "Certifi 2023.07.22 removes root certificates from \"e-Tugra\" from the root store. These are in the process of being removed from Mozilla's trust store.\n\n e-Tugra's root certificates are being removed pursuant to an investigation prompted by reporting of security issues in their systems. Conclusions of Mozilla's investigation can be found [here](https://groups.google.com/a/mozilla.org/g/dev-security-policy/c/C-HrP1SEq1A).",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "certifi"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2015.4.28"
      }, {
        "fixed" : "2023.7.22"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/certifi/python-certifi/security/advisories/GHSA-xqr8-7jwr-rhp7"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-37920"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/certifi/python-certifi/commit/8fb96ed81f71e7097ed11bc4d9b19afd7ea5c909"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/certifi/python-certifi"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/certifi/PYSEC-2023-135.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://groups.google.com/a/mozilla.org/g/dev-security-policy/c/C-HrP1SEq1A"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/5EX6NG7WUFNUKGFHLM35KHHU3GAKXRTG"
  }, {
    "type" : "WEB",
    "url" : "https://security.netapp.com/advisory/ntap-20240912-0002"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-345" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-07-25T14:43:53Z",
    "nvd_published_at" : "2023-07-25T21:15:10Z"
  }
}