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

Published Jul 17, 2025
·
Updated

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.

Affected Software

5 affected components
Open Source Robotics Foundation Robot Operating System (ROS)<Noetic Ninjemys
Openrobotics Robot Operating System=indigo_igloo
Openrobotics Robot Operating System=kinetic_kame
Openrobotics Robot Operating System=melodic_morenia
Openrobotics Robot Operating System=noetic_ninjemys

Remediation

Information

All ROS (1) versions are EOL, upgrade to a ROS 2 version.

Event History

Jul 17, 2025
CVE Published
via MITRE·07:13 PM
Data Sourced
via MITRE·07:13 PM
RemedyDescriptionSeverityWeakness
Data Sourced
via NVD·08:15 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-41921?

CVE-2024-41921 is classified as a code injection vulnerability that potentially allows unauthorized code execution.

2

How do I fix CVE-2024-41921?

To mitigate CVE-2024-41921, upgrade to the latest ROS distribution that is beyond Noetic Ninjemys.

3

What versions of ROS are affected by CVE-2024-41921?

CVE-2024-41921 affects ROS distributions Noetic Ninjemys and earlier.

4

What components of ROS does CVE-2024-41921 impact?

CVE-2024-41921 specifically impacts the 'rostopic' command-line tool within the Robot Operating System.

5

Can CVE-2024-41921 be exploited remotely?

Yes, CVE-2024-41921 can be exploited if an attacker has access to the ROS 'rostopic echo' command that processes malicious input.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203