{"id":"CVE-2024-41921","aliases":["DEBIAN-CVE-2024-41921","EUVD-2024-54797","GHSA-7mg9-54m6-qh35","UBUNTU-CVE-2024-41921"],"status":"published","title":"Unsafe use of eval() method in rostopic echo tool","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.","severity":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-12","score":0.00222,"percentile":0.12898,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-94","CWE-95"],"published":"2025-07-17T19:13:34Z","modified":"2026-11-02T12:02:44Z","affected":[{"source":"osv","ecosystem":"Debian:12","package":"ros-ros-comm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.15.15+ds-2","1.16.0+ds-1","1.16.0+ds-2","1.16.0+ds-3","1.16.0+ds-3.1","1.16.0+ds-3.1~exp1","1.16.0+ds-4","1.16.0+ds-5","1.16.0+ds-6","1.17.0+ds-1","1.17.0+ds-2","1.17.4+ds-1","1.17.4+ds-2","1.17.4+ds-3","1.17.4+ds-4"]},{"source":"osv","ecosystem":"Debian:13","package":"ros-ros-comm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.17.0+ds-2","1.17.4+ds-1","1.17.4+ds-2","1.17.4+ds-3","1.17.4+ds-4"]},{"source":"osv","ecosystem":"Debian:14","package":"ros-ros-comm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.17.0+ds-2","1.17.4+ds-1","1.17.4+ds-2","1.17.4+ds-3","1.17.4+ds-4"]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"ros-ros-comm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.11.16-2","1.11.16-3"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"ros-ros-comm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.12.6-2","1.13.3+ds1-1","1.13.5+ds1-1","1.13.5+ds1-2","1.13.5+ds1-3"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"ros-ros-comm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.14.3+ds1-5build2","1.14.3+ds1-8","1.14.3+ds1-10","1.14.3+ds1-11","1.14.3+ds1-11ubuntu2","1.14.3+ds1-11ubuntu3","1.14.3+ds1-11ubuntu5"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"ros-ros-comm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.15.9+ds1-7","1.15.9+ds1-7build1","1.15.13+ds1-6build1","1.15.14+ds-2","1.15.14+ds-2build1","1.15.14+ds-2build2"]}],"products":[{"vendor":"open source robotics foundation","product":"robot operating system (ros)"},{"vendor":"openrobotics","product":"robot_operating_system"}],"references":[{"url":"https://www.ros.org/blog/noetic-eol/","tags":["product","Product","article","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-41921"},{"url":"https://www.ros.org/blog/noetic-eol"},{"url":"https://github.com/advisories/GHSA-7mg9-54m6-qh35"},{"url":"https://security-tracker.debian.org/tracker/CVE-2024-41921","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2024-41921","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2024-41921","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2024-41921","title":"Unsafe use of eval() method in rostopic echo tool","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.","status":"published","published":"2025-07-17T19:13:34.025Z","modified":"2025-07-18T08:05:08.288Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"cna"}],"cwes":["CWE-95","CWE-94"],"updated_at":"2026-11-02T14:34:03.661584Z"}],"euvd":[{"id":"EUVD-2024-54797","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.","status":"published","published":"2025-07-17T19:13:34Z","modified":"2025-07-18T08:05:08Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T20:32:07.018976Z"}],"ghsa":[{"id":"GHSA-7mg9-54m6-qh35","title":"A code injection vulnerability has been discovered in the Robot Operating System (ROS) 'rostopic'...","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.","status":"published","published":"2025-07-17T21:32:15Z","modified":"2025-07-17T21:32:22Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T15:03:03.424111Z"}],"nvd":[{"id":"CVE-2024-41921","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.","status":"published","published":"2025-07-17T20:15:27.75Z","modified":"2026-06-17T07:48:27.323Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"secondary"}],"cwes":["CWE-94","CWE-95"],"updated_at":"2026-11-02T14:10:47.073504Z"}],"osv":[{"id":"CVE-2024-41921","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.","status":"published","published":"2025-07-17T20:15:27.75Z","modified":"2026-04-10T05:15:57.401745Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:41.963899Z"},{"id":"DEBIAN-CVE-2024-41921","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.","status":"published","published":"2025-07-17T20:15:27.75Z","modified":"2026-11-02T12:02:44.605493905Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:45:43.156294Z"},{"id":"UBUNTU-CVE-2024-41921","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.","status":"published","published":"2025-07-17T20:15:00Z","modified":"2026-04-22T15:01:39.383792Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T16:54:58.679387Z"}]}}
