Skip to content
OpenAdvisories
Medium · 4.7 CVE-2019-13628 EUVD-2022-4925GHSA-q95h-vc86-hv77PYSEC-2026-1066

wolfCrypt leaks cryptographic information via timing side channel

Published Oct 3, 2019 · Updated Aug 4, 2024 · Assigned by mitre

Description

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 13 wolfssl 4.1.0+dfsg-1 —
Debian 12 wolfssl 4.1.0+dfsg-1 —
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS wolfssl No fix yet —
Ubuntu 16.04 LTS wolfssl No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI wolfcrypt < 4.1.0 4.1.0 GHSA-q95h-vc86-hv77

References