PT-2026-137781

Published

2026-10-26

·

Updated

2026-10-26

Description by

Score
N/A
Not available

No severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.

Observable Timing Discrepancy vulnerability in potatosalad jose allows recovery of a long-term X25519 private key through a timing side channel in the pure-Erlang Curve25519 fallback.
The pure-Erlang X25519 implementation performs scalar multiplication over the secret private key using a recursive Montgomery ladder (jose jwa x25519:curve25519/2) whose clauses branch on individual bits of the clamped private scalar, and whose per-step operations (jose jwa x25519:montgomery add/3 and jose jwa x25519:montgomery double/1) and field inversion are built from value-dependent Erlang bignum arithmetic (multiplication, remainder, and modular exponentiation). Although the ladder is operation-count balanced and fixed at 254 steps, the concrete integer values processed at each step, and therefore the running time, depend on the secret scalar. The execution time of the public entry points jose jwa x25519:scalarmult/2, jose jwa x25519:x25519/2, jose jwa x25519:x25519 base/1, and jose jwa x25519:sk to pk/1 is thus a function of the private key.
This path is reachable from the public API, most notably when a service decrypts attacker-supplied ECDH-ES (JWE) messages with a long-term X25519 key (for example through JOSE.JWK.box decrypt ecdh es/2, which reaches jose jwa curve25519:x25519 shared secret/2 and the ladder). An attacker who can submit ciphertexts and measure decryption timing can, in principle, recover the private key bit by bit, defeating the resistance X25519 was designed to provide. Recovery of the key compromises the confidentiality and authenticity of all data protected by it.
This issue affects jose: from 1.10.0 before 1.11.13.
Vendors
Affected products
Related identifiers
AZL-111158
Found an issue in the description? Have something to add? Feel free to write us 👾