{"id":"CVE-2024-1544","aliases":["CVE-2024-1544"],"related":[],"kind":"vulnerability","state":"published","title":"ECDSA nonce bias caused by truncation","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"Generar el nonce k ECDSA muestra un número aleatorio r y luego trunca esta aleatoriedad con una reducción modular mod n donde n es el orden de la curva elíptica. Significado k = r mod n. La división utilizada durante la reducción estima un factor q_e dividiendo los dos dígitos superiores (un dígito que tiene, por ejemplo, un tamaño de 8 bytes) de r por el dígito superior de n y luego disminuye q_e en un bucle hasta que tenga el tamaño correcto. Observar el número de veces que q_e disminuye a través de un canal lateral revelador de flujo de control revela un sesgo en los bits más significativos de k. Dependiendo de la curva, esto es un sesgo insignificante o un sesgo significativo lo suficientemente grande como para reconstruir k con métodos de reducción de celosía. Para SECP160R1, por ejemplo, encontramos un sesgo de 15 bits.","source":"nvd"}],"published":"2024-08-27T18:44:52.770Z","modified":"2026-06-17T07:04:27.800Z","severity":{"scorer":"wolfSSL","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:N","score":4.1,"rating":"MEDIUM"},"severities":[{"scorer":"wolfSSL","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:N","score":4.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N","score":4.9,"rating":"MEDIUM"}],"cwes":["CWE-203"],"affected":[{"ranges":[{"type":"Release","introduced":"0","lastAffected":"5.6.4","status":"affected"}],"vendor":"wolfSSL","product":"wolfSSL","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"5.7.2"}],"vendor":"wolfssl","product":"wolfssl","cpe":"cpe:2.3:a:wolfssl:wolfssl:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/wolfSSL/wolfssl/releases/tag/v5.7.2-stable","tags":["release-notes"],"sources":["cvelist","nvd"]},{"url":"https://github.com/wolfSSL/wolfssl/pull/7020","tags":[],"sources":["cvelist","nvd"]}],"credits":["Florian Sieck, Luca Wilke and Thomas Eisenbarth from Universität zu Lübeck"],"assigner":"wolfSSL","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-08-27T19:14:00.889Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-1544","url":"https://www.cve.org/CVERecord?id=CVE-2024-1544","licence":"CVE Terms of Use","modified":"2026-01-27T21:58:42.146Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-1544","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-1544","licence":"Public domain","modified":"2026-06-17T07:04:27.800Z"}],"updatedAt":"2026-11-25T22:58:44.803Z","epss":{"score":0.00349,"percentile":0.30587,"date":"2026-12-01T12:00:22.000Z"}}