← Vulnerabilities

MediumAdvisoryRuby

secp256k1-native has a compiler-induced timing side channel in scalar multiplication

Affected

PackageAffected versionsFixed in
rubygems:secp256k1-native< 0.18.00.18.0

Point#mul — the default, constant-time scalar multiplication and the library's headline secret-scalar operation — could leak timing information about the secret scalar (a private key or ECDSA-style nonce in a downstream consumer) not because of a source-level bug, but because the compiler reconstructed a branch from branchless source. The Montgomery ladder selects between point candidates with uint256_select, written deliberately branchlessly as r = (a & ~mask) | (b & mask) with a mask that is…

Read on GitHub Advisory Database

On 11/24/2026, 05:59 AM, GitHub Advisory Database published "secp256k1-native has a compiler-induced timing side channel in scalar multiplication" (type: Advisory). Severity is "Medium" (medium). Related technologies: Ruby. CVE: CVE-2026-63410.