CVE-2024-29452
Insecure deserialization in ROS2 Humble may allow code exec, disputed.
- CWE-502 (inferred)
- Design Defects
- Remote
An insecure deserialization vulnerability has been identified in ROS2 Humble Hawksbill in ROS_VERSION 2 and ROS_PYTHON_VERSION 3, allows attackers to execute arbitrary code and obtain sensitive information via crafted input to the Data Serialization and Deserialization Components, Inter-Process Communication Mechanisms, and Network Communication Interfaces. NOTE: this is disputed by multiple third parties who believe there was not reasonable evidence to determine the existence of a vulnerability.
- CWE
- CWE-502 (inferred)
- Published
- 2024-04-11
- OWASP
- A08 Software and Data Integrity Failures
- Orthogonal defect classification
- Interface
- Code defect classification
- Serialization Issues
- Category
- Design Defects
- Subcategory
- Vulnerable and Outdated Components
- Accessibility scope
- Remote
- Impact
- Arbitrary Code Execution
- Affected component
- ROS2
Solution
Upgrade ROS 2 Humble to the latest Humble release (e.g., Humble 2.3.0) where the deserialization issue is patched.
Vulnerable code sample
import pickle
def deserialize_message(raw_bytes):
# VULNERABLE: uses pickle.loads which can execute arbitrary code
obj = pickle.loads(raw_bytes)
return objPatched code sample
import pickle
import json
def deserialize_message(raw_bytes):
# FIX: replace pickle with json for safe deserialization
# assume the data is JSON-encoded UTF-8 bytes
obj = json.loads(raw_bytes.decode('utf-8'))
return objCite this entry
@misc{vaitp:cve202429452,
title = {{Insecure deserialization in ROS2 Humble may allow code exec, disputed.}},
author = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
year = {2024},
note = {VAITP Python Vulnerability Dataset, entry CVE-2024-29452},
howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2024-29452/}}
}
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 ::
