# CVE-2024-41148: Unsafe use of eval() method in rostopic hz tool

- Severity: High 7.8 (CVSS:3.1, scored by canonical) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2025-07-17T19:12:54.440Z
- Modified: 2026-06-17T07:47:22.200Z
- Weaknesses: CWE-94, CWE-95
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: 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.

(As written by CVE List.)

## Affected

- rostopic: Noetic Ninjemys; Melodic Morenia; Kinetic Kame; Indigo Igloo
- openrobotics robot_operating_system: indigo_igloo; kinetic_kame; melodic_morenia; noetic_ninjemys

## References

- <https://www.ros.org/blog/noetic-eol/> (product)

## Sources

- CVE List: [CVE-2024-41148](https://www.cve.org/CVERecord?id=CVE-2024-41148), CVE Terms of Use, modified 2025-07-18
- NVD: [CVE-2024-41148](https://nvd.nist.gov/vuln/detail/CVE-2024-41148), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-41148 · Whole record: https://cve.day/CVE-2024-41148.json · Rebuilt by cve.day 2026-11-25T22:58:52.820Z
