RCE in Openrobotics Robot Operating System

CVE-2024-41921

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.

Vulnerability class: RCE (Remote Code Execution)

EPSS: 0.002 (8.9th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.

Affected products

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2024-41921?
CVE-2024-41921 is a high-severity vulnerability in Openrobotics Robot Operating System, classified under Code Injection. CVSS score: 7.8/10. Published 2025-07-17.
How severe is CVE-2024-41921?
High severity. CVSS v3 base score is 7.8 out of 10.