CVE-2024-30723
Unauthorized ROS Kinetic node injection allows remote privilege escalation (disputed).
- CWE-284 (inferred)
- Authentication, Authorization, and Session Management
- Remote
An unauthorized node injection vulnerability has been identified in ROS Kinetic Kame in ROS_VERSION 1 and ROS_PYTHON_VERSION 3, allows remote attackers to escalate privileges and inject malicious ROS nodes into the system due to insecure permissions. NOTE: this is disputed by multiple third parties who believe there was not reasonable evidence to determine the existence of a vulnerability.
- CWE
- CWE-284 (inferred)
- Published
- 2024-04-10
- OWASP
- A05 Security Misconfiguration
- Orthogonal defect classification
- Interface
- Code defect classification
- Incorrect Interface
- Category
- Authentication, Authorization, and Session Management
- Subcategory
- Privilege Escalation
- Accessibility scope
- Remote
- Impact
- Privilege Escalation
- Affected component
- ROS
Solution
Upgrade ROS Kinetic Kame to the latest Kinetic release (e.g., 1.12.14) where the node‑permission handling was corrected.
Vulnerable code sample
import os
import subprocess
def launch_ros_node():
# VULNERABLE: launches node with inherited user privileges, allowing privilege escalation
cmd = ["rosrun", "my_pkg", "my_node"]
subprocess.Popen(cmd) # insecure: inherits caller's UID/GIDPatched code sample
import os
import subprocess
import pwd
import grp
def launch_ros_node():
# FIX: drop privileges before launching the node
def drop_privileges():
# switch to a non‑privileged user, e.g., 'rosuser'
pw = pwd.getpwnam('rosuser')
os.setgid(pw.pw_gid)
os.setuid(pw.pw_uid)
os.setgroups([pw.pw_gid])
cmd = ["rosrun", "my_pkg", "my_node"]
subprocess.Popen(cmd, preexec_fn=drop_privileges)Cite this entry
@misc{vaitp:cve202430723,
title = {{Unauthorized ROS Kinetic node injection allows remote privilege escalation (disputed).}},
author = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
year = {2024},
note = {VAITP Python Vulnerability Dataset, entry CVE-2024-30723},
howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2024-30723/}}
}
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 ::
