CVE-2024-1544: ECDSA - Side Channel Attack
- Cve: CVE-2024-1544
- Name: ECDSA - Side Channel Attack
- Description: Generating the ECDSA nonce k samples a random number r and then truncates this randomness with a modular reduction mod n where n is the order of the elliptic curve. Meaning k = r mod n. The division used during the reduction estimates a factor q_e by dividing the upper two digits (a digit having e.g. a size of 8 byte) of r by the upper digit of n and then decrements q_e in a loop until it has the correct size. Observing the number of times q_e is decremented through a control-flow revealing side-channel reveals a bias in the most significant bits of k. Depending on the curve this is either a negligible bias or a significant bias large enough to reconstruct k with lattice reduction methods. For SECP160R1, e.g., we find a bias of 15 bits.
- Impact: Attackers can potentially recover the nonce k, leading to private key compromise in ECDSA signatures.
- Remediation: Implement constant-time reduction algorithms to prevent side-channel biases, and consider using standardized, side-channel resistant nonce generation methods.
- Vulnerability type: side_channel
- Vulnerability impact: information_disclosure
- Requirement type: none
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 4.9
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
- Epss score: 0.00349
- Epss percentile: 0.29168
- Assignee: [email protected]
- Published at: 2024-08-27T19:15:16Z
- Age in days: 819
- Modified at: 2026-06-17T07:04:27Z
- Patch available: yes
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-1544
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-203 | Observable Discrepancy |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/wolfSSL/wolfssl/releases/tag/v5.7.2-stable | nvd | Release Notes |
| https://github.com/wolfSSL/wolfssl/pull/7020 | nvd |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| wolfssl:wolfssl | < 5.7.2 | no | nvd | /v1/products/wolfssl/wolfssl |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| wolfSSL/wolfssl | pull, releases | yes | /v1/repositories/wolfSSL/wolfssl |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Authentication required: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts