{"id":"CVE-2024-1544","published":"2024-08-27T18:44:52Z","modified":"2026-01-27T21:58:42Z","title":"ECDSA nonce bias caused by truncation","vendor":"wolfSSL","product":"wolfSSL","tier":"tail","description":{"text":"Generating the ECDSA nonce k samples a random number r and then \ntruncates this randomness with a modular reduction mod n where n is the \norder of the elliptic curve. Meaning k = r mod n. The division used \nduring the reduction estimates a factor q_e by dividing the upper two \ndigits (a digit having e.g. a size of 8 byte) of r by the upper digit of \nn and then decrements q_e in a loop until it has the correct size. \nObserving the number of times q_e is decremented through a control-flow \nrevealing side-channel reveals a bias in the most significant bits of \nk. Depending on the curve this is either a negligible bias or a \nsignificant bias large enough to reconstruct k with lattice reduction \nmethods. For SECP160R1, e.g., we find a bias of 15 bits.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.1,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00349,"percentile":0.29354,"provenance":"source"},"cwes":[{"id":"CWE-203","name":"Observable Discrepancy"}],"references":[{"url":"https://github.com/wolfSSL/wolfssl/releases/tag/v5.7.2-stable","tags":[]},{"url":"https://github.com/wolfSSL/wolfssl/pull/7020","tags":[]}],"priority":{"score":8.7,"factors":[{"name":"EPSS percentile","points":5.87},{"name":"CVSS severity","points":2.87}]},"vendorSlug":"wolfssl","affectedVersions":[{"vendor":"wolfSSL","product":"wolfSSL","versions":["<= 5.6.4"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-08-27T19:14:00.889289Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-17291","exploited":false,"provenance":"source"}}