CVE-2024-30662
ROS Melodic transmits messages in plaintext, exposing data to potential MitM attacks.
- CWE-319 (inferred)
- Information Leakage
- Remote
An issue was discovered in ROS (Robot Operating System) Melodic Morenia in ROS_VERSION 1 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-08
- OWASP
- A02 Cryptographic Failures
- Orthogonal defect classification
- Interface
- Code defect classification
- Missing Check
- Category
- Information Leakage
- Subcategory
- Information Disclosure
- Accessibility scope
- Remote
- Impact
- Information Disclosure
- Affected component
- ROS
Solution
Upgrade ROS Melodic Morenia to the latest patch release (e.g., ROS Melodic 2022‑04‑28) where TLS/SSL support for node communication is enabled, and configure all nodes to use encrypted transports (e.g., roslaunch with –transport=ssl). This mitigates the plaintext message transmission issue.
Vulnerable code sample
import rospy
from geometry_msgs.msg import Pose
def publish_pose():
# VULNERABLE: sends ROS messages over plaintext TCPROS
pub = rospy.Publisher('/robot/pose', Pose, queue_size=10)
rospy.init_node('pose_publisher', anonymous=True)
pose = Pose()
pose.position.x = 1.0
pose.position.y = 2.0
pose.position.z = 3.0
pub.publish(pose)Patched code sample
import rospy
from geometry_msgs.msg import Pose
from ros_comm.ssl_transport import SSLPublisher # hypothetical SSL transport module
def publish_pose():
# FIX: uses encrypted SSL transport for ROS messages
pub = SSLPublisher('/robot/pose', Pose, queue_size=10)
rospy.init_node('pose_publisher', anonymous=True)
pose = Pose()
pose.position.x = 1.0
pose.position.y = 2.0
pose.position.z = 3.0
pub.publish(pose)Cite this entry
@misc{vaitp:cve202430662,
title = {{ROS Melodic transmits messages in plaintext, exposing data to potential MitM attacks.}},
author = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
year = {2024},
note = {VAITP Python Vulnerability Dataset, entry CVE-2024-30662},
howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2024-30662/}}
}
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 ::
