CVE-2026-85088
published medium CVSS 4.0 · 6.9Apache Thrift, Apache Thrift: The C++ and D clients fall back to the certificate Common Name when subjectAltName entries are present but do not match
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Apache Software Foundation | — | thriftApache Thrift · 0 to < 0.25.0 · Other versions: unaffected | Affected | Not stated | apache |
| Apache Software Foundation | — | D language bindingsApache Thrift · 0 to < 0.25.0 · Other versions: unaffected | Affected | Not stated | apache |
| Alpine Linux | edge | thrift | Fixed | 0.25.0-r0 | Package fix record |
Description
Improper Validation of Certificate with Host Mismatch in the C++ and D libraries of Apache Thrift. Both libraries install a default access manager for client sockets — TSSLSocketFactory does so in C++, and the accessManager property does so in D — which compares the peer certificate against the host name that was connected to. That comparison walks the subjectAltName dNSName entries first and consults the certificate Common Name afterwards. A name that does not match yields a "skip" result rather than a rejection, so a certificate whose subjectAltName entries are all present and all non-matching falls through to the Common Name, which can then satisfy the check. RFC 6125 section 6.4.4, and RFC 9525 section 2, require that the Common Name is not consulted when a dNSName subjectAltName is present. A certificate carrying subjectAltName entries for one name and a Common Name for another is therefore accepted for a connection to the second name. Exploitation requires an attacker positioned on the network path who holds a certificate that chains to a certificate authority in the client's trust store and whose Common Name matches the connected host name. Public certificate authorities have not issued on Common Name alone for many years, so this is principally a concern for deployments using a private or enterprise public-key infrastructure. This issue affects the C++ library of Apache Thrift from 0.7.0 through 0.24.0 and the D library from 0.9.0 through 0.24.0. Users should upgrade to 0.25.0.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.9 / 10
- Severity
- medium
- Provider
- apache · cna
- Vector string
- CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:U
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Apache Software Foundation | Apache Thrift | 0 to < 0.25.0 (affected · semver)Default: unaffected | apache · cna |
| Apache Software Foundation | Apache Thrift | 0 to < 0.25.0 (affected · semver)Default: unaffected | apache · cna |
Weaknesses
2- CWE-295 CWE-295 Improper certificate validation
- CWE-297 CWE-297 Improper validation of certificate with host mismatch
References
2Provider assertions
2apache · cna
Apache Thrift, Apache Thrift: The C++ and D clients fall back to the certificate Common Name when subjectAltName entries are present but do not match
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 96764bd9d3e6fc2c5590d99afe3341159cde541057ef38579e84d96b7577fdf8
- Ingested
- 02 Oct 2026, 19:09:27 UTC
- Source record
- Official CVE record