CVE-2026-42770
openssl: FFC-DH Peer Validation Uses Attacker-Supplied q
Overview
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.
Source: OX vulnerability database
Severity
3.7 · LOW
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- Low
- Integrity
- None
- Availability
- None
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
Weakness: CWE-325
Affected packages · 3
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Julia | AppBundler | >=1.0.0, <1.0.1 | 1.0.1 |
| Julia | Openresty_jll | >=1.27.1+0 | No fix yet |
| Julia | OpenSSL_jll | >=3.0.8+0, <3.5.7+0 | 3.5.7+0 |
Open a package to see all its vulnerabilities.
Operating systems · 63 fixes
Azure Linux 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 3.0 | edk2 | 0:20240524git3e722403cd16-20.azl3 |
| 3.0 | openssl | 0:3.3.7-4.azl3 |
Oracle Linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 9 | openssl +3 | 10:3.5.5-4.0.1.el9_8_fips |
| 9 | openssl +3 | 1:3.5.5-4.0.1.el9_8 |
Photon OS 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 4.0 | openssl +4 | 3.0.21-1.ph4 |
| 5.0 | openssl +5 | 3.5.7-1.ph5 |
Red Hat 3 releases · 4 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 7 | aavmf +3 | affected | — |
| 8 | compat-openssl10 +18 | affected | — |
| 9 | compat-openssl11 +12 | affected | — |
| 9 | openssl +3 | 1:3.5.5-4.el9_8 | RHSA-2026:25239 |
SUSE Linux Enterprise 5 releases · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 15.4 | libopenssl-3-devel +2 | 3.0.8-150400.4.87.1 | SUSE-SU-2026:2598-1 |
| 15.5 | libopenssl-3-devel +2 | 3.0.8-150500.5.66.1 | SUSE-SU-2026:2397-1 |
| 15.6 | libopenssl-3-devel +5 | 3.1.4-150600.5.53.1 | SUSE-SU-2026:2393-1 |
| 15.7 | libopenssl-3-devel +5 | 3.2.3-150700.5.36.1 | SUSE-SU-2026:2648-1 |
| 16.0 | libopenssl-3-devel +6 | 3.5.0-160000.8.1 | SUSE-SU-2026:22315-1 |
SUSE Linux Enterprise Micro 5 releases · 2 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 5.3 | libopenssl3 | 3.0.8-150400.4.87.1 | SUSE-SU-2026:2598-1 |
| 5.4 | libopenssl3 | 3.0.8-150400.4.87.1 | SUSE-SU-2026:2598-1 |
| 6.0 | libopenssl-3-devel +3 | 3.1.4-14.1 | SUSE-SU-2026:22100-1 |
| 6.1 | libopenssl-3-devel +3 | 3.1.4-slfo.1.1_10.1 | SUSE-SU-2026:22132-1 |
| 6.2 | libopenssl-3-devel +3 | 3.5.0-160000.8.1 | SUSE-SU-2026:22251-1 |
alma 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 9 | openssl +3 | 1:3.5.5-4.el9_8 |
alpine 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.22 | openssl | 3.5.7-r0 |
| 3.23 | openssl | 3.5.7-r0 |
| 3.24 | openssl | 3.5.7-r0 |
| edge | openssl | 3.5.7-r0 |
amazon linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 2023 | openssl +10 | 1:3.5.5-1.amzn2023.0.5 |
chainguard 1 release · 4 packages
| Release | Package | Fixed in |
|---|---|---|
| openssl-provider-fips +3 | 3.4.0-r4 | |
| openssl-3-5 | 3.5.7-r0 | |
| libcrypto3-2-34 +1 | 3.6.3-r0 | |
| openssl-4-0 | 4.0.1-r0 |
debian 3 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 12 | openssl | 3.0.20-1~deb12u2 |
| 13 | openssl | 3.5.6-1~deb13u2 |
| 14 | openssl | 3.6.3-1 |
echo 1 release · 4 packages
| Release | Package | Fixed in |
|---|---|---|
| openssl | 3.0.20-1~deb12u2 | |
| openssl-3-0-9 | 3.0.9+e1 | |
| openssl-3-1-0 | 3.1.0+e1 | |
| openssl-3-5-0 | 3.5.0+e1 |
minimos 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| openssl-3-0 | 3.0.21-r0 | |
| openssl | 3.5.7-r0 |
openSUSE 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | libopenssl-3-devel +9 | 3.5.3-6.1 | openSUSE-SU-2026:11023-1 |
openSUSE Leap 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 16.0 | libopenssl-3-devel +6 | 3.5.0-160000.8.1 | openSUSE-SU-2026:21005-1 |
rocky 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 10 | openssl +1 | 1:3.5.5-4.el10_2 |
| 9 | openssl +1 | 1:3.5.5-4.el9_8 |
seal Red Hat 3 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 7 | openssl +1 | 1:1.0.2k-25.el7_9+sp999 |
| 7 | openssl +1 | 1:1.0.2k-26.el7_9+sp999 |
| 8 | openssl +1 | 1:1.1.1k-14.el8_6+sp999 |
| 8 | openssl +1 | 1:1.1.1k-6.el8_5+sp999 |
| 9 | openssl +1 | 1:3.2.2-6.el9_5+sp999 |
seal alpine 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| openssl +1 | 3.3.2-r45341999 | |
| openssl | 3.3.3-r0000 | |
| seal-openssl | 3.3.3-r053413 |
seal debian 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| openssl +1 | 3.0.11-1~deb12u2+sp999 | |
| openssl +1 | 3.0.13-0ubuntu3.4+sp999 | |
| openssl +1 | 3.0.16-1~deb12u1+sp999 | |
| openssl +1 | 3.0.2-0ubuntu1.19+sp999 | |
| openssl +1 | 3.0.2-0ubuntu1.20+sp999 | |
| openssl +1 | 3.5.4-1~deb13u1+sp999 |
ubuntu 3 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 22.04 | nodejs | affected |
| 22.04 | openssl | 3.0.2-0ubuntu1.25 |
| 24.04 | openssl | 3.0.13-0ubuntu3.11 |
| 26.04 | openssl | 3.5.5-1ubuntu3.2 |
wolfi 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| openssl | 3.6.3-r0 | |
| openssl-4-0 | 4.0.1-r0 |
References
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:25237
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:25239
- access.redhat.com https://access.redhat.com/security/cve/CVE-2026-42770
- bugzilla.redhat.com https://bugzilla.redhat.com/2481879
- bugzilla.redhat.com https://bugzilla.redhat.com/2481880
- bugzilla.redhat.com https://bugzilla.redhat.com/2481881
- bugzilla.redhat.com https://bugzilla.redhat.com/2481882
- bugzilla.redhat.com https://bugzilla.redhat.com/2481884
- bugzilla.redhat.com https://bugzilla.redhat.com/2481885
- bugzilla.redhat.com https://bugzilla.redhat.com/2481887
Show all 68 references
- bugzilla.redhat.com https://bugzilla.redhat.com/2481890
- bugzilla.redhat.com https://bugzilla.redhat.com/2481891
- bugzilla.redhat.com https://bugzilla.redhat.com/2481892
- bugzilla.redhat.com https://bugzilla.redhat.com/2481893
- bugzilla.redhat.com https://bugzilla.redhat.com/2481894
- bugzilla.redhat.com https://bugzilla.redhat.com/2481896
- bugzilla.redhat.com https://bugzilla.redhat.com/2481897
- bugzilla.redhat.com https://bugzilla.redhat.com/2481898
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2481879
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2481880
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2481881
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2481882
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2481884
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2481885
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2481887
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2481890
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2481891
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2481892
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2481893
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2481894
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2481896
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2481897
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2481898
- creativecommons.org https://creativecommons.org/licenses/by/4.0/
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-34180
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-34181
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-34182
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-34183
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-42764
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-42766
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-42767
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-42768
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-42769
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-42770
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-45445
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-45446
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-45447
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-7383
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-9076
- errata.almalinux.org https://errata.almalinux.org/9/ALSA-2026-25239.html
- errata.rockylinux.org https://errata.rockylinux.org/RLSA-2026:25237
- github.com https://github.com/advisories/GHSA-3cxm-476w-ghm2
- github.com https://github.com/openssl/openssl/commit/3da5a516cd2635a320ff748503db2cef7c4b0f02
- github.com https://github.com/openssl/openssl/commit/3ddbb7ab50bd93dfc59cbe08e269a67605aeebdb
- github.com https://github.com/openssl/openssl/commit/5f452bba2c681423d8fcffd120a19b757ee42e3c
- github.com https://github.com/openssl/openssl/commit/7fbfde7677ed8808828bf00ff01c937ca04bdda2
- github.com https://github.com/openssl/openssl/commit/ca2237ab5615641b662183b077f62c08d75e8070
- github.com https://github.com/openssl/security/commit/3da5a516cd2635a320ff748503db2cef7c4b0f02
- github.com https://github.com/openssl/security/commit/3ddbb7ab50bd93dfc59cbe08e269a67605aeebdb
- github.com https://github.com/openssl/security/commit/5f452bba2c681423d8fcffd120a19b757ee42e3c
- github.com https://github.com/openssl/security/commit/7fbfde7677ed8808828bf00ff01c937ca04bdda2
- github.com https://github.com/openssl/security/commit/ca2237ab5615641b662183b077f62c08d75e8070
- linux.oracle.com https://linux.oracle.com/cve/CVE-2026-42770.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2026-50379.html
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2026-42770
- openssl-library.org https://openssl-library.org/news/secadv/20260609.txt
- ubuntu.com https://ubuntu.com/security/notices/USN-8414-1
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2026-42770
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.