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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Open Source Robotics Foundation | Robot Operating System (ROS) | Noetic Ninjemys, Melodic Morenia, Kinetic Kame, Indigo Igloo | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | ros-ros-comm | No fix yet | — |
| Debian 13 | ros-ros-comm | No fix yet | — |
| Debian 12 | ros-ros-comm | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 22.04 LTS | ros-ros-comm | No fix yet | — |
| Ubuntu 20.04 LTS | ros-ros-comm | No fix yet | — |
| Ubuntu 18.04 LTS | ros-ros-comm | No fix yet | — |
| Ubuntu 16.04 LTS | ros-ros-comm | No fix yet | — |