Vulnerability · Published Jun 9, 2026 · Assigned by openssl

CVE-2026-42770FFC-DH Peer Validation Uses Attacker-Supplied q

Low 3.7

In plain English

A low-severity security flaw in OpenSSL from OpenSSL. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 43% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)3.7Low
Exploit odds (30 days)0.5%top 56.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

Issue summary: When EVP_PKEY_derive_set_peer() is called with a DHX (X9.42) peer key, the peer key is not properly checked for the subgroup membership. Impact summary: A malicious peer which presents an X9.42 key carrying the victim's p and g parameters, a forged q = r (a small prime factor of the cofactor (p−1)/q_local), and a public value Y of order r can recover the victim's private key after a small number of key exchange attempts. When EVP_PKEY_derive_set_peer() is called with a DHX (X9.42) peer key, the subgroup membership check Y^q ≡ 1 (mod p) is performed using the peer's own q parameter, not the local key's q. The peer's domain parameters are then matched against the domain parameters of the private key, but the value of q is not compared. A malicious peer who presents an X9.42 key carrying the victim's p, g, a forged q = r (a small prime factor of the cofactor), and a public value Y of order r passes all checks. The shared secret then takes only r distinct values, leaking priv mod r. Repeating for each small-prime factor of the cofactor and combining via CRT recovers the full private key (Lim–Lee / small-subgroup-confinement attack). The realistic attack surface is narrow: principally CMP deployments with long-lived RA/CA DHX keys and bespoke enterprise or government applications using X9.42 DHX static keys with interactive protocols and therefore this issue was assigned Low severity. The FIPS modules in 4.0, 3.6, 3.5, 3.4, 3.1.2 and 3.0 are affected by this issue.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:10openssl1:3.5.5-4.el10_2.alma.1ALSA-2026:25237
AlmaLinux:9openssl1:3.5.5-4.el9_8ALSA-2026:25239
AlmaLinux:10openssl-devel1:3.5.5-4.el10_2.alma.1ALSA-2026:25237
AlmaLinux:9openssl-devel1:3.5.5-4.el9_8ALSA-2026:25239
AlmaLinux:10openssl-libs1:3.5.5-4.el10_2.alma.1ALSA-2026:25237
AlmaLinux:9openssl-libs1:3.5.5-4.el9_8ALSA-2026:25239
AlmaLinux:10openssl-perl1:3.5.5-4.el10_2.alma.1ALSA-2026:25237
AlmaLinux:9openssl-perl1:3.5.5-4.el9_8ALSA-2026:25239
Alpine:v3.21openssl3.3.7-r1ALPINE-CVE-2026-42770
Alpine:v3.22openssl3.5.7-r0ALPINE-CVE-2026-42770
Alpine:v3.23openssl3.5.7-r0ALPINE-CVE-2026-42770
Alpine:v3.24openssl3.5.7-r0ALPINE-CVE-2026-42770
Debian:12openssl3.0.20-1~deb12u2DEBIAN-CVE-2026-42770
Debian:13openssl3.5.6-1~deb13u2DEBIAN-CVE-2026-42770
Debian:14openssl3.6.3-1DEBIAN-CVE-2026-42770
Rocky Linux:10openssl1:3.5.5-4.el10_2RLSA-2026:25237
Rocky Linux:9openssl1:3.5.5-4.el9_8RLSA-2026:25239
Ubuntu:24.04:LTSedk2no fix listedUBUNTU-CVE-2026-42770
Ubuntu:25.10edk2no fix listedUBUNTU-CVE-2026-42770
Ubuntu:26.04:LTSedk2no fix listedUBUNTU-CVE-2026-42770
Ubuntu:26.10edk2no fix listedUBUNTU-CVE-2026-42770
Ubuntu:26.04:LTSedk2-hweno fix listedUBUNTU-CVE-2026-42770
Ubuntu:26.10edk2-hweno fix listedUBUNTU-CVE-2026-42770
Ubuntu:22.04:LTSopenssl3.0.2-0ubuntu1.25UBUNTU-CVE-2026-42770
Ubuntu:24.04:LTSopenssl3.0.13-0ubuntu3.11UBUNTU-CVE-2026-42770
Ubuntu:25.10openssl3.5.3-1ubuntu3.4UBUNTU-CVE-2026-42770
Ubuntu:26.04:LTSopenssl3.5.5-1ubuntu3.2UBUNTU-CVE-2026-42770

Affected products (as reported)

VendorProductVersions
OpenSSL OpenSSL 4.0.0 – before 4.0.13.6.0 – before 3.6.33.5.0 – before 3.5.73.4.0 – before 3.4.63.0.0 – before 3.0.21

Weakness: CWE-325 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N

References