llamaCVEVulnerability Intelligence
/
OTP

CVE-2026-42790

nameConstraints DNS bypass via subject CommonName fallback in public_key hostname verification

Specific setups onlyParche disponibleimproper certificate validation
Descargar PNG JSON
CVSS 4.0
7.6
Alta
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 Fuente: CNA
7.4adp · CVSS 3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
ExplotaciónSin evidenciaSSVC: none · no figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche2 versiones1.15.1.7 · 26.2.5.21
Exposición176 dDesde la divulgación, 27 may 2026, 10:09 a. m.
Detección159 dDesde la divulgación hasta su ingreso al índice
Decisión SSVCSeguir de cerca
Monitorear y programar la remediación
Sin explotación conocida, no automatizable e impacto técnico total. Hay versiones corregidas disponibles.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Evaluación SSVC +1
Modificada
Explotación
Remediación
Monitoreo
Detectada
Fuente: OSV
Verificada
27 may 26
3 nov 26
11 nov 26
17 nov 26
19 nov 26
27 may 26
10 jul 26
23 ago 26
6 oct 26
19 nov 26
FechaFaseEventoDetalle
Divulgación Evaluación SSVC CISA-ADP · explotación ninguna
Divulgación Publicada CVE-2026-42790 divulgada · CVSS 7.6 (CNA)
Monitoreo Detectada Ingresó al índice
Divulgación Modificada Última actualización del registro
Monitoreo Fuente: OSV Registro visto por primera vez en OSV
Monitoreo Verificada Última verificación contra las fuentes
Resumen

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.

Affects Erlang/OTP TLS clients using the ssl application or public_key hostname verification when a DNS-constrained sub-CA is involved. Red Hat rates it high, matching CVSS 7.6. Fixed in 26.2.5.21.

¿Qué significa?When a leaf certificate has no DNS subjectAltName, Erlang/OTP falls back to the subject CommonName for hostname checks, which skips the name constraints of a DNS-constrained subordinate CA. A man-in-the-middle attacker who controls such a sub-CA key can present a certificate forged for a different domain that the TLS client accepts as valid.
¿Quién está afectado?The product ranges list Erlang/OTP from 19.3 up to but not including 26.2.5.21, and from 1.4 up to but not including 1.15.1.7. Only TLS clients using the ssl application or public_key hostname verification are in scope, so check the installed OTP version and whether those components are used.
Contexto

Condiciones y alcance

Condiciones necesarias para que el fallo sea explotable
01
The attacker controls or holds a DNS-constrained subordinate CA key.“if an attacker can control a DNS-constrained sub-CA key (legitimate delegation or compromise)”
02
The leaf certificate has no subjectAltName DNS name, so the CommonName fallback is used.“when 'Subject Alternative Name' is missing or has no domain name”
03
The affected client is an Erlang/OTP TLS client using the ssl application or public_key hostname verification.“This impacts the TLS clients using Erlang/OTP 'ssl' application”
¿Quién debe revisar?Teams running Erlang/OTP ssl or public_key hostname verification from OTP 19.3 up to the patched releases, accepting TLS peers under DNS-constrained sub-CAs.
MitigaciónThe 'ssl' 'verify_fun' option can be used ensure that the path validation will fail if the end entity certificate is missing the SAN-extension or has no domain name.
Vector CVSS 3.1

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · adp
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:H
BajaAlta
PrivilegiosPR:N
NingunoBajosAltos
InteracciónUI:N
NingunaRequerida
AlcanceS:U
CambiadoSin cambio
ConfidencialidadC:H
AltoBajoNinguno
IntegridadI:H
AltoBajoNinguno
DisponibilidadA:N
AltoBajoNinguno
Versiones

Rangos afectados

Afectada Corregida
public_key≥ 1.4 < 1.15.1.7
otp≥ 19.3 < 26.2.5.21
1.4
1.15.1.7
19.3
26.2.5.21
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
OTP
Corregida 1.15.1.7, 26.2.5.21 — —
Versiones corregidas1.15.1.726.2.5.21
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Registro
EscenarioGENERALEEF
MitigaciónThe verify_fun option in the ssl application can be used to ensure that TLS connections fail if the end-entity certificate is missing the subjectAltName extension or has no domain name. Do not use a verify_fun that accepts the name_not_permitted error.EEF
MitigaciónEnsure 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.redhat-SADP
solutionRHSA-2026:54757: Red Hat OpenStack Platform 16.2redhat-SADP
solutionRHSA-2026:39809: Red Hat OpenStack Services on OpenShift 18.0redhat-SADP
Referencias
Advisoryhttps://access.redhat.com/errata/RHSA-2026:54757
Advisoryhttps://access.redhat.com/errata/RHSA-2026:39809
Fabricantehttps://github.com/erlang/otp/security/advisories/GHSA-22cw-4ph4-6447
Fabricantehttps://www.erlang.org/doc/system/versions.html#order-of-versions
Parchehttps://github.com/erlang/otp/commit/0769050c69d73762672b0db1347b6993a5b31759
Parchehttps://github.com/erlang/otp/commit/fb67c6d1836f51105a96d8b769e71e4215a79457
Parchehttps://github.com/erlang/otp/commit/21abed64eb2026b5f82f432709e4e932f9be389a
Análisishttps://bugzilla.redhat.com/show_bug.cgi?id=2482286
Otrahttps://cna.erlef.org/cves/CVE-2026-42790.html
Otrahttps://osv.dev/vulnerability/EEF-CVE-2026-42790
Otrahttps://github.com/erlang/otp/commit/b0c245e8132bb13171e277b1af59c0cec00c9459
Otrahttps://access.redhat.com/security/cve/CVE-2026-42790
Ver 1 referencias más
Otrahttps://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42790.json

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.