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 lib/public_key/src/public_key.erl falls back to the subject commonName when no subjectAltName is present, extracting id-at-commonName attributes as presented IDs and matching them against the reference hostname. The strict pkix_verify_hostname_match_fun(https) matcher does not suppress this fallback. The result is that path validation accepts a CN-only leaf under a DNS-constrained intermediate (no SAN means the nameConstraints are not triggered), and hostname verification then accepts it via the CN fallback. The bypass is reachable from stock ssl:connect with verify_peer, a trusted CA, SNI, and the canonical strict https hostname matcher. This issue affects OTP from OTP 19.3 before OTP 29.0.1, OTP 28.5.0.1, OTP 27.3.4.12 and OTP 26.2.5.21, corresponding to public_key from 1.4 before 1.21.1, 1.20.3.1, 1.17.1.3 and 1.15.1.7.
- Published
- May 27, 2026
- Updated
- Sep 18, 2026
- EPSS
- 0.5% · 38th percentile
- CWE
- CWE-295
Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.
Report tools
Action score
30
Monitor
Low priority for now.
- CVSS
- 30 / 40 · 7.6 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 0 / 30 · 0.5%
CISA SSVC decision
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
Vulnrichment: CISA's decision-tree inputs.
CNA vs NVD score
- NVD
- —
- CNA · EEF
- 7.6
- NVD has not scored this yet; the score shown is the CNA’s.
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.
Affected systems
| Vendor | Product | CPE |
|---|---|---|
| erlang | erlang\/otp | cpe:2.3:a:erlang:erlang\/otp |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- erlang erlang/otp19.3 and later · before 26.2.5.21
- erlang erlang/otp27.0 and later · before 27.3.4.12
- erlang erlang/otp28.0 and later · before 28.5.0.1
- erlang erlang/otp29.0 and later · before 29.0.1
Versions reported by the vendor
Affected version ranges reported by the assigning authority (EEF). Independent of NVD's CPE analysis and usually ahead of it.
Erlang OTP
- 1.4 and lateraffected · otpfixed in 1.15.1.7, 1.17.1.3, 1.20.3.1, 1.21.1
- 19.3 and lateraffected · otpfixed in 26.2.5.21, 27.3.4.12, 28.5.0.1, 29.0.1
- b0c245e8132bb13171e277b1af59c0cec00c9459 and lateraffected · gitfixed in 0769050c69d73762672b0db1347b6993a5b31759, fb67c6d1836f51105a96d8b769e71e4215a79457, 21abed64eb2026b5f82f432709e4e932f9be389a
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:12 | erlang | all versions | — |
| Debian:13 | erlang | before 1:27.3.4.1+dfsg-1+deb13u3 | 1:27.3.4.1+dfsg-1+deb13u3 |
| Debian:14 | erlang | before 1:27.3.4.12+dfsg-1 | 1:27.3.4.12+dfsg-1 |
| openSUSE:Leap 16.0 | erlang | before 27.1.3-160000.5.1 | 27.1.3-160000.5.1 |
| openSUSE:Tumbleweed | erlang | before 28.5.0.4-1.1 | 28.5.0.4-1.1 |
| openSUSE:Tumbleweed | erlang27 | before 27.1.3-2.1 | 27.1.3-2.1 |
| Red Hat:hummingbird:1 | erlang27 | before 0:27.3.4.17-1.hum1 | 0:27.3.4.17-1.hum1 |
| Red Hat:hummingbird:1 | erlang27-asn1 | before 0:27.3.4.17-1.hum1 | 0:27.3.4.17-1.hum1 |
| Red Hat:hummingbird:1 | erlang27-common_test | before 0:27.3.4.17-1.hum1 | 0:27.3.4.17-1.hum1 |
| Red Hat:hummingbird:1 | erlang27-compiler | before 0:27.3.4.17-1.hum1 | 0:27.3.4.17-1.hum1 |
| Red Hat:hummingbird:1 | erlang27-crypto | before 0:27.3.4.17-1.hum1 | 0:27.3.4.17-1.hum1 |
| Red Hat:hummingbird:1 | erlang27-debugger | before 0:27.3.4.17-1.hum1 | 0:27.3.4.17-1.hum1 |
| Red Hat:hummingbird:1 | erlang27-dialyzer | before 0:27.3.4.17-1.hum1 | 0:27.3.4.17-1.hum1 |
| Red Hat:hummingbird:1 | erlang27-diameter | before 0:27.3.4.17-1.hum1 | 0:27.3.4.17-1.hum1 |
| Red Hat:hummingbird:1 | erlang27-edoc | before 0:27.3.4.17-1.hum1 | 0:27.3.4.17-1.hum1 |
| Red Hat:hummingbird:1 | erlang27-eldap | before 0:27.3.4.17-1.hum1 | 0:27.3.4.17-1.hum1 |
| Red Hat:hummingbird:1 | erlang27-erl_interface | before 0:27.3.4.17-1.hum1 | 0:27.3.4.17-1.hum1 |
| Red Hat:hummingbird:1 | erlang27-erts | before 0:27.3.4.17-1.hum1 | 0:27.3.4.17-1.hum1 |
| Red Hat:hummingbird:1 | erlang27-et | before 0:27.3.4.17-1.hum1 | 0:27.3.4.17-1.hum1 |
| Red Hat:hummingbird:1 | erlang27-eunit | before 0:27.3.4.17-1.hum1 | 0:27.3.4.17-1.hum1 |
| Red Hat:hummingbird:1 | erlang27-examples | before 0:27.3.4.17-1.hum1 | 0:27.3.4.17-1.hum1 |
| Red Hat:hummingbird:1 | erlang27-ftp | before 0:27.3.4.17-1.hum1 | 0:27.3.4.17-1.hum1 |
| Red Hat:hummingbird:1 | erlang27-gdb-tools | before 0:27.3.4.17-1.hum1 | 0:27.3.4.17-1.hum1 |
| Red Hat:hummingbird:1 | erlang27-inets | before 0:27.3.4.17-1.hum1 | 0:27.3.4.17-1.hum1 |
+54
Same product
erlang: all recordsOther highest-scoring records for the same primary product.
- CVE-2025-32433Erlang/OTP SSH Vulnerable to Pre-Authentication RCEKEV100Now
- CVE-2022-37026In Erlang/OTP before 23.3.4.15, 24.x before 24.3.4.2, and 25.x before 25.0.2, there is a Client Authentication Bypass in certain client-cert39Monitor
- CVE-2016-10253An issue was discovered in Erlang/OTP 18.x.39Monitor
- CVE-2026-55953TLS 1.2 and DTLS client accepts unoffered anonymous cipher suite, bypassing server authentication36Monitor
- CVE-2026-49759Stack buffer overflow in SCTP error cause parsing in inet_drv allows remote VM crash35Monitor
- CVE-2026-59251Denial of service via exponential certificate policy tree growth in path validation34Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| Erlang OTP | 0769050c69d73762672b0db1347b6993a5b31759 | Vendor (CNA) |
| Erlang OTP | 1.15.1.7 | Vendor (CNA) |
| Erlang OTP | 1.17.1.3 | Vendor (CNA) |
| Erlang OTP | 1.20.3.1 | Vendor (CNA) |
| Erlang OTP | 1.21.1 | Vendor (CNA) |
| Erlang OTP | 21abed64eb2026b5f82f432709e4e932f9be389a | Vendor (CNA) |
| Erlang OTP | 26.2.5.21 | Vendor (CNA) |
| Erlang OTP | 27.3.4.12 | Vendor (CNA) |
| Erlang OTP | 28.5.0.1 | Vendor (CNA) |
| Erlang OTP | 29.0.1 | Vendor (CNA) |
| Erlang OTP | fb67c6d1836f51105a96d8b769e71e4215a79457 | Vendor (CNA) |
| Debian:erlang | 1:27.3.4.1+dfsg-1+deb13u3 · Debian:13 | Package registry (OSV) |
| openSUSE:erlang | 28.5.0.4-1.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| openSUSE:erlang27 | 27.1.3-2.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| Red Hat:erlang | 0:26.2.5.21-2.el9ost · Red Hat:openstack:18.0::el9 | Package registry (OSV) |
| Red Hat:erlang-asn1 | 0:26.2.5.21-2.el9ost · Red Hat:openstack:18.0::el9 | Package registry (OSV) |
| Red Hat:erlang-asn1-debuginfo | 0:26.2.5.21-2.el9ost · Red Hat:openstack:18.0::el9 | Package registry (OSV) |
| Red Hat:erlang-compiler | 0:26.2.5.21-2.el9ost · Red Hat:openstack:18.0::el9 | Package registry (OSV) |
| Red Hat:erlang-crypto | 0:26.2.5.21-2.el9ost · Red Hat:openstack:18.0::el9 | Package registry (OSV) |
| Red Hat:erlang-crypto-debuginfo | 0:26.2.5.21-2.el9ost · Red Hat:openstack:18.0::el9 | Package registry (OSV) |
| Red Hat:erlang-debuginfo | 0:26.2.5.21-2.el9ost · Red Hat:openstack:18.0::el9 | Package registry (OSV) |
| Red Hat:erlang-debugsource | 0:26.2.5.21-2.el9ost · Red Hat:openstack:18.0::el9 | Package registry (OSV) |
| Red Hat:erlang-eldap | 0:26.2.5.21-2.el9ost · Red Hat:openstack:18.0::el9 | Package registry (OSV) |
| Red Hat:erlang-erl_interface-debuginfo | 0:26.2.5.21-2.el9ost · Red Hat:openstack:18.0::el9 | Package registry (OSV) |
| Red Hat:erlang-erts | 0:26.2.5.21-2.el9ost · Red Hat:openstack:18.0::el9 | Package registry (OSV) |
| Red Hat:erlang-erts-debuginfo | 0:26.2.5.21-2.el9ost · Red Hat:openstack:18.0::el9 | Package registry (OSV) |
| SUSE:erlang | 27.1.3-160000.5.1 · SUSE:Linux Enterprise Server 16.0 | Package registry (OSV) |
| SUSE:erlang26 | 26.2.1-150300.7.28.1 · SUSE:Linux Enterprise Module for Server Applications 15 SP7 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
- CVE-2026-3214450 days apartOCSP designated-responder authorization bypass via missing signature verification30Monitor
- CVE-2026-427910 days apartOCSP responder certificate validity period not checked in public_key25Monitor
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
No known public program.
Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- No account or password is required.
- Special conditions such as timing or configuration are required.
If successful
- Confidentiality
- Integrity
- Availability
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- None
- User interaction
- P
- Scope
- X
Weakness class (CWE)
CWE-295 · Improper Certificate ValidationCVSS vector
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
nvd-secondary
Root cause
A certificate validation error is silently swallowed instead of terminating the connection. Often, code added for a test environment makes its way into production.
The bug in code
The whole CWE-295 classA representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.
Vulnerable
override fun checkServerTrusted(chain: Array<X509Certificate>, type: String) { // Left empty for the test environment}Fixed
val client = OkHttpClient.Builder() .certificatePinner( CertificatePinner.Builder() .add("api.sirius.example", "sha256/…") .build() ).build()Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
ATT&CK techniques
—
Noroxi analysis
No Noroxi analysis for this record yet
We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.
We use this product, ask for helpChange log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
- cna.erlef.org/cves/CVE-2026-42790.html
- github.com/erlang/otp/commit/0769050c69d73762672b0db1347b6993a5b31759
- github.com/erlang/otp/commit/21abed64eb2026b5f82f432709e4e932f9be389a
- github.com/erlang/otp/commit/fb67c6d1836f51105a96d8b769e71e4215a79457
- github.com/erlang/otp/security/advisories/GHSA-22cw-4ph4-6447
- osv.dev/vulnerability/EEF-CVE-2026-42790
- www.erlang.org/doc/system/versions.html#order-of-versions
- access.redhat.com/errata/RHSA-2026:39809
- access.redhat.com/errata/RHSA-2026:54757
- access.redhat.com/security/cve/CVE-2026-42790
- bugzilla.redhat.com/show_bug.cgi?id=2482286
- security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42790.json
Vendor advisories and official records. Exploit/PoC links are deliberately left out.