cve.bz

CVE-2026-42790 nameConstraints DNS bypass via subject CommonName fallback in public_key hostname verification

7.6 highEPSS 0.4%Fix available

High (7.6) in erlang erlang\/otp. EPSS 0.4% estimated probability of exploitation activity in the next 30 days.

On this page
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 26.2.5.21, OTP 27.3.4.12, OTP 28.5.0.1, and OTP 29.0.1, corresponding to public_key from 1.4 before 1.15.1.7, 1.17.1.3, 1.20.3.1, and 1.21.1.

Severity

CVSS 4.0

7.6 high
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

CVSS 3.1

8.1 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
EPSS
0.4% (unchanged from 0.4% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 30th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-05-27. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-295 Improper Certificate Validation
CWE-297 Improper Validation of Certificate with Host Mismatch
OWASP Top 10
A07:2025 Authentication Failures
Published
Modified
Assigned by
EEF (CNA)
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-42790 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-42790?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-42790?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-42790 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

  • erlang:erlang\/otp

Versions

From the CNA's record in the CVE List.

ProductAffected
Erlang OTP1.4 and later
Erlang OTP19.3 and later

Fixed in

ProductFixed in
Erlang OTP1.15.1.7
Erlang OTP1.17.1.3
Erlang OTP1.20.3.1
Erlang OTP1.21.1
Erlang OTP26.2.5.21
Erlang OTP27.3.4.12
Erlang OTP28.5.0.1
Erlang OTP29.0.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12erlangno fix listedDEBIAN-CVE-2026-42790
Debian13erlang1:27.3.4.1+dfsg-1+deb13u3DEBIAN-CVE-2026-42790 DSA-6464-1
Debian14erlang1:27.3.4.12+dfsg-1DEBIAN-CVE-2026-42790
Ubuntu22.04:LTSerlang1:24.2.1+dfsg-1ubuntu0.8UBUNTU-CVE-2026-42790 USN-8901-1
Ubuntu24.04:LTSerlang1:25.3.2.8+dfsg-1ubuntu4.8UBUNTU-CVE-2026-42790 USN-8901-1
Ubuntu25.10erlangno fix listedUBUNTU-CVE-2026-42790
Ubuntu26.04:LTSerlang1:27.3.4.6+dfsg-1ubuntu0.2UBUNTU-CVE-2026-42790 USN-8901-1
UbuntuPro:14.04:LTSerlang1:16.b.3-dfsg-1ubuntu2.2+esm3USN-8901-1
UbuntuPro:16.04:LTSerlang1:18.3-dfsg-1ubuntu3.1+esm4USN-8901-1
UbuntuPro:18.04:LTSerlang1:20.2.2+dfsg-1ubuntu2+esm4UBUNTU-CVE-2026-42790 USN-8901-1
UbuntuPro:20.04:LTSerlang1:22.2.7+dfsg-1ubuntu0.5+esm3UBUNTU-CVE-2026-42790 USN-8901-1
Red Hathummingbird:1erlang27, erlang27-et, erlang27-wx and 36 more0:27.3.4.17-1.hum1RHSA-2026:63160
Red Hatopenstack:18.0::el9erlang, erlang-ssl, erlang-asn1 and 27 more0:26.2.5.21-2.el9ostRHSA-2026:39809
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 8 moreerlang23.3.4.19-150300.3.39.1SUSE-SU-2026:3645-1
SUSELinux Enterprise Module for Server Applications 15 SP7, Linux Enterprise Server 15 SP6-LTSS, Linux Enterprise Server for SAP Applications 15 SP6erlang2626.2.1-150300.7.28.1SUSE-SU-2026:3579-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0erlang27.1.3-160000.5.1SUSE-SU-2026:22082-1
openSUSELeap 16.0erlang27.1.3-160000.5.1openSUSE-SU-2026:20907-1
openSUSETumbleweederlang28.5.0.4-1.1openSUSE-SU-2026:11559-1
openSUSETumbleweederlang2727.1.3-2.1openSUSE-SU-2026:10947-1
Azure Linux3erlang26.2.5.21-1AZL-89175

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This Important flaw in Erlang OTP's public_key module allows a subordinate Certificate Authority to bypass DNS name constraints during TLS hostname verification. An attacker could exploit this by issuing a specially crafted certificate lacking a Subject Alternative Name but containing a malicious CommonName, enabling hostname spoofing and potential man-in-the-middle attacks against Red Hat products acting as Erlang OTP TLS clients.

Red Hat's mitigation

Ensure all TLS certificates used in the deployment include Subject Alternative Name (SAN) extensions with the appropriate DNS entries. Certificates relying solely on the CommonName (CN) field for hostname identification are susceptible to this bypass. For Erlang applications, the verify_fun option in the ssl module can be configured to reject peer certificates missing the subjectAltName extension.

ProductPackageStateAdvisory
Red Hat OpenStack Platform 16.2erlang-0:23.3.4.18-2.el8ostFixed 2026-08-13RHSA-2026:54757
Red Hat OpenStack Services on OpenShift 18.0erlang-0:26.2.5.21-2.el9ostFixed 2026-07-15RHSA-2026:39809
Red Hat Hardened Imageserlang27-main-27.3.4.17-1.hum1Fixed 2026-09-03RHSA-2026:63160
Red Hat OpenStack Platform 17.1erlangAffected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-42790.

Attack patterns (CAPEC)

  • CAPEC-459 Creating a Rogue Certification Authority Certificate Likelihood: Medium · Severity: Very High
  • CAPEC-475 Signature Spoofing by Improper Validation Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON