1. Accueil
  2. Vulnérabilités
  3. CVE-2024-42002

CVE-2024-42002

Unsafe use of eval() method in ros2 topic hz tool

Publiée le 28 sept. 2026 · modifiée le 9 nov. 2026 · Sources : NVD, CNA (éditeur ou attributeur), EPSS (FIRST)

Faible 36/100

Résumé

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.

Aucune traduction française : description d’origine affichée.

Produits et versions affectés

Open Source Robotics Foundation (1 ligne(s))
Open Source Robotics Foundation
ProduitVersionsCorrigé dansSource
Robot Operating System 2 (ROS 2) Versions non précisées — CNA (éditeur ou attributeur)

Correctif

Correctifsource officielle

No fixed release is available at the time of publication. A fix is proposed upstream in https://github.com/ros2/ros2cli/pull/1001.

Source : CNA (éditeur ou attributeur)

Contournement

Contournementsource officielle

Do not pass untrusted or unreviewed input to the --filter option of 'ros2 topic hz'.

Source : CNA (éditeur ou attributeur)

Savoir si vous êtes touché

Aucune méthode de vérification renseignée.

Chronologie

  1. — Publication de la CVE (cve)

Références

Provenance des données

Statut
NVD
Date de publication
NVD
Description
CNA (éditeur ou attributeur)
Score CVSS
CNA (éditeur ou attributeur)
Faiblesse (CWE)
CNA (éditeur ou attributeur)
Vecteur CVSS
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (CVSS 3.1, CNA:security@ubuntu.com)
Faiblesse
CWE-94 · Injection de commandes / code

Comment sont obtenues et calculées ces données