9.8

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

Analyzed
AliasesUBUNTU-CVE-2026-40079DEBIAN-CVE-2026-40079
Published 24-06-2026Last modified 25-06-2026

Vulnerability summary

CVE-2026-40079 is a critical (CVSS 9.8) vulnerability in cacti. EPSS estimates a 1.69% chance of exploitation in the next 30 days, higher than 77% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 8.6, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
9.8/10
010
Critical · v3.1 (NVD)
EPSS score
1.69%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Timeline

  1. 24-06-2026
    PublishedVulnerability first disclosed.
  2. 25-06-2026
    Last modifiedVulnerability information updated.

Description

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 escape_command() function. The escape_command() function at lib/rrd.php is a no-op: it returns $command unchanged. The command line built by rrdtool_function_graph() is passed through this function and then to shell_exec($full_commandline). The risk is in __rrd_execute() where text_format values from graph templates (which may contain host variable substitutions) reach shell_exec without adequate escaping. This issue has been addressed in version 1.2.31.

CVSS metrics

6 scores · 4 sources · 2 versions

EPSS trend

Probability

1.69%

Chance of exploitation in the next 30 days

Percentile

77%

Versus all other CVEs

30-day change

No change 0.00 pp

From 1.69% on 04-10-2026

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, administrative account, no user interaction (CVSS vector). Other conditions: not stated in public data.

Cacti1 product
Debian1 product
  • cactiAll versions (No fix recorded) | < 1.2.31+ds1-1
Ubuntu1 product
  • cactiAll versions (No fix recorded)

3 vendors · 3 products

References

5 links