Vulnerabilities in pkg:pypi/wolfcrypt
PACKAGECVE-2019-13628 is a MODERATE (CVSS 4.7) wolfcrypt leaks cryptographic information vulnerability (CWE-203: Observable Discrepancy) affecting Wolfcrypt libraries in the PyPI ecosystem. The issue involves wolfcrypt leaks cryptographic information via timing side channel. Remediation is available by upgrading affected packages to version 4.1.0.
pkg:pypi/wolfcrypt
Vulnerability advisories affecting package pkg:pypi/wolfcrypt. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-q95h-vc86-hv77 | CVE-2019-13628 | MODERATE | wolfCrypt leaks cryptographic information via timing side channel |
CVE-2019-13628 at a Glance
Security Impact
CVSS: 4.7
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N).
How to Fix CVE-2019-13628
To remediate this vulnerability, upgrade all affected Wolfcrypt 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 wolfcrypt>=4.1.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show wolfcrypt
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2019-13628, inspect your installed packages using pip:
pip show wolfcrypt
Analyze the terminal output to locate any version of Wolfcrypt in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.1.0), your application is affected.
Note: The pip show wolfcrypt command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-203: Observable Discrepancy, where the product behaves differently or sends different responses under different circumstances in a way that is observable to an unauthorized actor. In Wolfcrypt, 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-2019-13628 Affected Wolfcrypt Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
wolfcrypt
|
PyPI |
< 4.1.0
|
4.1.0
|
References
Frequently Asked Questions
What is CVE-2019-13628?
Which Wolfcrypt versions are affected?
What version fixes CVE-2019-13628?
Is wolfcrypt affected?
What is the CVSS score of CVE-2019-13628?
What CWE is associated with CVE-2019-13628?
How can I check PyPI dependencies for CVE-2019-13628?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-q95h-vc86-hv77",
"modified" : "2023-09-25T19:35:50Z",
"published" : "2022-05-24T16:57:48Z",
"aliases" : [ "CVE-2019-13628" ],
"summary" : "wolfCrypt leaks cryptographic information via timing side channel",
"details" : "wolfSSL and wolfCrypt 4.0.0 and earlier (when configured without `--enable-fpecc`, `--enable-sp`, or` --enable-sp-math`) contain a timing side channel in ECDSA signature generation. This allows a local attacker, able to precisely measure the duration of signature operations, to infer information about the nonces used and potentially mount a lattice attack to recover the private key used. The issue occurs because ecc.c scalar multiplication might leak the bit length.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "wolfcrypt"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "4.1.0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 4.0.0"
}
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-13628"
}, {
"type" : "WEB",
"url" : "https://eprint.iacr.org/2011/232.pdf"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/wolfSSL/wolfcrypt-py"
}, {
"type" : "WEB",
"url" : "https://minerva.crocs.fi.muni.cz"
}, {
"type" : "WEB",
"url" : "https://tches.iacr.org/index.php/TCHES/article/view/7337"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2019/10/02/2"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-203" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-07-17T22:25:50Z",
"nvd_published_at" : "2019-10-03T14:15:00Z"
}
}