VAITP Dataset

← Back to the dataset

CVE-2024-29440

Unauthorized ROS2 Humble node access vulnerability (disputed).

  • CWE-284 (inferred)
  • Authentication, Authorization, and Session Management
  • Remote

An unauthorized access vulnerability has been discovered in ROS2 Humble Hawksbill versions where ROS_VERSION is 2 and ROS_PYTHON_VERSION is 3. This vulnerability could potentially allow a malicious user to gain unauthorized access to multiple ROS2 nodes remotely. Unauthorized 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-03-25
OWASP
A01 Broken Access Control
Orthogonal defect classification
Interface
Code defect classification
Missing Interface
Category
Authentication, Authorization, and Session Management
Subcategory
Insecure Authentication Mechanisms
Accessibility scope
Remote
Impact
Unauthorized Access
Affected component
ROS2

Solution

Upgrade ROS 2 Humble Hawksbill to version 2.14.0 or later, which includes the security fixes for the reported unauthorized‑access issue.

Vulnerable code sample

import rclpy
from rclpy.node import Node

class SimpleNode(Node):
    def __init__(self):
        super().__init__('simple_node')
        # VULNERABLE: allows unauthenticated connections to ROS2 DDS
        self.declare_parameter('allow_unauthenticated', True)
        self._setup_communication()

    def _setup_communication(self):
        self.publisher_ = self.create_publisher(
            rclpy.qos.QoSProfile(depth=10), 'chatter', 10)

def main():
    rclpy.init()
    node = SimpleNode()
    rclpy.spin(node)
    rclpy.shutdown()

Patched code sample

import rclpy
from rclpy.node import Node

class SimpleNode(Node):
    def __init__(self):
        super().__init__('simple_node')
        # FIX: disable unauthenticated connections
        self.declare_parameter('allow_unauthenticated', False)
        self._setup_communication()

    def _setup_communication(self):
        self.publisher_ = self.create_publisher(
            rclpy.qos.QoSProfile(depth=10), 'chatter', 10)

def main():
    rclpy.init()
    node = SimpleNode()
    rclpy.spin(node)
    rclpy.shutdown()

Cite this entry

@misc{vaitp:cve202429440,
  title        = {{Unauthorized ROS2 Humble node access vulnerability (disputed).}},
  author       = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
  year         = {2024},
  note         = {VAITP Python Vulnerability Dataset, entry CVE-2024-29440},
  howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2024-29440/}}
}

Download this entry as JSON Download the whole dataset

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 ::

Before you use the VAITP AI models

Please read and accept the following disclaimer:

By choosing "I understand and accept", you acknowledge that you understand and agree to these terms.