Every CVE Search/ Get API key

CVE-2024-41921

Unsafe use of eval() method in rostopic echo tool

7.8 High

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.

Attack profile

How easy it is to exploit

Attack vector
Local
Complexity
Low
Privileges needed
None
User interaction
Required

What an attacker can affect

Confidentiality
High
Integrity
High
Availability
High

Exploit likelihood

0.22%Up 0.2 points since Jul 18, 2025
90%50%10%1%

What each source reports

CVE List Score used 7.8

Unsafe use of eval() method in rostopic echo 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 '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.

Record
CVE-2024-41921
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weakness
CWE-95, CWE-94
Updated
2026-11-02
EUVDEUVD-2024-54797 7.8

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.

Record
EUVD-2024-54797
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
GitHub AdvisoriesGHSA-7mg9-54m6-qh35 7.8

A code injection vulnerability has been discovered in the Robot Operating System (ROS) 'rostopic'...

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.

Record
GHSA-7mg9-54m6-qh35
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weakness
CWE-94
Updated
2026-11-02
NVD 7.8

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.

Record
CVE-2024-41921
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weakness
CWE-94, CWE-95
Updated
2026-11-02
OSV 7.8

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.

Record
CVE-2024-41921
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVDEBIAN-CVE-2024-41921 7.8

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.

Record
DEBIAN-CVE-2024-41921
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVUBUNTU-CVE-2024-41921 7.8

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.

Record
UBUNTU-CVE-2024-41921
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
ros-ros-comm
Debian:12
All versions, plus listed versions
1.15.15+ds-21.16.0+ds-11.16.0+ds-21.16.0+ds-31.16.0+ds-3.1
Show 10 moreShow less
1.16.0+ds-3.1~exp11.16.0+ds-41.16.0+ds-51.16.0+ds-61.17.0+ds-11.17.0+ds-21.17.4+ds-11.17.4+ds-21.17.4+ds-31.17.4+ds-4
None known
ros-ros-comm
Debian:13
All versions, plus listed versions
1.17.0+ds-21.17.4+ds-11.17.4+ds-21.17.4+ds-31.17.4+ds-4
None known
ros-ros-comm
Debian:14
All versions, plus listed versions
1.17.0+ds-21.17.4+ds-11.17.4+ds-21.17.4+ds-31.17.4+ds-4
None known
ros-ros-comm
Ubuntu:16.04:LTS
All versions, plus listed versions
1.11.16-21.11.16-3
None known
ros-ros-comm
Ubuntu:18.04:LTS
All versions, plus listed versions
1.12.6-21.13.3+ds1-11.13.5+ds1-11.13.5+ds1-21.13.5+ds1-3
None known
ros-ros-comm
Ubuntu:20.04:LTS
All versions, plus listed versions
1.14.3+ds1-5build21.14.3+ds1-81.14.3+ds1-101.14.3+ds1-111.14.3+ds1-11ubuntu21.14.3+ds1-11ubuntu31.14.3+ds1-11ubuntu5
None known
ros-ros-comm
Ubuntu:22.04:LTS
All versions, plus listed versions
1.15.9+ds1-71.15.9+ds1-7build11.15.13+ds1-6build11.15.14+ds-21.15.14+ds-2build11.15.14+ds-2build2
None known

History

History
RecordedChangedSources
first indexedCVE List, EUVD, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2024-41921 is a high vulnerability (CVSS 7.8) in Open Source Robotics Foundation Robot Operating System (ros), published July 17, 2025. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.22%, the 12th percentile. No source names a fixed version.

References

MoveEnter Open