CVE-2024-30710
Plaintext ROS2 Dashing messages expose data to MitM interception.
- CWE-319 (inferred)
- Information Leakage
- Remote
An issue was discovered in ROS2 Dashing Diademata in ROS_VERSION 2 and ROS_PYTHON_VERSION 3, where the system transmits messages in plaintext. This flaw exposes sensitive information, making it vulnerable to man-in-the-middle (MitM) attacks, and allowing attackers to easily intercept and access this data. NOTE: this is disputed by multiple third parties who believe there was not reasonable evidence to determine the existence of a vulnerability.
- CWE
- CWE-319 (inferred)
- Published
- 2024-04-10
- OWASP
- A02 Cryptographic Failures
- Orthogonal defect classification
- Interface
- Code defect classification
- Missing Interface
- Category
- Information Leakage
- Subcategory
- Information Disclosure
- Accessibility scope
- Remote
- Impact
- Information Disclosure
- Affected component
- ROS2
Solution
Upgrade ROS 2 to version Humble Hawksbill (or any later release) which adds encrypted DDS transport and fixes the plaintext‑message issue.
Vulnerable code sample
import socket
def publish_data(host: str, port: int, payload: bytes) -> None:
"""Send ROS2-like message payload over a plain TCP socket."""
# VULNERABLE: transmits data in plaintext, susceptible to eavesdropping
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as sock:
sock.connect((host, port))
sock.sendall(payload)Patched code sample
import socket
import ssl
def publish_data(host: str, port: int, payload: bytes) -> None:
"""Send ROS2-like message payload over an encrypted TLS socket."""
# FIX: encrypts transmission with TLS to prevent plaintext leakage
context = ssl.create_default_context()
with socket.create_connection((host, port)) as raw_sock:
with context.wrap_socket(raw_sock, server_hostname=host) as sock:
sock.sendall(payload)Cite this entry
@misc{vaitp:cve202430710,
title = {{Plaintext ROS2 Dashing messages expose data to MitM interception.}},
author = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
year = {2024},
note = {VAITP Python Vulnerability Dataset, entry CVE-2024-30710},
howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2024-30710/}}
}
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 ::
