Skip to main content

CVE-2026-85088: CWE-295 Improper certificate validation in Apache Software Foundation Apache Thrift

0
Medium
VulnerabilityCVE-2026-85088cvecve-2026-85088cwe-295cwe-297
Published: 10/02/2026 (10/02/2026, 11:37:14 UTC)
Source: CVE Database V5
Vendor/Project: Apache Software Foundation
Product: Apache Thrift

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.

CVSS v4.0

Score 6.9medium

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

Apache Software Foundation

Apache Thrift

Affected versions
>=0 <0.25.0
GitHub Actionsmore threats →ai
apache/thrift
pkg:github/apache/thrift
Affected versions
<0.25.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/02/2026, 12:01:46 UTC

Technical Analysis

Apache Thrift's C++ and D libraries use a default access manager for client sockets that validates peer certificates by first checking subjectAltName dNSName entries and then the Common Name if no match is found. According to RFC 6125 section 6.4.4 and RFC 9525 section 2, the Common Name must not be consulted when subjectAltName dNSName entries are present. However, the libraries accept certificates where subjectAltName entries do not match but the Common Name does, allowing a certificate with mismatched subjectAltName but matching Common Name to be accepted. Exploitation requires an attacker on the network path with a certificate chaining to a trusted CA and a Common Name matching the connected host. Public CAs no longer issue certificates based solely on Common Name, so this mainly affects private or enterprise PKI deployments. The vulnerability affects Apache Thrift C++ versions 0.7.0 through 0.24.0 and D versions 0.9.0 through 0.24.0. The issue is fixed in version 0.25.0.

Potential Impact

An attacker positioned on the network path who possesses a certificate chaining to a trusted CA and with a Common Name matching the connected host name can bypass proper hostname validation. This could allow man-in-the-middle attacks in environments using private or enterprise PKI where certificates with mismatched subjectAltName and Common Name are accepted. Public CA-issued certificates are unlikely to be exploitable due to modern issuance policies. The CVSS 4.0 score is 6.9 (medium severity), reflecting the network attack vector, high complexity, and partial impact on confidentiality and integrity.

Mitigation Recommendations

Users should upgrade Apache Thrift C++ and D libraries to version 0.25.0 or later, where this certificate validation issue is fixed. No other mitigations are indicated. Patch status is confirmed by the vendor advisory specifying upgrade to 0.25.0.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
apache
Date Reserved
2026-09-02T23:36:14.032Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6abf99b2a43b0b3b89b2694f

Added to database: 10/02/2026, 11:46:58 UTC

Last enriched: 10/02/2026, 12:01:46 UTC

Last updated: 10/03/2026, 04:45:56 UTC

Views: 12

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses