CVE-2024-41148
Unknown Unknown - Not Provided
BaseFortify

Publication date: 2025-07-17

Last updated on: 2025-08-26

Assigner: Canonical Ltd.

Description
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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2025-07-17
Last Modified
2025-08-26
Generated
2026-05-07
AI Q&A
2025-07-17
EPSS Evaluated
2026-05-05
NVD
EUVD
Affected Vendors & Products
Showing 4 associated CPEs
Vendor Product Version / Range
openrobotics robot_operating_system indigo_igloo
openrobotics robot_operating_system kinetic_kame
openrobotics robot_operating_system melodic_morenia
openrobotics robot_operating_system noetic_ninjemys
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-94 The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.
CWE-95 The product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes code syntax before using the input in a dynamic evaluation call (e.g. "eval").
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

This vulnerability is a code injection flaw in the Robot Operating System (ROS) 'rostopic' command-line tool, specifically in the 'hz' verb. It occurs because the tool accepts a user-provided Python expression via the --filter option and passes it directly to the eval() function without sanitization. This allows a local user to execute arbitrary code by crafting a malicious expression.


How can this vulnerability impact me? :

The vulnerability can allow a local attacker to execute arbitrary code on the affected system with the privileges of the user running the 'rostopic' tool. This can lead to complete compromise of confidentiality, integrity, and availability of the system, potentially allowing data theft, system manipulation, or denial of service.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart