Vulnerabilities in pkg:pypi/wolfcrypt

PACKAGE
Advisory Identifier: GHSA-q95h-vc86-hv77
Advisory Summary

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

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/wolfcrypt

1 Known Advisory Record(s)

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

CVE Identifier CVE-2019-13628
GHSA Identifier GHSA-q95h-vc86-hv77
Severity MODERATE
CVSS v3.1 Base Score 4.7
CWE Classification CWE-203: Observable Discrepancy
Affected Product Wolfcrypt
Package Ecosystem PyPI
Published Date
Last Updated

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

Attack Vector Local (AV:L)
Attack Complexity High (AC:H)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (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.

wolfcrypt fixed: 4.1.0
pip install wolfcrypt>=4.1.0
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 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

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.

CVE-2019-13628 Affected Wolfcrypt Versions

1 component(s)
Fixed Versions:
4.1.0
Product / Package Ecosystem Affected Versions Fixed Version
wolfcrypt
PyPI
< 4.1.0
4.1.0

References

Frequently Asked Questions

What is CVE-2019-13628?
CVE-2019-13628 is a security vulnerability in Wolfcrypt involving wolfCrypt leaks cryptographic information via timing side channel under CWE-203: Observable Discrepancy.
Which Wolfcrypt versions are affected?
Affected versions include releases prior to 4.1.0 across affected packages: wolfcrypt.
What version fixes CVE-2019-13628?
Upgrading to 4.1.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is wolfcrypt affected?
Yes, wolfcrypt is affected in releases prior to 4.1.0. Upgrade your dependency to 4.1.0 or later.
What is the CVSS score of CVE-2019-13628?
CVE-2019-13628 has a CVSS v3.1 base score of 4.7 (MODERATE) with vector string CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2019-13628?
CVE-2019-13628 is classified under CWE-203: Observable Discrepancy (The product behaves differently or sends different responses under different circumstances in a way that is observable to an unauthorized actor.).
How can I check PyPI dependencies for CVE-2019-13628?
Run the dependency tree command: 'pip show wolfcrypt'. 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-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"
  }
}