CVE-2024-30674
Unauthorized ROS2 Iron access flaw enabling remote node control, disputed evidence.
- CWE-284 (inferred)
- Authentication, Authorization, and Session Management
- Remote
Unauthorized access vulnerability in ROS2 Iron Irwini in ROS_VERSION is 2 and ROS_PYTHON_VERSION is 3, allows remote attackers to gain control of multiple ROS2 nodes. Unauthorized information access to these nodes could result in compromised system integrity, the execution of arbitrary commands, and disclosure of sensitive information. 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-08
- 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
- Unauthorized Access
- Affected component
- ROS2
Solution
Upgrade ROS 2 to Iron Irwini 2.2.0 (or later), which contains the security fix for the reported unauthorized‑access issue.
Vulnerable code sample
import rclpy
from rclpy.node import Node
class SimpleNode(Node):
def __init__(self):
# VULNERABLE: creates node without security, allowing any remote access
super().__init__('simple_node')
self.subscription = self.create_subscription(
msg_type=rclpy.qos.QoSProfile(depth=10),
topic='example_topic',
callback=self.listener_callback,
qos_profile=10)
def listener_callback(self, msg):
# process incoming message
pass
def main():
rclpy.init()
node = SimpleNode()
rclpy.spin(node)
rclpy.shutdown()Patched code sample
import rclpy
from rclpy.node import Node
from rclpy.security import SecurityContext, SecurityOptions
class SimpleNode(Node):
def __init__(self):
# FIX: enforce ROS2 security context to prevent unauthorized node access
sec_opts = SecurityOptions(security_context=SecurityContext())
super().__init__('simple_node', security_options=sec_opts)
self.subscription = self.create_subscription(
msg_type=rclpy.qos.QoSProfile(depth=10),
topic='example_topic',
callback=self.listener_callback,
qos_profile=10)
def listener_callback(self, msg):
# process incoming message
pass
def main():
rclpy.init()
node = SimpleNode()
rclpy.spin(node)
rclpy.shutdown()Cite this entry
@misc{vaitp:cve202430674,
title = {{Unauthorized ROS2 Iron access flaw enabling remote node control, disputed evidence.}},
author = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
year = {2024},
note = {VAITP Python Vulnerability Dataset, entry CVE-2024-30674},
howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2024-30674/}}
}
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 ::
