CVE-2024-41148
published high CVSS 3.1 · 7.8Unsafe use of eval() method in rostopic hz tool
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Open Source Robotics Foundation | — | rostopicRobot Operating System (ROS) · Noetic Ninjemys · Melodic Morenia · Kinetic Kame · Indigo Igloo · Other versions: unaffected · Platforms: Linux, Windows, MacOS | Affected | Not stated | canonical |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- canonical · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Open Source Robotics Foundation | Robot Operating System (ROS) | Noetic Ninjemys (affected)Melodic Morenia (affected)Kinetic Kame (affected)Indigo Igloo (affected)Default: unaffected | canonical · cna |
Weaknesses
2- CWE-95 CWE-95 Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')
- CWE-94 CWE-94: Improper Control of Generation of Code ('Code Injection')
References
1Provider assertions
2canonical · cna
Unsafe use of eval() method in rostopic hz tool
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- d0fdf1c5d30365a04f173a347d417c05c31811f600dfee2150205939622b4390
- Ingested
- 23 Sep 2026, 08:26:16 UTC
- Source record
- Official CVE record