{"id":"CVE-2024-41148","aliases":["DEBIAN-CVE-2024-41148","EUVD-2024-54798","GHSA-f577-ch35-2wcx","UBUNTU-CVE-2024-41148"],"status":"published","title":"Unsafe use of eval() method in rostopic hz 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 '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.","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-11","score":0.00222,"percentile":0.12899,"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:12:54Z","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-41148"},{"url":"https://www.ros.org/blog/noetic-eol"},{"url":"https://github.com/advisories/GHSA-f577-ch35-2wcx"},{"url":"https://security-tracker.debian.org/tracker/CVE-2024-41148","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2024-41148","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2024-41148","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2024-41148","title":"Unsafe use of eval() method in rostopic hz 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 '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.","status":"published","published":"2025-07-17T19:12:54.44Z","modified":"2025-07-18T08:04:55.109Z","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-54798","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.","status":"published","published":"2025-07-17T19:12:54Z","modified":"2025-07-18T08:04:55Z","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-f577-ch35-2wcx","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 '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.","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-41148","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.","status":"published","published":"2025-07-17T20:15:27.57Z","modified":"2026-06-17T07:47:22.2Z","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-41148","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.","status":"published","published":"2025-07-17T20:15:27.57Z","modified":"2026-04-10T05:13:38.564023Z","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-41148","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.","status":"published","published":"2025-07-17T20:15:27.57Z","modified":"2026-11-02T12:02:44.525933239Z","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-41148","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.","status":"published","published":"2025-07-17T20:15:00Z","modified":"2026-04-22T15:02:07.819018Z","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"}]}}
