CVE-2026-65630

Source
https://cve.org/CVERecord?id=CVE-2026-65630
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-65630.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-65630
Aliases
Downstream
AZL (2)
DEBIAN (1)
UBUNTU (1)
Published
2026-10-26T19:54:07Z
Modified
2026-11-11T10:47:33Z
Severity
  • 5.9 (Medium) CVSS_V4 - CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N CVSS Calculator
Summary
Timing side-channel in pure-Erlang X25519 scalar multiplication leaks the private key in jose
Details

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.

Database specific
{
    "cna_assigner": "EEF",
    "cwe_ids": [
        "CWE-208"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/65xxx/CVE-2026-65630.json"
}
References

Affected packages

Git / github.com/potatosalad/erlang-jose

Affected ranges

Type
GIT
Repo
https://github.com/potatosalad/erlang-jose
Events
Database specific
Show details
{
    "extracted_events": [
        {
            "range": [
                {
                    "introduced": "8e532095de114ef4bf88a9ec5d651fa251a972b3"
                },
                {
                    "fixed": "3670f873c274bba86fb7f5ee5727a7efa1322b79"
                }
            ],
            "source": "AFFECTED_FIELD",
            "strategy": "StandardRange"
        },
        {
            "range": [
                {
                    "introduced": "1.10.0"
                },
                {
                    "fixed": "1.11.13"
                }
            ],
            "source": "AFFECTED_FIELD",
            "strategy": "StandardRange"
        },
        {
            "range": [
                {
                    "fixed": "8e532095de114ef4bf88a9ec5d651fa251a972b3"
                }
            ],
            "source": "REFERENCES_COMMIT"
        },
        {
            "range": [
                {
                    "fixed": "3670f873c274bba86fb7f5ee5727a7efa1322b79"
                }
            ],
            "source": "REFERENCES_COMMIT"
        }
    ]
}

Affected versions

1.*
1.10.0
1.10.1
1.11.0
1.11.1
1.11.10
1.11.11
1.11.12
1.11.2
1.11.4
1.11.5
1.11.7
1.11.8
1.11.9

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-65630.json"