BSD Ports

Timing leaks of the nonce in ECDSA, EdDSA and DSA signatures

· VuXML entry

Helder Eijs reports Fix timing leaks of the nonce in ECDSA, EdDSA and DSA signatures The signing time depended on the secret nonce, enough to recover the private key with a lattice attack. - EC: scalars are encoded and processed on the full length of the order, and ec_mix_add() is constant time for the point at infinity (a zero digit). - DSA: g^k uses k + q or k + 2q (fixed length) and mpz_powm_sec, or the library's …

Affected versions

By system

2 still vulnerable, 2 fixed. Where VuXML applies (FreeBSD, DragonFly, FreeBSD's derivatives) a port is vulnerable while its version is in a range; pkgsrc says itself whether it lists a CVE of this advisory; OpenBSD and MidnightBSD keep no list this site reads, so their row is only an estimate: FreeBSD's ranges applied to upstream's version.

SystemPortVersionStateFixed
FreeBSDsecurity/py-pycryptodome3.24.1 fixed (2 days after)
MidnightBSDsecurity/py-pycryptodome3.21.0_1 in range, by version
FreeBSDsecurity/py-pycryptodomex3.24.1 fixed
MidnightBSDsecurity/py-pycryptodomex in range, by version
DragonFlysecurity/py-pycryptodome3.21.0 vulnerable since 2026-10-12
DragonFlysecurity/py-pycryptodomex3.21.0 vulnerable since 2026-10-12