# CVE-2026-39955: Cacti SQL injection in graph_view.php

Source: https://junglewise.ai/threats/cve-2026-39955-cacti-sql-injection-in-graph-view-php  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-06-24. Updated: 2026-06-24  
License: CC BY 4.0 with a link back

CVE-2026-39955 · Severity: critical · CVSS 9.8 · Published 2026-06-24

Cacti, an open-source network monitoring and fault management framework, contains a critical security flaw that allows unauthorized individuals to interfere with its database. By sending a specially crafted request to the system, an attacker can gain full access to sensitive data, modify records, or disrupt the monitoring service entirely. This vulnerability is particularly dangerous because it can be exploited over the network without needing a username or password.

Technologies: [Cacti](https://junglewise.ai/threats/technologies/cacti). Vendors: [Cacti](https://junglewise.ai/threats/vendors/cacti).

## Quick answers

**Is CVE-2026-39955 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-39955 being exploited in the wild.

**How severe is CVE-2026-39955?** Critical severity, with a CVSS score of 9.8, published 24 June 2026.

**Which products and versions are affected?** Cacti <= 1.2.30.

**Is there a fix for CVE-2026-39955?** A patch was published on 2026-06-24: Fix released in version 1.2.31 Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-39955 attacked?** It is attacked over the network, in a network appliance.

**Am I affected by CVE-2026-39955?** Check whether you run Cacti at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

A pre-authentication SQL injection vulnerability exists in Cacti versions 1.2.30 and prior within the 'graph_view.php' component. The root cause is the use of an unanchored regular expression in the 'FILTER_VALIDATE_REGEXP' function, which fails to properly sanitize user-supplied input before it is used in a database query. A remote, unauthenticated attacker can exploit this by sending a malicious network request to the affected endpoint. Successful exploitation allows for arbitrary SQL command execution, potentially leading to full database compromise, data exfiltration, or service disruption. The vulnerability is addressed in version 1.2.31 through improved input validation and defense-in-depth hardening.

## Affected products

- Cacti Cacti <= 1.2.30

## Timeline

- 2026-06-19: advisory: GitHub Security Advisory GHSA-gp82-qhrg-crv7 published
- 2026-06-24: disclosed: CVE-2026-39955 published to NVD
- 2026-06-24: patched: Fix released in version 1.2.31

## References

- [https://github.com/Cacti/cacti/commit/4c09efaebf3a9faec66969d0b5c4aceaf397f37f](https://github.com/Cacti/cacti/commit/4c09efaebf3a9faec66969d0b5c4aceaf397f37f)
- [https://github.com/Cacti/cacti/security/advisories/GHSA-gp82-qhrg-crv7](https://github.com/Cacti/cacti/security/advisories/GHSA-gp82-qhrg-crv7)

## Related threats

- [Cacti user enumeration via error messages](https://junglewise.ai/threats/cve-2026-49442-cacti-is-an-open-source-performance-and-fault-management)
- [Cacti authenticated stored SQL injection in automation tree rule](https://junglewise.ai/threats/cve-2026-46531-cacti-is-an-open-source-performance-and-fault-management)
- [Cacti input string validation bypass and RCE](https://junglewise.ai/threats/cve-2026-39902-cacti-is-an-open-source-performance-and-fault-management)
- [Cacti package import signature validation bypass](https://junglewise.ai/threats/cve-2026-40941-cacti-package-import-signature-validation-bypass)
- [Cacti path traversal in Report format_file parameter](https://junglewise.ai/threats/cve-2026-40084-cacti-path-traversal-in-report-format-file-parameter)
