CVE-2024-30736
Insecure deserialization in ROS Kinetic Kame may allow code execution, disputed.
- CWE-502 (inferred)
- Input Validation and Sanitization
- Remote
An insecure deserialization vulnerability has been identified in ROS Kinetic Kame in ROS_VERSION 1 and ROS_PYTHON_VERSION 3, allows attackers to execute arbitrary code and obtain sensitive information via 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-10
- OWASP
- A08 Software and Data Integrity Failures
- Orthogonal defect classification
- Checking
- Code defect classification
- Serialization Issues
- Category
- Input Validation and Sanitization
- Subcategory
- Insecure Parsing or Deserialization
- Accessibility scope
- Remote
- Impact
- Arbitrary Code Execution
- Affected component
- ROS
Solution
Upgrade to ROS Noetic Ninja (ROS 1, Python 3) – it contains the fixes for the disputed insecure‑deserialization issue.
Vulnerable code sample
import socket
import pickle
def receive_message(host: str, port: int):
"""Receive a serialized ROS message over TCP."""
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
s.connect((host, port))
data = s.recv(4096)
# VULNERABLE: using pickle.loads on untrusted data
message = pickle.loads(data)
return messagePatched code sample
import socket
import json
def receive_message(host: str, port: int):
"""Receive a serialized ROS message over TCP."""
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
s.connect((host, port))
data = s.recv(4096)
# FIX: using json.loads to avoid code execution
message = json.loads(data.decode('utf-8'))
return messageCite this entry
@misc{vaitp:cve202430736,
title = {{Insecure deserialization in ROS Kinetic Kame may allow code execution, disputed.}},
author = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
year = {2024},
note = {VAITP Python Vulnerability Dataset, entry CVE-2024-30736},
howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2024-30736/}}
}
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 ::
