CVE-2024-30724
Remote code execution in ROS Kinetic Kame (ROS 1, Python 3) – disputed.
- CWE-287 (inferred)
- Authentication, Authorization, and Session Management
- Remote
An issue was discovered in ROS Kinetic Kame in ROS_VERSION 1 and ROS_PYTHON_VERSION 3, allows remote attackers to execute arbitrary code, escalate privileges, obtain sensitive information, and gain unauthorized access to multiple ROS nodes. NOTE: this is disputed by multiple third parties who believe there was not reasonable evidence to determine the existence of a vulnerability.
- CWE
- CWE-287 (inferred)
- Published
- 2024-04-10
- OWASP
- A08 Software and Data Integrity Failures
- Orthogonal defect classification
- Interface
- Code defect classification
- Missing Interface
- Category
- Authentication, Authorization, and Session Management
- Subcategory
- Privilege Escalation
- Accessibility scope
- Remote
- Impact
- Arbitrary Code Execution
- Affected component
- ROS Kinetic Kame
Solution
Upgrade ROS Kinetic Kame to the latest patch release (ROS Kinetic Kame 1.3.2) which includes the security fix for this issue.
Vulnerable code sample
import rospy
from std_msgs.msg import String
def publish_message(topic_name):
# VULNERABLE: unsanitized topic name leads to privilege escalation
pub = rospy.Publisher(topic_name, String, queue_size=10)
msg = String(data="Hello")
pub.publish(msg)
def handle_request(request):
# Assume request.topic is provided by a remote client
publish_message(request.topic)Patched code sample
import rospy
from std_msgs.msg import String
def publish_message(topic_name):
# FIX: validate topic name against allowed list
allowed_topics = {"/allowed/topic1", "/allowed/topic2"}
if topic_name not in allowed_topics:
raise ValueError("Unauthorized topic")
pub = rospy.Publisher(topic_name, String, queue_size=10)
msg = String(data="Hello")
pub.publish(msg)
def handle_request(request):
# Assume request.topic is provided by a remote client
publish_message(request.topic)Cite this entry
@misc{vaitp:cve202430724,
title = {{Remote code execution in ROS Kinetic Kame (ROS 1, Python 3) – disputed.}},
author = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
year = {2024},
note = {VAITP Python Vulnerability Dataset, entry CVE-2024-30724},
howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2024-30724/}}
}
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 ::
