ZeroHour

CVE-2024-54146

PoC large

SQL Injection in Cacti host_templates.php via graph_template Parameter

CVSS 3.1
8.8 high
EPSS
41%p99
Published
()
Modified
AI analysis

Cacti, an open-source network performance and fault monitoring framework, contains a SQL injection flaw (CWE-89) in the template function of host_templates.php. The graph_template parameter is insufficiently sanitized before being used in SQL queries, so an attacker with low-privileged (authenticated) access to the Cacti web interface can send crafted parameter values to inject arbitrary SQL. Successful exploitation yields high-impact read, write, and potential disruption against the Cacti backend database (CVSS 8.8, AV:N/AC:L/PR:L/UI:N), potentially exposing stored monitoring data and credentials for further compromise. All Cacti deployments running a version prior to 1.2.29 are affected. A public security advisory with proof-of-concept details exists, EPSS places exploitation probability at 41% within 30 days (99th percentile), but the flaw is not yet in CISA's KEV catalog and no widespread confirmed exploitation is documented.

What to do: Upgrade Cacti to version 1.2.29 or later, which remediates the flaw. Until patched, restrict network access to the Cacti web UI to trusted users and networks, and review web access logs for anomalous or malformed graph_template values submitted to host_templates.php. Note the vulnerability requires authenticated access, so audit for low-privilege or default accounts that could be used to trigger it.

Affected
cactiall versions prior to 1.2.29 (fixed in 1.2.29)
Estimated exposure
largeon the order of tens of thousands of exposed Cacti servers (public internet scans have historically shown ~10k–50k visible instances; total deployments… — Internet-wide scan data (e.g., Shodan/Censys) consistently shows tens of thousands of Cacti web interfaces exposed publicly, and many additional instances run on internal networks as monitoring backends, so this is an order-of-magnitude…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

Cacti is an open source performance and fault management framework. Cacti has a SQL injection vulnerability in the template function of host_templates.php using the graph_template parameter. This vulnerability is fixed in 1.2.29.

Vendors
cacti
Products
cacti
Weakness
CWE-89
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

In the news

No ingested article mentions this CVE yet.