Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

nvd логотип

CVE-2026-42790

Опубликовано: 27 мая 2026
Источник: nvd
CVSS3: 8.1
CVSS3: 7.4
EPSS Низкий

Описание

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-commonN

Уязвимые конфигурации

Конфигурация 1

Одно из

cpe:2.3:a:erlang:erlang\/otp:*:*:*:*:*:*:*:*
Версия от 19.3 (включая) до 26.2.5.21 (исключая)
cpe:2.3:a:erlang:erlang\/otp:*:*:*:*:*:*:*:*
Версия от 27.0 (включая) до 27.3.4.12 (исключая)
cpe:2.3:a:erlang:erlang\/otp:*:*:*:*:*:*:*:*
Версия от 28.0 (включая) до 28.5.0.1 (исключая)
cpe:2.3:a:erlang:erlang\/otp:*:*:*:*:*:*:*:*
Версия от 29.0 (включая) до 29.0.1 (исключая)

EPSS

Процентиль: 26%
0.00338
Низкий

8.1 High

CVSS3

7.4 High

CVSS3

Дефекты

CWE-295
CWE-295

Связанные уязвимости

CVSS3: 8.1
ubuntu
2 месяца назад

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-commonN...

CVSS3: 7.4
redhat
2 месяца назад

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-commonN...

msrc
2 месяца назад

nameConstraints DNS bypass via subject CommonName fallback in public_key hostname verification

CVSS3: 8.1
debian
2 месяца назад

Improper Certificate Validation vulnerability in Erlang OTP public_key ...

suse-cvrf
2 месяца назад

Security update for erlang

EPSS

Процентиль: 26%
0.00338
Низкий

8.1 High

CVSS3

7.4 High

CVSS3

Дефекты

CWE-295
CWE-295