VAITP Dataset

← Back to the dataset

CVE-2024-30716

Insecure logging in ROS2 Dashing may expose sensitive data, though its existence is disputed.

  • CWE-532 (inferred)
  • Information Leakage
  • Remote

An insecure logging vulnerability in ROS2 Dashing Diademata ROS_VERSION 2 and ROS_PYTHON_VERSION 3, allows attacks to obtain sensitive information via inadequate security measures implemented within the logging mechanisms of ROS2. NOTE: this is disputed by multiple third parties who believe there was not reasonable evidence to determine the existence of a vulnerability.

CWE
CWE-532 (inferred)
Published
2024-04-10
OWASP
A02 Cryptographic Failures
Orthogonal defect classification
Interface
Code defect classification
Incorrect Interface
Category
Information Leakage
Subcategory
Information Disclosure
Accessibility scope
Remote
Impact
Information Disclosure
Affected component
ROS2

Solution

Upgrade ROS 2 Dashing Diademata to the latest patch release (ROS 2 Dashing 2.2.2) which addresses the insecure logging issue. If you cannot upgrade, mitigate by disabling ROS logging to files or redirecting logs to a secure, access‑controlled location and ensure that no sensitive data is logged.

Vulnerable code sample

import os
import rclpy
from rclpy.logging import get_logger

def start_node():
    rclpy.init()
    logger = get_logger('my_node')
    # VULNERABLE: logs sensitive environment variable
    logger.info(f"Node started with secret token: {os.getenv('SECRET_TOKEN')}")
    # node logic would go here
    rclpy.shutdown()

Patched code sample

import os
import rclpy
from rclpy.logging import get_logger

def start_node():
    rclpy.init()
    logger = get_logger('my_node')
    # FIX: avoid logging sensitive environment variable
    logger.info("Node started")
    # node logic would go here
    rclpy.shutdown()

Cite this entry

@misc{vaitp:cve202430716,
  title        = {{Insecure logging in ROS2 Dashing may expose sensitive data, though its existence is disputed.}},
  author       = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
  year         = {2024},
  note         = {VAITP Python Vulnerability Dataset, entry CVE-2024-30716},
  howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2024-30716/}}
}

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.