CVE-2026-40079: Cacti: Command Injection via escape_command() no-op in RRDtool execution

Published Jun 24, 2026
·
Updated

Cacti is an open source performance and fault management framework. Versions 1.2.30 and prior are vulnerable to Command Injection due to lack of sanitization in the escapecommand() function. The escapecommand() function at lib/rrd.php is a no-op: it returns $command unchanged. The command line built by rrdtoolfunctiongraph() is passed through this function and then to shellexec($fullcommandline). The risk is in rrdexecute() where textformat values from graph templates (which may contain host variable substitutions) reach shellexec without adequate escaping. This issue has been addressed in version 1.2.31.

Affected Software

2 affected components
Cacti Cacti<=1.2.30
Cacti Cacti<1.2.31

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade cacti to a version that resolves this vulnerability.

    Fixed in 1.2.31
  2. Compensating control

    If upgrading from Cacti 1.2.30 (or prior) to 1.2.31 is not immediately possible, mitigate command injection risk by ensuring graph template text_format values and any host variable substitutions used in templates are not attacker-controlled (so that values passed into rrdtool_function_graph()/__rrd_execute() cannot contain shell metacharacters).

Event History

Jun 24, 2026
CVE Published
via MITRE·11:26 PM
Data Sourced
via MITRE·11:26 PM
DescriptionWeakness
Jun 25, 2026
Data Sourced
via NVD·12:17 AM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-40079?

CVE-2026-40079 has a risk rating of 80, indicating a high severity level.

2

How do I fix CVE-2026-40079?

To remediate CVE-2026-40079, upgrade to Cacti version 1.2.31 or later where the vulnerability has been addressed.

3

What type of vulnerability is CVE-2026-40079?

CVE-2026-40079 is classified as an OS Command Injection vulnerability, specifically related to command execution issues.

4

Which versions of Cacti are affected by CVE-2026-40079?

Cacti versions 1.2.30 and prior are vulnerable to CVE-2026-40079.

5

What impact does CVE-2026-40079 have on Cacti users?

CVE-2026-40079 allows attackers to execute arbitrary commands on the server, potentially compromising system security.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203