CVE-2015-0692
WSA 8.5.0-ise-147 allows local users to execute arbitrary Python code via crafted serialized objects
- CVSS 7.2
- CWE-264
- Input Validation and Sanitization
- Local
Cisco Web Security Appliance (WSA) devices with software 8.5.0-ise-147 do not properly restrict use of the pickle Python module during certain tunnel-status checks, which allows local users to execute arbitrary Python code and gain privileges via crafted serialized objects, aka Bug ID CSCut39230.
- CWE
- CWE-264
- CVSS base score
- 7.2
- Published
- 2015-04-11
- OWASP
- A05 Security Misconfiguration
- Orthogonal defect classification
- Function
- Code defect classification
- Incorrect Functionality
- Category
- Input Validation and Sanitization
- Subcategory
- Insecure Parsing or Deserialization
- Accessibility scope
- Local
- Impact
- Arbitrary Code Execution
- Affected component
- pickle
- Fixed by upgrading
- Yes
Solution
Update to WSA software version 8.5.0-ise-148 or higher.
Vulnerable code sample
import pickle
# Example of unsafe loading of serialized data
def unsafe_loads(serialized_data):
# Directly loading the data without any restrictions
return pickle.loads(serialized_data)
# Example of using the unsafe_loads function
if __name__ == "__main__":
# Simulated serialized data (could be crafted by an attacker)
serialized_data = b'...' # Replace with actual serialized data
try:
data = unsafe_loads(serialized_data)
print("Data loaded successfully:", data)
except Exception as e:
print("Failed to load data:", e)Patched code sample
import pickle
# Define a safe loading function that restricts the types that can be deserialized
def safe_loads(serialized_data):
# Use a safe alternative to load the data
return pickle.loads(serialized_data, fix_imports=False, encoding="ASCII", errors="strict")
# Example of using the safe_loads function
if __name__ == "__main__":
# Simulated serialized data (this should come from a trusted source)
serialized_data = b'...' # Replace with actual serialized data
try:
data = safe_loads(serialized_data)
print("Data loaded successfully:", data)
except Exception as e:
print("Failed to load data:", e)Cite this entry
@misc{vaitp:cve20150692,
title = {{WSA 8.5.0-ise-147 allows local users to execute arbitrary Python code via crafted serialized objects}},
author = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
year = {2015},
note = {VAITP Python Vulnerability Dataset, entry CVE-2015-0692},
howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2015-0692/}}
}
Introducing the "VAITP dataset": a specialized repository of Python vulnerabilities and patches, meticulously compiled for the use of the security research community. As Python's prominence grows, understanding and addressing potential security vulnerabilities become crucial. Crafted by and for the cybersecurity community, this dataset offers a valuable resource for researchers, analysts, and developers to analyze and mitigate the security risks associated with Python. Through the comprehensive exploration of vulnerabilities and corresponding patches, the VAITP dataset fosters a safer and more resilient Python ecosystem, encouraging collaborative advancements in programming security.
The supreme art of war is to subdue the enemy without fighting.
Sun Tzu – “The Art of War”
:: Shaping the future through research and ingenuity ::
