ZeroDay Brief
CVE-2024-42002

A code injection vulnerability has been discovered in the Robot Operating System 2 (ROS 2) 'ros2topic' command-line tool, affecting all ROS 2 distributions from Crystal Clemmys up to and including Ly…

CVSS
8.4High
Chance of exploitation (EPSS)
0.16%
Published
Sep 28, 2026
In the news
Not yet

What to do

A serious code injection flaw that needs access to the machine itself. No attacks are reported yet; it can go in your normal patch cycle.

Action: Check the vendor's advisory in the references and apply updates as soon as they are available.

Affected versions
Open Source Robotics Foundation Robot Operating System 2 Ros 2
Crystal Clemmys; Dashing Diademata; Eloquent Elusor; Foxy Fitzroy; Galactic Geochelone; Humble Hawksbill; Iron Irwini; Jazzy Jalisco

Description

A code injection vulnerability has been discovered in the Robot Operating System 2 (ROS 2) 'ros2topic' command-line tool, affecting all ROS 2 distributions from Crystal Clemmys up to and including Lyrical Luth and Rolling Ridley. 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.

CWE-94CWE-95

Affected products

Get alerts for these →

No product list yet. It usually appears within a few days of publication.

Timeline 1

Latest change: CVE-2024-42002 published (CVSS 8.4) (Sep 28, 2026)

News, advisories, exploit code, scanner detection and exploitation, newest first.

Mon, Sep 28, 2026

  1. CVECVE-2024-42002 published (CVSS 8.4)CVE Program · 22:17 UTC

References 2

You are leaving ZeroDay Brief

This link goes to exploit code on a third-party site. We find these links automatically and do not test, review or vouch for them. They may contain malware or fake exploits.

We are not responsible for anything that happens if you open the page or run its code. Never run exploit code on systems you care about.

↑ ↓ moveEnter openEsc closeTry “CVE-2026”, “fortinet” or “ivanti”