CVE-2024-29439
Unauthorized ROS2 Humble node injection allowing remote privilege escalation.
- CWE-284 (inferred)
- Authentication, Authorization, and Session Management
- Remote
An unauthorized node injection vulnerability has been identified in ROS2 Humble Hawksbill 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 Humble to version 2.13.0 (or later), which includes the fix for the disputed unauthorized node‑injection issue.
Vulnerable code sample
import rclpy
from rclpy.node import Node
def launch_node(node_name: str) -> Node:
# VULNERABLE: accepts unvalidated node name, allowing unauthorized node injection
rclpy.init()
return Node(node_name)Patched code sample
import rclpy
from rclpy.node import Node
ALLOWED_NODES = {"sensor_node", "controller_node"}
def launch_node(node_name: str) -> Node:
# FIX: validate node name against whitelist to prevent unauthorized injection
if node_name not in ALLOWED_NODES:
raise ValueError("Unauthorized node name")
rclpy.init()
return Node(node_name)Cite this entry
@misc{vaitp:cve202429439,
title = {{Unauthorized ROS2 Humble node injection allowing remote privilege escalation.}},
author = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
year = {2024},
note = {VAITP Python Vulnerability Dataset, entry CVE-2024-29439},
howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2024-29439/}}
}
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 ::
