CVEfocus › CVE database › CVE-2024-41148

CVE-2024-41148Unsafe use of eval() method in rostopic hz tool

CVSS 7.8 HighEPSS 0.4% (higher than 21% of CVEs)Published 2025-07-17Updated 2025-07-18Assigner: canonical

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.

CWE-94CWE-95

What to do

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

3Fix pending
1Under investigation
3Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 22.04ros-ros-commUnder investigationUBUNTU-CVE-2024-41148
Ubuntu 20.04ros-ros-commFix pendingUBUNTU-CVE-2024-41148
Ubuntu 18.04ros-ros-commFix pendingUBUNTU-CVE-2024-41148
Ubuntu 16.04ros-ros-commFix pendingUBUNTU-CVE-2024-41148
Debian 14ros-ros-commWill not fix
Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned.
DEBIAN-CVE-2024-41148
Debian 13ros-ros-commWill not fix
Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned.
DEBIAN-CVE-2024-41148
Debian 12ros-ros-commWill not fix
Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned.
DEBIAN-CVE-2024-41148

What the vendor says

As published in the CVE record by canonical, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Solution: All ROS (1) versions are EOL, upgrade to a ROS 2 version.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.