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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** LOW 3.7
- **CVSS:** 3.7 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: Low; Integrity impact: None; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.26% (percentile 11, 2026-11-26)
- **CWE:** CWE-325
- **Published:** 2026-06-09T16:03:29.802Z
- **Modified:** 2026-07-23T08:10:00.137Z

## Who should check

- Anyone running OpenSSL \>= 4.0.0, \< 4.0.1; \>= 3.6.0, \< 3.6.3; \>= 3.5.0, \< 3.5.7; \>= 3.4.0, \< 3.4.6; \>= 3.0.0, \< 3.0.21

## 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 and fixed versions

- OpenSSL: \>= 4.0.0, \< 4.0.1; \>= 3.6.0, \< 3.6.3; \>= 3.5.0, \< 3.5.7; \>= 3.4.0, \< 3.4.6; \>= 3.0.0, \< 3.0.21 (cvelist)

## Mitigation

- Upgrade OpenSSL to 3.0.21 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-42770. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-42770.md
Affected: OpenSSL >= 4.0.0, < 4.0.1; >= 3.6.0, < 3.6.3; >= 3.5.0, < 3.5.7; >= 3.4.0, < 3.4.6; >= 3.0.0, < 3.0.21
Fixed in: OpenSSL 4.0.1, OpenSSL 3.6.3, OpenSSL 3.5.7, OpenSSL 3.4.6, OpenSSL 3.0.21

Steps:
1. Search this machine and project for OpenSSL: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-42770 being exploited?

There is no confirmed exploitation: CVE-2026-42770 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.26% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-42770?

Low: CVSS 3.7 (v3.1, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2026-42770?

OpenSSL \>= 4.0.0, \< 4.0.1; \>= 3.6.0, \< 3.6.3; \>= 3.5.0, \< 3.5.7; \>= 3.4.0, \< 3.4.6; \>= 3.0.0, \< 3.0.21.

### Is there a fix for CVE-2026-42770?

Yes. Fixed in OpenSSL 4.0.1, OpenSSL 3.6.3, OpenSSL 3.5.7, OpenSSL 3.4.6, OpenSSL 3.0.21. Upgrade OpenSSL to 3.0.21 or later.

### How do I check if I'm affected by CVE-2026-42770?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://openssl-library.org/news/secadv/20260609.txt>
- patch: <https://github.com/openssl/openssl/commit/3da5a516cd2635a320ff748503db2cef7c4b0f02>
- patch: <https://github.com/openssl/openssl/commit/3ddbb7ab50bd93dfc59cbe08e269a67605aeebdb>
- patch: <https://github.com/openssl/openssl/commit/ca2237ab5615641b662183b077f62c08d75e8070>
- patch: <https://github.com/openssl/openssl/commit/5f452bba2c681423d8fcffd120a19b757ee42e3c>
- patch: <https://github.com/openssl/openssl/commit/7fbfde7677ed8808828bf00ff01c937ca04bdda2>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-42770>

HTML: <https://flawdb.com/CVE-2026-42770> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-42770>
