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 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.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 0.359% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T17:59:58.648Z. Public exploit availability is not used to set this status.
CVSS 4.0 · 7.6 · published by 6b3ad84c-e1a6-4bf7-a703-f496b71e49dbCVSS: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
Assessment source · checked 2026-11-19T12:41:35.955Z
CVSS 4.0 · 7.6 · published by EEFCVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
Assessment source · checked 2026-11-19T12:58:34.690Z
CVSS 4.0 · 7.6 · published by Ubuntu SecurityCVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
Assessment source · checked 2026-11-19T16:53:14.419Z
CVSS 3.1 · 8.1 · published by [email protected]CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
Assessment source · checked 2026-11-19T12:41:35.955Z
CVSS 3.1 · 7.4 · published by 0b0ca135-0b70-47e7-9f44-1890c2a1c46cCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
Assessment source · checked 2026-11-19T12:41:35.955Z
CVSS 3.1 · 7.4 · published by Ubuntu SecurityCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
Assessment source · checked 2026-11-19T16:53:14.419Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T17:59:58.648Z | CISA KEV |
| cvss | verified | 2026-11-19T12:41:35.955Z | NVD |
| epss | verified | 2026-11-19T16:04:50.495Z | FIRST EPSS |
| patches | verified | 2026-11-19T16:53:14.419Z | Ubuntu Security |
| affected | verified | 2026-11-19T12:58:34.690Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:58:34.690Z | CVE Program |
Affected versions and configuration
Erlang OTP; modules: pubkey_cert, public_key; default status: unaffected: 19.3 to < * [affected; scheme: otp]; changes: [{"at":"26.2.5.21","status":"unaffected"},{"at":"27.3.4.12","status":"unaffected"},{"at":"28.5.0.1","status":"unaffected"},{"at":"29.0.1","status":"unaffected"}] Erlang OTP; modules: pubkey_cert, public_key; default status: unaffected: 1.4 to < * [affected; scheme: otp]; changes: [{"at":"1.15.1.7","status":"unaffected"},{"at":"1.17.1.3","status":"unaffected"},{"at":"1.20.3.1","status":"unaffected"},{"at":"1.21.1","status":"unaffected"}] Erlang OTP; modules: pubkey_cert, public_key; default status: unaffected: b0c245e8132bb13171e277b1af59c0cec00c9459 to < * [affected; scheme: git]; changes: [{"at":"0769050c69d73762672b0db1347b6993a5b31759","status":"unaffected"},{"at":"fb67c6d1836f51105a96d8b769e71e4215a79457","status":"unaffected"},{"at":"21abed64eb2026b5f82f432709e4e932f9be389a","status":"unaffected"}]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
Ubuntu Security · ubuntu-package · full conditions
[
{
"name": "erlang",
"debian": "https://tracker.debian.org/pkg/erlang",
"source": "https://ubuntu.com/security/cve?package=erlang",
"ubuntu": "https://packages.ubuntu.com/search?suite=all§ion=all&arch=any&searchon=sourcenames&keywords=erlang",
"statuses": [
{
"pocket": "security",
"status": "released",
"component": null,
"description": "1:27.3.4.12+dfsg-1",
"release_codename": "upstream"
},
{
"pocket": "esm-infra",
"status": "released",
"component": null,
"description": "1:20.2.2+dfsg-1ubuntu2+esm4",
"release_codename": "bionic"
},
{
"pocket": "esm-infra",
"status": "released",
"component": null,
"description": "1:22.2.7+dfsg-1ubuntu0.5+esm3",
"release_codename": "focal"
},
{
"pocket": "security",
"status": "ignored",
"component": null,
"description": "end of life, was needs-triage",
"release_codename": "questing"
},
{
"pocket": "security",
"status": "released",
"component": null,
"description": "1:24.2.1+dfsg-1ubuntu0.8",
"release_codename": "jammy"
},
{
"pocket": "security",
"status": "not-affected",
"component": null,
"description": "vulnerable code not present",
"release_codename": "trusty"
},
{
"pocket": "security",
"status": "released",
"component": null,
"description": "1:25.3.2.8+dfsg-1ubuntu4.8",
"release_codename": "noble"
},
{
"pocket": "security",
"status": "not-affected",
"component": null,
"description": "vulnerable code not present",
"release_codename": "xenial"
},
{
"pocket": "security",
"status": "released",
"component": null,
"description": "1:27.3.4.6+dfsg-1ubuntu0.2",
"release_codename": "resolute"
}
]
}
]Archived source JSONCVE Program · cve-json · full conditions
{
"affected": [
{
"cpes": [
"cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
],
"vendor": "Erlang",
"modules": [
"pubkey_cert",
"public_key"
],
"product": "OTP",
"versions": [
{
"status": "affected",
"changes": [
{
"at": "26.2.5.21",
"status": "unaffected"
},
{
"at": "27.3.4.12",
"status": "unaffected"
},
{
"at": "28.5.0.1",
"status": "unaffected"
},
{
"at": "29.0.1",
"status": "unaffected"
}
],
"version": "19.3",
"lessThan": "*",
"versionType": "otp"
}
],
"packageURL": "pkg:software-id/erlang.org/otp",
"packageName": "otp",
"programFiles": [
"lib/public_key/src/pubkey_cert.erl",
"lib/public_key/src/public_key.erl"
],
"defaultStatus": "unaffected",
"programRoutines": [
{
"name": "pubkey_cert:validate_names/6"
},
{
"name": "public_key:pkix_verify_hostname/3"
}
]
},
{
"cpes": [
"cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
],
"repo": "https://github.com/erlang/otp",
"vendor": "Erlang",
"modules": [
"pubkey_cert",
"public_key"
],
"product": "OTP",
"versions": [
{
"status": "affected",
"changes": [
{
"at": "1.15.1.7",
"status": "unaffected"
},
{
"at": "1.17.1.3",
"status": "unaffected"
},
{
"at": "1.20.3.1",
"status": "unaffected"
},
{
"at": "1.21.1",
"status": "unaffected"
}
],
"version": "1.4",
"lessThan": "*",
"versionType": "otp"
}
],
"packageURL": "pkg:otp/public_key?repository_url=https:%2F%2Fgithub.com%2Ferlang%2Fotp&vcs_url=git%2Bhttps:%2F%2Fgithub.com%2Ferlang%2Fotp.git",
"packageName": "public_key",
"programFiles": [
"src/pubkey_cert.erl",
"src/public_key.erl"
],
"defaultStatus": "unaffected",
"programRoutines": [
{
"name": "pubkey_cert:validate_names/6"
},
{
"name": "public_key:pkix_verify_hostname/3"
}
]
},
{
"cpes": [
"cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
],
"repo": "https://github.com/erlang/otp",
"vendor": "Erlang",
"modules": [
"pubkey_cert",
"public_key"
],
"product": "OTP",
"versions": [
{
"status": "affected",
"changes": [
{
"at": "0769050c69d73762672b0db1347b6993a5b31759",
"status": "unaffected"
},
{
"at": "fb67c6d1836f51105a96d8b769e71e4215a79457",
"status": "unaffected"
},
{
"at": "21abed64eb2026b5f82f432709e4e932f9be389a",
"status": "unaffected"
}
],
"version": "b0c245e8132bb13171e277b1af59c0cec00c9459",
"lessThan": "*",
"versionType": "git"
}
],
"packageURL": "pkg:github/erlang/otp",
"packageName": "erlang/otp",
"programFiles": [
"lib/public_key/src/pubkey_cert.erl",
"lib/public_key/src/public_key.erl"
],
"collectionURL": "https://github.com",
"defaultStatus": "unaffected",
"programRoutines": [
{
"name": "pubkey_cert:validate_names/6"
},
{
"name": "public_key:pkix_verify_hostname/3"
}
]
}
],
"additionalContainers": [
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2026-42790",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "total"
}
],
"version": "2.0.3",
"timestamp": "2026-05-27T00:00:00+00:00"
}
}
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2026-05-28T03:55:49.233Z"
}
},
{
"title": "erlang: Erlang OTP public_key: Certificate validation bypass allows hostname spoofing",
"metrics": [
{
"other": {
"type": "Red Hat severity rating",
"content": {
"value": "Important",
"namespace": "https://access.redhat.com/security/updates/classification/"
}
}
},
{
"format": "CVSS",
"cvssV3_1": {
"scope": "UNCHANGED",
"version": "3.1",
"baseScore": 7.4,
"attackVector": "NETWORK",
"baseSeverity": "HIGH",
"vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N",
"integrityImpact": "HIGH",
"userInteraction": "NONE",
"attackComplexity": "HIGH",
"availabilityImpact": "NONE",
"privilegesRequired": "NONE",
"confidentialityImpact": "HIGH"
}
}
],
"affected": [
{
"cpes": [
"cpe:/a:redhat:openstack:16.2::el8"
],
"vendor": "Red Hat",
"product": "Red Hat OpenStack Platform 16.2",
"versions": [
{
"status": "unaffected",
"version": "0:23.3.4.18-2.el8ost",
"lessThan": "*",
"versionType": "rpm"
}
],
"packageName": "erlang",
"collectionURL": "https://access.redhat.com/downloads/content/package-browser/",
"defaultStatus": "affected"
},
{
"cpes": [
"cpe:/a:redhat:openstack:18.0::el9"
],
"vendor": "Red Hat",
"product": "Red Hat OpenStack Services on OpenShift 18.0",
"versions": [
{
"status": "unaffected",
"version": "0:26.2.5.21-2.el9ost",
"lessThan": "*",
"versionType": "rpm"
}
],
"packageName": "erlang",
"collectionURL": "https://access.redhat.com/downloads/content/package-browser/",
"defaultStatus": "affected"
},
{
"cpes": [
"cpe:/a:redhat:hummingbird:1"
],
"vendor": "Red Hat",
"product": "Red Hat Hardened Images",
"packageName": "erlang27",
"collectionURL": "https://access.redhat.com/downloads/content/package-browser/",
"defaultStatus": "affected"
},
{
"cpes": [
"cpe:/a:redhat:openstack:17.1"
],
"vendor": "Red Hat",
"product": "Red Hat OpenStack Platform 17.1",
"packageName": "erlang",
"collectionURL": "https://access.redhat.com/downloads/content/package-browser/",
"defaultStatus": "affected"
}
],
"timeline": [
{
"lang": "en",
"time": "2026-05-27T17:02:53.354Z",
"value": "Reported to Red Hat."
},
{
"lang": "en",
"time": "2026-05-27T15:09:01.860Z",
"value": "Made public."
}
],
"solutions": [
{
"lang": "en",
"value": "RHSA-2026:54757: Red Hat OpenStack Platform 16.2"
},
{
"lang": "en",
"value": "RHSA-2026:39809: Red Hat OpenStack Services on OpenShift 18.0"
}
],
"x_adpType": "supplier",
"datePublic": "2026-05-27T15:09:01.860Z",
"references": [
{
"url": "https://access.redhat.com/security/cve/CVE-2026-42790",
"tags": [
"vdb-entry",
"x_refsource_REDHAT"
]
},
{
"url": "https://bugzilla.redhat.com/show_bug.cgi?id=2482286",
"name": "RHBZ#2482286",
"tags": [
"issue-tracking",
"x_refsource_REDHAT"
]
},
{
"url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42790.json",
"tags": [
"x_sadp-csaf-vex"
]
},
{
"url": "https://access.redhat.com/errata/RHSA-2026:54757",
"tags": [
"vendor-advisory",
"x_refsource_REDHAT"
]
},
{
"url": "https://access.redhat.com/errata/RHSA-2026:39809",
"tags": [
"vendor-advisory",
"x_refsource_REDHAT"
]
}
],
"workarounds": [
{
"lang": "en",
"value": "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."
}
],
"x_generator": {
"engine": "sadp-cli 1.0.0"
},
"descriptions": [
{
"lang": "en",
"value": "A flaw was found in Erlang OTP public_key. This improper certificate validation vulnerability allows a subordinate Certificate Authority (CA) with restricted DNS nameConstraints to bypass these restrictions. By issuing a leaf certificate that lacks a Subject Alternative Name (SAN) but contains a crafted CommonName (CN), an attacker can trick an Erlang OTP TLS client into accepting it as valid for an out-of-scope hostname. This can lead to hostname spoofing and potential man-in-the-middle attacks, compromising the integrity and confidentiality of communications."
}
],
"problemTypes": [
{
"descriptions": [
{
"lang": "en",
"type": "CWE",
"cweId": "CWE-295",
"description": "Improper Certificate Validation"
}
]
}
],
"providerMetadata": {
"orgId": "0b0ca135-0b70-47e7-9f44-1890c2a1c46c",
"shortName": "redhat-SADP",
"dateUpdated": "2026-09-18T12:04:51.323Z"
}
}
]
}Archived source JSONNVD · nvd-cpe · full conditions
[
{
"nodes": [
{
"negate": false,
"cpeMatch": [
{
"criteria": "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "245CC08C-EB1F-4230-8F4B-98CFFB623EB2",
"versionEndExcluding": "26.2.5.21",
"versionStartIncluding": "19.3"
},
{
"criteria": "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "91269F6D-B8A3-41F2-871C-79EBB9460BE8",
"versionEndExcluding": "27.3.4.12",
"versionStartIncluding": "27.0"
},
{
"criteria": "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "844A3F01-AF3C-4C48-81DB-932B803D22C4",
"versionEndExcluding": "28.5.0.1",
"versionStartIncluding": "28.0"
},
{
"criteria": "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "46976598-817C-4E93-AC4B-46434746C25F",
"versionEndExcluding": "29.0.1",
"versionStartIncluding": "29.0"
}
],
"operator": "OR"
}
]
}
]Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
| Evidence type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| upstream-note | upstream / upstream | erlang | Not a distribution channel | 1:27.3.4.12+dfsg-1 | Official record |
| distribution-package | Ubuntu / bionic | erlang | esm-infra | 1:20.2.2+dfsg-1ubuntu2+esm4 | Official record |
| distribution-package | Ubuntu / focal | erlang | esm-infra | 1:22.2.7+dfsg-1ubuntu0.5+esm3 | Official record |
| distribution-package | Ubuntu / jammy | erlang | security | 1:24.2.1+dfsg-1ubuntu0.8 | Official record |
| distribution-package | Ubuntu / noble | erlang | security | 1:25.3.2.8+dfsg-1ubuntu4.8 | Official record |
| distribution-package | Ubuntu / resolute | erlang | security | 1:27.3.4.6+dfsg-1ubuntu0.2 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- NVDConsulted: 2026-11-19T12:41:35.955ZArchived source JSON
Source publication: 2026-05-27T17:16:36.030Z
Source modification: 2026-11-11T19:17:39.830ZDocument fingerprint
e759e6d1e6804b37fd78e80e5e8ae7f3aeb60cbc655f9954c7d95508e6d7a6be - Ubuntu SecurityConsulted: 2026-11-19T16:53:14.419ZArchived source JSON
Source publication: 2026-05-27T17:16:00.000Z
Source modification: 2026-11-18T10:40:05.179ZDocument fingerprint
d5cb07a84ea1fc835a9b660805f32861172c667903e8a11c05f4b83f7127320c - CVE ProgramConsulted: 2026-11-19T12:58:34.690ZArchived source JSON
Source publication: 2026-05-27T15:09:01.860Z
Source modification: 2026-11-11T19:13:56.207ZDocument fingerprint
ef30f6b81ade3f2d32394860534435a464a4f14436e615899bbf0ba6fe735c7b - CISA KEVConsulted: 2026-11-19T17:59:58.648ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - FIRST EPSSConsulted: 2026-11-19T16:04:50.495ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
26803053ff9e9a9c4d07dd9ba39f54847c695213553a324e41cda0e50deeeb02
Official status history
- UNKNOWN → PUBLISHED · · evidence