CVE-2024-30697
Plaintext ROS2 Galactic messages enable potential MITM data exposure (disputed).
- CWE-319 (inferred)
- Information Leakage
- Remote
An issue was discovered in ROS2 Galactic Geochelone in ROS_VERSION 2 and ROS_PYTHON_VERSION 3, where the system transmits messages in plaintext, allowing attackers to access sensitive information via a man-in-the-middle attack. 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-09
- 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 the Humble Hawksbill release (or later) which includes the fix for this issue.
Vulnerable code sample
import socket
def transmit_message(host: str, port: int, data: bytes):
# VULNERABLE: sends data over plaintext TCP
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
s.connect((host, port))
s.sendall(data)Patched code sample
import socket
import ssl
def transmit_message(host: str, port: int, data: bytes):
# FIX: encrypts data using TLS
context = ssl.create_default_context()
with socket.create_connection((host, port)) as raw_sock:
with context.wrap_socket(raw_sock, server_hostname=host) as s:
s.sendall(data)Cite this entry
@misc{vaitp:cve202430697,
title = {{Plaintext ROS2 Galactic messages enable potential MITM data exposure (disputed).}},
author = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
year = {2024},
note = {VAITP Python Vulnerability Dataset, entry CVE-2024-30697},
howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2024-30697/}}
}
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 ::
