CVE-2024-41148: Unsafe use of eval() method in rostopic hz 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 'hz' verb, which reports the publishing rate of a 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
ros rostopic<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:12 PM
Data Sourced
via MITRE·07:12 PM
RemedyDescriptionSeverityWeakness
Data Sourced
via NVD·08:15 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-41148?

CVE-2024-41148 has been classified as a high-severity vulnerability due to its potential for code injection.

2

How do I fix CVE-2024-41148?

To mitigate CVE-2024-41148, upgrade to a secure version of ROS that is beyond Noetic Ninjemys.

3

Which versions of ROS are affected by CVE-2024-41148?

CVE-2024-41148 affects the Robot Operating System (ROS) distributions up to and including Noetic Ninjemys.

4

What is the impact of CVE-2024-41148?

The impact of CVE-2024-41148 allows unauthorized code execution via the 'hz' verb in the 'rostopic' command-line tool.

5

Is there a workaround for CVE-2024-41148?

A temporary workaround for CVE-2024-41148 involves avoiding the use of the 'hz' verb until a secure version is applied.

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