CVE-2026-42790
CVE-2026-42790 — nameConstraints DNS bypass via subject CommonName fallback in public_key hostname verification
Improper Certificate Validation vulnerability in Erlang OTP public_key (pubkey_cert and public_key modules) allows a DNS nameConstraints bypass via subject CommonName fallback in TLS hostname verification. Two flaws combine to allow a subordinate CA whose DNS nameConstraints are restricted (e.g. permitted;DNS:allowed.example.com) to issue a leaf certificate that an OTP TLS client accepts as a valid identity for an out-of-scope hostname (e.g. victim.example.com): First, pubkey_cert:validate_names/6 in lib/public_key/src/pubkey_cert.erl only checks SAN DNS entries against nameConstraints. Per RFC 5280, a permitted DNS subtree only restricts certificates that contain a DNS-typed name. A leaf with no subjectAltName therefore trivially satisfies any permitted;DNS:... constraint regardless of its subject commonName. Second, public_key:pkix_verify_hostname/3 in…
Published Updated Sources: cvelistV5, EEF
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Unreported
no source claims exploitation
EPSS
<1%
chance of exploitation in 30 days
CVSS base
7.4
HIGH
CISA SSVC assessment
Three decision points CISA publishes for the CVEs it assesses · SSVC 2.0.3. A stakeholder decision, not a severity score.
Exploitation
None
none · proof-of-concept · active
Automatable
No
can an attacker script all four kill-chain steps
Technical impact
Total
partial · total control of the vulnerable component
Affected scope
The catalog records vendors and products as separate lists, not pairs, so which product belongs to which vendor is not something this page can say.
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 7.4 | CVSS 3.1 | HIGH | n/a | n/a | cvelistV5 |
Weakness & attack patterns
- CWE-295
- CWE-297
Detection
Read off the CVSS vector and the weakness class. Starting points, not rules we have tested.
- Search application, proxy, and WAF logs for requests touching /6, /public_key/src/pubkey_cert.erl, /3.
References
13 on the record
- github.com/erlang/otp/security/advisories/GHSA-22cw-4ph4-6447
vendor-advisory, related
- cna.erlef.org/cves/CVE-2026-42790.html
related
- osv.dev/vulnerability/EEF-CVE-2026-42790
related
- www.erlang.org/doc/system/versions.html#order-of-versions
x_version-scheme
- github.com/erlang/otp/commit/b0c245e8132bb13171e277b1af59c0cec00c9459
related
- github.com/erlang/otp/commit/0769050c69d73762672b0db1347b6993a5b31759
patch
- github.com/erlang/otp/commit/21abed64eb2026b5f82f432709e4e932f9be389a
patch
- github.com/erlang/otp/commit/fb67c6d1836f51105a96d8b769e71e4215a79457
patch
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2026-129975 Gpgme: gpgme: double free in read_status() via crafted signatureCVSS 8.1
- CVE-2026-137898 Pam: linux-pam pam_econf local privilege escalation via relative "(null)" config directory from empty vendor directory handlingCVSS 7.3
- CVE-2026-135901 Shadow-utils: shadow-utils: newgidmap and newuidmap improperly validate file descriptor location, allowing local file corruption via bind mountCVSS 4.4
- CVE-2026-85102 Improper Certificate Validation in Quantum Security GatewayCVSS 9.8 · CISA KEV
- CVE-2022-26923 Microsoft Active Directory Domain Services Privilege Escalation VulnerabilityCVSS 9.0 · CISA KEV
- CVE-2020-0601 Microsoft Windows CryptoAPI Spoofing VulnerabilityCVSS 8.1 · CISA KEV
Elsewhere on this site
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.