PT-2026-52142 · Cacti · Cacti

·

CVE-2026-40079

·

Published

2026-06-24

·

Updated

2026-07-20

CVSS v3.1

9.8

Critical

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions Cacti versions prior to 1.2.31
Description Command Injection occurs due to insufficient sanitization in the escape command() function located at lib/rrd.php, which acts as a no-op by returning the $command unchanged. The command line constructed by rrdtool function graph() is passed through this function and subsequently executed via shell exec($full commandline). The risk is present in rrd execute(), where text format values from graph templates, potentially containing host variable substitutions, reach shell exec without proper escaping.
Recommendations Update to version 1.2.31.

Exploit

Fix

Argument Injection

OS Command Injection

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-40079
GHSA-XQ98-376R-HV9J

Affected Products

Cacti