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, 27.3.4.12, 28.5.0.1, and 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.
総合評価: CVE-2026-42790 は低リスク(39.5/100)。CVSS 深刻度は高。悪用される可能性が高い(EPSS 0.34%、26 パーセンタイル) 推奨対応: 悪用情報と EPSS の推移を監視し、必要に応じて優先度を見直してください。
リスクは変動します。再評価に基づき、本ページの表示内容を更新しています。
EPSS は日次で悪用されやすさの相対度合いを推定します。パーセンタイルは採点済み CVE の中での相対位置(高いほど相対的に深刻)を示します。
| # | 日付 | 旧 EPSS スコア | 新 EPSS スコア | Δ(新 − 旧) |
|---|---|---|---|---|
| 1 | 2026-06-30 | 0.24% | 0.34% | +0.10% |
| 2 | 2026-06-15 | 0.03% | 0.24% | +0.21% |
| 3 | 2026-05-28 | — | 0.03% | — |
EPSS の全履歴 (全 3 件)
この CVE の CVSS 指標。
| ベーススコア | バージョン | 深刻度 | ベクトル | 悪用しやすさ | 影響 | スコアの出典 |
|---|---|---|---|---|---|---|
| 7.6 | 4.0 | HIGH |
|
— | — | 6b3ad84c-e1a6-4bf7-a703-f496b71e49db |
| 8.1 | 3.1 | HIGH |
|
2.8 | 5.2 | [email protected] |
| 7.4 | 3.1 | HIGH |
|
2.2 | 5.2 | 0b0ca135-0b70-47e7-9f44-1890c2a1c46c |
| vendor | priority | summary | link |
|---|---|---|---|
debian
|
not yet assigned | CVE-2026-42790 not yet assigned priority: Debian including 1 source packages (erlang), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): open 3, resolved 2. | https://security-tracker.debian.org/tracker/CVE-2026-42790 |
suse
|
high | — | https://www.suse.com/security/cve/CVE-2026-42790/ |
ubuntu
|
medium | CVE-2026-42790 medium priority: Ubuntu including 1 source packages (erlang), 9 status rows across 9 suites (bionic, focal, jammy, noble, questing, resolute, trusty, upstream, xenial): needs-triage 8, released 1. | https://ubuntu.com/security/CVE-2026-42790 |
| ベンダー | 製品 | バージョン | 生の CPE |
|---|---|---|---|
| erlang | erlang\/otp | >= 19.3, < 26.2.5.21 | cpe:2.3:a:erlang:erlang\/otp:*:*:*:*:*:*:*:* |
| erlang | erlang\/otp | >= 27.0, < 27.3.4.12 | cpe:2.3:a:erlang:erlang\/otp:*:*:*:*:*:*:*:* |
| erlang | erlang\/otp | >= 28.0, < 28.5.0.1 | cpe:2.3:a:erlang:erlang\/otp:*:*:*:*:*:*:*:* |
| erlang | erlang\/otp | >= 29.0, < 29.0.1 | cpe:2.3:a:erlang:erlang\/otp:*:*:*:*:*:*:*:* |