CVE & CISA-KEV Catalog

CVE-2024-42002

HIGH
8.4
CVSS v3
NVD

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.

How to fix

No published remediation has been found for this vulnerability's affected products yet.

Mitigation guidance may be in the linked vendor advisories in the References section below.

TridentStack Control tracks known vulnerabilities across your Windows, macOS, and Linux fleet and shows the fix as soon as one is published. See how it works

CVSS v3 Vector

Exploitability

Attack VectorLocal
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Exploit Intelligence

0.16%probability of exploitation in 30 days
5thpercentile

Low risk: more likely to be exploited than 5% of all known CVEs.

References

Other references2

Related Vulnerabilities

Other CWE-94 (Code Injection) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2017-9841Critical9.8100%KEVFix
CVE-2015-1635Critical9.8100%KEV-
CVE-2022-22954Critical9.8100%KEV + Ransom-
CVE-2025-49704High8.8100%KEV + RansomFix
CVE-2025-3248Critical9.8100%KEV + RansomFix
CVE-2021-22204Medium6.8100%KEVFix

Common questions

How do I fix CVE-2024-42002?

No published fix for CVE-2024-42002 has been found yet. Check the linked vendor advisories for guidance as it becomes available.

Is CVE-2024-42002 being actively exploited?

Not that we know of. CVE-2024-42002 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 0.16% is the estimated probability that it will be exploited in the next 30 days. That is higher than 5% of all scored CVEs.

How severe is CVE-2024-42002?

CVE-2024-42002 has a CVSS v3 base score of 8.4, rated high. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.

Embed a live status badge for CVE-2024-42002
CVE-2024-42002 severity badge

Markdown

[![CVE-2024-42002](https://tridentstack.com/cve/badge/CVE-2024-42002.svg)](https://tridentstack.com/cve/CVE-2024-42002)

HTML

<a href="https://tridentstack.com/cve/CVE-2024-42002"><img src="https://tridentstack.com/cve/badge/CVE-2024-42002.svg" alt="CVE-2024-42002"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Run a free CVE scan on your fleetStart freeThis CVE lookup is free and always will be.

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2026-09-30.