CVE-2024-30707
Unauthorized ROS2 node injection allowing privilege escalation (disputed).
- CWE-284 (inferred)
- Authentication, Authorization, and Session Management
- Remote
Unauthorized node injection vulnerability in ROS2 Dashing Diademata in ROS_VERSION 2 and ROS_PYTHON_VERSION 3, allows remote attackers to escalate privileges and inject malicious ROS2 nodes into the system. NOTE: this is disputed by multiple third parties who believe there was not reasonable evidence to determine the existence of a vulnerability.
- CWE
- CWE-284 (inferred)
- Published
- 2024-04-10
- OWASP
- A08 Software and Data Integrity Failures
- Orthogonal defect classification
- Interface
- Code defect classification
- Incorrect Interface
- Category
- Authentication, Authorization, and Session Management
- Subcategory
- Privilege Escalation
- Accessibility scope
- Remote
- Impact
- Privilege Escalation
- Affected component
- ROS2
Solution
Upgrade ROS 2 to a newer, patched release (e.g., ROS 2 Humble 2.5.0 or later) which resolves the unauthorized node injection issue.
Vulnerable code sample
import rclpy
from rclpy.node import Node
def start_node_from_request(node_name: str) -> Node:
# VULNERABLE: creates node with unvalidated name, allowing unauthorized injection
rclpy.init()
return Node(node_name)Patched code sample
import rclpy
from rclpy.node import Node
def start_node_from_request(node_name: str) -> Node:
# FIX: validate node name to prevent unauthorized injection
rclpy.init()
if not node_name.isidentifier() or len(node_name) > 50:
raise ValueError("Invalid node name")
return Node(node_name)Cite this entry
@misc{vaitp:cve202430707,
title = {{Unauthorized ROS2 node injection allowing privilege escalation (disputed).}},
author = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
year = {2024},
note = {VAITP Python Vulnerability Dataset, entry CVE-2024-30707},
howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2024-30707/}}
}
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 ::
