Security Vulnerability Report
中文
CVE-2026-41603 CVSS 7.4 HIGH

CVE-2026-41603

Published: 2026-04-28 10:16:03
Last Modified: 2026-04-28 18:42:11

Description

Improper Validation of Certificate with Host Mismatch vulnerability in Apache Thrift. This issue affects Apache Thrift: before 0.23.0. Users are recommended to upgrade to version 0.23.0, which fixes the issue.

CVSS Details

CVSS Score
7.4
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N

Configurations (Affected Products)

cpe:2.3:a:apache:thrift:*:*:*:*:*:*:*:* - VULNERABLE
Apache Thrift < 0.23.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import socket import ssl # Conceptual PoC for CVE-2026-41603 # This script demonstrates the behavior of a vulnerable Thrift client # that accepts a certificate with a hostname mismatch. def connect_vulnerable(target_host, target_port): # Create a standard SSL context context = ssl.create_default_context() # VULNERABILITY: The hostname check is disabled or not performed correctly. # In the vulnerable Apache Thrift < 0.23.0, this check might be missing. context.check_hostname = False # For demonstration, we might also skip verifying the CA chain if needed, # but the CVE specifically mentions Host Mismatch. # context.verify_mode = ssl.CERT_NONE print(f"[+] Attempting to connect to {target_host}:{target_port}...") try: with socket.create_connection((target_host, target_port)) as sock: with context.wrap_socket(sock, server_hostname=target_host) as ssock: print(f"[+] Connection established!") print(f"[+] Peer certificate: {ssock.getpeercert()}") print("[!] Vulnerability exploited: Connection accepted despite potential hostname mismatch.") return True except Exception as e: print(f"[-] Connection failed: {e}") return False if __name__ == "__main__": # Example usage (requires a server to test against) # connect_vulnerable("example.com", 443) pass

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-41603", "sourceIdentifier": "[email protected]", "published": "2026-04-28T10:16:03.113", "lastModified": "2026-04-28T18:42:10.847", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Improper Validation of Certificate with Host Mismatch vulnerability in Apache Thrift.\n\nThis issue affects Apache Thrift: before 0.23.0.\n\nUsers are recommended to upgrade to version 0.23.0, which fixes the issue."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N", "baseScore": 7.4, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.2, "impactScore": 5.2}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-297"}, {"lang": "en", "value": "CWE-306"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:apache:thrift:*:*:*:*:*:*:*:*", "versionEndExcluding": "0.23.0", "matchCriteriaId": "0CE7604A-DA43-44E3-9840-9E3696223DD5"}]}]}], "references": [{"url": "https://lists.apache.org/thread/lb4j0zyd5f3g36cos0wql925przpnwql", "source": "[email protected]", "tags": ["Mailing List", "Patch", "Release Notes"]}, {"url": "http://www.openwall.com/lists/oss-security/2026/04/28/7", "source": "af854a3a-2127-422b-91ae-364da2661108", "tags": ["Mailing List"]}]}}