CVE-2024-41921 HIGH

CVE-2024-41921: Unsafe use of eval() method in rostopic echo tool

Vendor Open Source Robotics Foundation
Product Robot Operating System (ROS)
Weakness CWE-95 · Eval injection
Published July 17, 2025
Last update July 18, 2025

CVSS base score

7.8/10
Attack vector Local
Attack complexity Low
Privileges required None
User interaction Required
Confidentiality High
Integrity High

CVSS vector

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

What the vulnerability does

01Description

A code injection vulnerability has been discovered in the Robot Operating System (ROS) 'rostopic' command-line tool, affecting ROS distributions Noetic Ninjemys and earlier. The vulnerability lies in the 'echo' verb, which allows a user to introspect a ROS topic and accepts a user-provided Python expression via the --filter option. This input is passed directly to the eval() function without sanitization, allowing a local user to craft and execute arbitrary code.

Key dates

02Disclosure timeline

July 17, 2025 CVE published
July 18, 2025 Record updated