CVE-2024-41148: Unsafe use of eval() method in rostopic hz tool
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
Remediation
Information
Event History
Frequently Asked Questions
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.
How do I fix CVE-2024-41148?
To mitigate CVE-2024-41148, upgrade to a secure version of ROS that is beyond Noetic Ninjemys.
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.
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.
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.