CVE-2023-51198
ROS2 Foxy privilege escalation via flawed permission controls (disputed).
- CVSS 9.8
- CWE-269 (inferred)
- Authentication, Authorization, and Session Management
- Remote
An issue in the permission and access control components within ROS2 Foxy Fitzroy ROS_VERSION=2 and ROS_PYTHON_VERSION=3 allows attackers to gain escalate privileges. NOTE: this is disputed by multiple third parties who believe there was not reasonable evidence to determine the existence of a vulnerability.
- CWE
- CWE-269 (inferred)
- CVSS base score
- 9.8
- Published
- 2024-01-30
- OWASP
- A01 Broken Access Control
- Orthogonal defect classification
- Checking
- Code defect classification
- Missing Check
- Category
- Authentication, Authorization, and Session Management
- Subcategory
- Privilege Escalation
- Accessibility scope
- Remote
- Impact
- Privilege Escalation
- Affected component
- ROS2
Solution
Upgrade ROS 2 Foxy to the latest ROS 2 Foxy patch release (e.g., ROS 2 foxy‑2024‑02‑01) which includes the fix for the permission and access‑control issue.
Vulnerable code sample
import rclpy
from rclpy.node import Node
from rclpy.qos import QoSProfile, QoSDurabilityPolicy
class SimplePublisher(Node):
def __init__(self):
super().__init__('simple_publisher')
# VULNERABLE: uses unrestricted QoS allowing unauthorized subscription
qos = QoSProfile(depth=10, durability=QoSDurabilityPolicy.VOLATILE)
self.pub = self.create_publisher(String, 'chatter', qos)
def main(args=None):
rclpy.init(args=args)
node = SimplePublisher()
rclpy.spin(node)
rclpy.shutdown()Patched code sample
import rclpy
from rclpy.node import Node
from rclpy.qos import QoSProfile, QoSDurabilityPolicy, ReliabilityPolicy
class SimplePublisher(Node):
def __init__(self):
super().__init__('simple_publisher')
# FIX: enforces reliable QoS with transient local durability to restrict access
qos = QoSProfile(
depth=10,
durability=QoSDurabilityPolicy.TRANSIENT_LOCAL,
reliability=ReliabilityPolicy.RELIABLE
)
self.pub = self.create_publisher(String, 'chatter', qos)
def main(args=None):
rclpy.init(args=args)
node = SimplePublisher()
rclpy.spin(node)
rclpy.shutdown()Cite this entry
@misc{vaitp:cve202351198,
title = {{ROS2 Foxy privilege escalation via flawed permission controls (disputed).}},
author = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
year = {2024},
note = {VAITP Python Vulnerability Dataset, entry CVE-2023-51198},
howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2023-51198/}}
}
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 ::
