CVE-2022-23491: Certifi Certifi Removing TrustCor Root Certificate Vulnerability
MODERATECVE-2022-23491 is a MODERATE (CVSS 6.8) certifi removing trustcor root certificate vulnerability (CWE-345: Insufficient Verification of Data Authenticity) affecting Certifi libraries in the PyPI ecosystem. The issue involves certifi removing trustcor root certificate. Remediation is available by upgrading affected packages to version 2022.12.07.
CVE-2022-23491 at a Glance
Security Impact
CVSS: 6.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:N/I:H/A:N).
How to Fix CVE-2022-23491
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>=2022.12.07
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-2022-23491, 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 2022.12.07), 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-2022-23491 Affected Certifi Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
certifi
|
PyPI |
≥ 2017.11.05
< 2022.12.07
|
2022.12.07
|
References
Frequently Asked Questions
What is CVE-2022-23491?
Which Certifi versions are affected?
What version fixes CVE-2022-23491?
Is certifi affected?
What is the CVSS score of CVE-2022-23491?
What CWE is associated with CVE-2022-23491?
How can I check PyPI dependencies for CVE-2022-23491?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-43fp-rhv2-5gv8",
"modified" : "2025-02-12T18:33:24Z",
"published" : "2022-12-07T23:05:18Z",
"aliases" : [ "CVE-2022-23491" ],
"summary" : "Certifi removing TrustCor root certificate",
"details" : "Certifi 2022.12.07 removes root certificates from \"TrustCor\" from the root store. These are in the process of being removed from Mozilla's trust store.\n\nTrustCor's root certificates are being removed pursuant to an investigation prompted by media reporting that TrustCor's ownership also operated a business that produced spyware. Conclusions of Mozilla's investigation can be found [here](https://groups.google.com/a/mozilla.org/g/dev-security-policy/c/oxX69KFvsm4/m/yLohoVqtCgAJ).",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:N/I:H/A:N"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "certifi"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2017.11.05"
}, {
"fixed" : "2022.12.07"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/certifi/python-certifi/security/advisories/GHSA-43fp-rhv2-5gv8"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-23491"
}, {
"type" : "WEB",
"url" : "https://github.com/certifi/python-certifi/commit/9e9e840925d7b8e76c76fdac1fab7e6e88c1c3b8"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/certifi/python-certifi"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/certifi/PYSEC-2022-42986.yaml"
}, {
"type" : "WEB",
"url" : "https://groups.google.com/a/mozilla.org/g/dev-security-policy/c/oxX69KFvsm4/m/yLohoVqtCgAJ"
}, {
"type" : "WEB",
"url" : "https://security.netapp.com/advisory/ntap-20230223-0010"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-345" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2022-12-07T23:05:18Z",
"nvd_published_at" : "2022-12-07T22:15:00Z"
}
}