CVE-2024-30690
Unauthorized node injection in ROS2 Galactic allows privilege escalation (disputed).
- CWE-284 (inferred)
- Authentication, Authorization, and Session Management
- Remote
An unauthorized node injection vulnerability has been identified in ROS2 Galactic Geochelone versions where ROS_VERSION is 2 and ROS_PYTHON_VERSION is 3, allows remote attackers to escalate privileges. 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-09
- OWASP
- A01 Broken Access Control
- 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 to ROS 2 Galactic Geochelone version 2.4.0, which includes the fix for the reported node‑injection issue.
Vulnerable code sample
import os
import rclpy
from rclpy.node import Node
class SimpleNode(Node):
def __init__(self):
# VULNERABLE: accepts unvalidated node name from environment, enabling unauthorized node injection
node_name = os.getenv('ROS2_NODE_NAME', 'default_node')
super().__init__(node_name)
def main():
rclpy.init()
node = SimpleNode()
rclpy.spin(node)
rclpy.shutdown()Patched code sample
import os
import rclpy
from rclpy.node import Node
ALLOWED_NODES = {'sensor_node', 'controller_node', 'default_node'}
class SimpleNode(Node):
def __init__(self):
# FIX: validate node name against whitelist to prevent unauthorized node injection
raw_name = os.getenv('ROS2_NODE_NAME', 'default_node')
node_name = raw_name if raw_name in ALLOWED_NODES else 'default_node'
super().__init__(node_name)
def main():
rclpy.init()
node = SimpleNode()
rclpy.spin(node)
rclpy.shutdown()Cite this entry
@misc{vaitp:cve202430690,
title = {{Unauthorized node injection in ROS2 Galactic allows 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-30690},
howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2024-30690/}}
}
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 ::
