CVEfocus › CVE database › CVE-2026-42770

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

CVSS 3.7 LowEPSS 0.3% (higher than 11% of CVEs)Published 2026-06-09Updated 2026-07-20Assigner: openssl

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.

CWE-325

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

29Fixed
48Fix pending
3Under investigation
1Will not fix
4Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10edk2Fix pendingUBUNTU-CVE-2026-42770
Ubuntu 26.10edk2-hweFix pendingUBUNTU-CVE-2026-42770
Ubuntu 26.04edk2Under investigationUBUNTU-CVE-2026-42770
Ubuntu 26.04edk2-hweUnder investigationUBUNTU-CVE-2026-42770
Ubuntu 26.04nodejsNot affected
vulnerable_code_not_present
Ubuntu 26.04opensslFixed3.5.5-1ubuntu3.2UBUNTU-CVE-2026-42770
Ubuntu 25.10edk2Will not fix
edk2 in jammy embeds OpenSSL 1.1.1j edk2 in noble embeds OpenSSL 3.0.9 edk2 in plucky embeds OpenSSL 3.4.0 edk2 in questing embeds OpenSSL 3.4.0 nodejs in…
UBUNTU-CVE-2026-42770
Ubuntu 25.10nodejsNot affected
vulnerable_code_not_present
Ubuntu 25.10opensslFixed3.5.3-1ubuntu3.4UBUNTU-CVE-2026-42770
Ubuntu 24.04edk2Under investigationUBUNTU-CVE-2026-42770
Ubuntu 24.04nodejsNot affected
vulnerable_code_not_present
Ubuntu 24.04opensslFixed3.0.13-0ubuntu3.11UBUNTU-CVE-2026-42770
Ubuntu 22.04edk2Not affected
vulnerable_code_not_present
Ubuntu 22.04nodejsFix pendingUBUNTU-CVE-2026-42770
Ubuntu 22.04opensslFixed3.0.2-0ubuntu1.25UBUNTU-CVE-2026-42770
Debian 14opensslFixed3.6.3-1DEBIAN-CVE-2026-42770
Debian 13opensslFixed3.5.6-1~deb13u2DEBIAN-CVE-2026-42770
Debian 12opensslFixed3.0.20-1~deb12u2DEBIAN-CVE-2026-42770
Red Hat Enterprise Linux 10edk2Fix pending
Fix deferred
Red Hat Enterprise Linux 10edk2-aarch64Fix pending
Fix deferred
Red Hat Enterprise Linux 10edk2-ovmfFix pending
Fix deferred
Red Hat Enterprise Linux 10edk2-toolsFix pending
Fix deferred
Red Hat Enterprise Linux 10edk2-tools-docFix pending
Fix deferred
Red Hat Enterprise Linux 10mokutilFix pending
Fix deferred
Red Hat Enterprise Linux 10opensslFixed1:3.5.5-4.el10_2RHSA-2026:25237
Red Hat Enterprise Linux 10openssl-develFixed1:3.5.5-4.el10_2RHSA-2026:25237
Red Hat Enterprise Linux 10openssl-libsFixed1:3.5.5-4.el10_2RHSA-2026:25237
Red Hat Enterprise Linux 10openssl-perlFixed1:3.5.5-4.el10_2RHSA-2026:25237
Red Hat Enterprise Linux 10shim-aa64Fix pending
Fix deferred
Red Hat Enterprise Linux 10shim-unsigned-aarch64Fix pending
Fix deferred
Red Hat Enterprise Linux 10shim-unsigned-x64Fix pending
Fix deferred
Red Hat Enterprise Linux 10shim-x64Fix pending
Fix deferred
Red Hat Enterprise Linux 9compat-openssl11Fix pending
Fix deferred
Red Hat Enterprise Linux 9edk2Fix pending
Fix deferred
Red Hat Enterprise Linux 9edk2-aarch64Fix pending
Fix deferred
Red Hat Enterprise Linux 9edk2-ovmfFix pending
Fix deferred
Red Hat Enterprise Linux 9edk2-toolsFix pending
Fix deferred
Red Hat Enterprise Linux 9edk2-tools-docFix pending
Fix deferred
Red Hat Enterprise Linux 9opensslFixed1:3.5.5-4.el9_8RHSA-2026:25239
Red Hat Enterprise Linux 9openssl-develFixed1:3.5.5-4.el9_8RHSA-2026:25239
Red Hat Enterprise Linux 9openssl-libsFixed1:3.5.5-4.el9_8RHSA-2026:25239
Red Hat Enterprise Linux 9openssl-perlFixed1:3.5.5-4.el9_8RHSA-2026:25239
Red Hat Enterprise Linux 9shimFix pending
Fix deferred
Red Hat Enterprise Linux 9shim-aa64Fix pending
Fix deferred
Red Hat Enterprise Linux 9shim-unsigned-aarch64Fix pending
Fix deferred
Red Hat Enterprise Linux 9shim-unsigned-x64Fix pending
Fix deferred
Red Hat Enterprise Linux 9shim-x64Fix pending
Fix deferred
Red Hat Enterprise Linux 8compat-openssl10Fix pending
Fix deferred
Red Hat Enterprise Linux 8edk2Fix pending
Fix deferred
Red Hat Enterprise Linux 8edk2-aarch64Fix pending
Fix deferred
Red Hat Enterprise Linux 8edk2-ovmfFix pending
Fix deferred
Red Hat Enterprise Linux 8mingw-opensslFix pending
Fix deferred
Red Hat Enterprise Linux 8mingw32-opensslFix pending
Fix deferred
Red Hat Enterprise Linux 8mingw64-opensslFix pending
Fix deferred
Red Hat Enterprise Linux 8opensslFix pending
Fix deferred
Red Hat Enterprise Linux 8openssl-develFix pending
Fix deferred
Red Hat Enterprise Linux 8openssl-libsFix pending
Fix deferred
Red Hat Enterprise Linux 8openssl-perlFix pending
Fix deferred
Red Hat Enterprise Linux 8openssl-staticFix pending
Fix deferred
Red Hat Enterprise Linux 8shimFix pending
Fix deferred
Red Hat Enterprise Linux 8shim-aa64Fix pending
Fix deferred
Red Hat Enterprise Linux 8shim-ia32Fix pending
Fix deferred
Red Hat Enterprise Linux 8shim-unsigned-x64Fix pending
Fix deferred
Red Hat Enterprise Linux 8shim-x64Fix pending
Fix deferred
Red Hat Enterprise Linux 7AAVMFFix pending
Fix deferred
Red Hat Enterprise Linux 7OVMFFix pending
Fix deferred
Red Hat Enterprise Linux 7ovmfFix pending
Fix deferred
Red Hat Enterprise Linux 6opensslFix pending
Fix deferred
Red Hat Enterprise Linux 6openssl-develFix pending
Fix deferred
Red Hat Enterprise Linux 6openssl-perlFix pending
Fix deferred
Red Hat Enterprise Linux 6openssl-staticFix pending
Fix deferred
AlmaLinux 10opensslFixed1:3.5.5-4.el10_2.alma.1ALSA-2026:25237
AlmaLinux 10openssl-develFixed1:3.5.5-4.el10_2.alma.1ALSA-2026:25237
AlmaLinux 10openssl-libsFixed1:3.5.5-4.el10_2.alma.1ALSA-2026:25237
AlmaLinux 10openssl-perlFixed1:3.5.5-4.el10_2.alma.1ALSA-2026:25237
AlmaLinux 9opensslFixed1:3.5.5-4.el9_8ALSA-2026:25239
AlmaLinux 9openssl-develFixed1:3.5.5-4.el9_8ALSA-2026:25239
AlmaLinux 9openssl-libsFixed1:3.5.5-4.el9_8ALSA-2026:25239
AlmaLinux 9openssl-perlFixed1:3.5.5-4.el9_8ALSA-2026:25239
Rocky Linux 10opensslFixed1:3.5.5-4.el10_2RLSA-2026:25237
Rocky Linux 9opensslFixed1:3.5.5-4.el9_8RLSA-2026:25239
Alpine Linux 3.24opensslFixed3.5.7-r0ALPINE-CVE-2026-42770
Alpine Linux 3.23opensslFixed3.5.7-r0ALPINE-CVE-2026-42770
Alpine Linux 3.22opensslFixed3.5.7-r0ALPINE-CVE-2026-42770
Alpine Linux 3.21opensslFixed3.3.7-r1ALPINE-CVE-2026-42770

What the vendor says

As published in the CVE record by openssl, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.