Cyber Resilience

CVE-2025-66399

RCE in Cacti ≤ 1.2.29

Published
02 December 2025
Modified
05 December 2025
Patch / advisory
CVSS Score v4 7.4
Click a component to see what it means
Raw vectorCVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
EPSS Score 0.11 95th percentile
Risk Priority 46 floored blend · peak EPSS

Summary

CVE-2025-66399 is a high-severity Command Injection (CWE-77) vulnerability in Cacti Cacti. Its CVSS base score is 7.4 (High).

Operationally, exploitation aligns with the MITRE ATT&CK technique Command and Scripting Interpreter (T1059); ranked in the top 5% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.

The strongest mitigations our analysis identified map to SA-11 (Developer Testing and Evaluation) and SI-10 (Information Input Validation) — see the control section below for these in your framework.

Deeper analysis AI-assisted summary

Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.

CVE-2025-66399 is an input-validation vulnerability in the SNMP device configuration functionality of Cacti, an open source performance and fault management framework. Affecting versions prior to 1.2.29, the flaw allows an authenticated Cacti user to supply crafted SNMP community strings containing control characters, such as newlines. These inputs are accepted without sanitization, stored verbatim in the database, and later embedded into backend SNMP operations. The issue is classified under CWE-77 (Command Injection) with a CVSS v3.1 base score of 8.8 (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H).

An attacker with authenticated access to Cacti, requiring only low privileges, can exploit this vulnerability by injecting malicious SNMP community strings during device configuration. When Cacti performs subsequent SNMP operations, the unsanitized strings are passed to downstream SNMP tooling or wrappers. In environments where these tools interpret newline-separated tokens as command boundaries, the vulnerability enables unintended command execution with the privileges of the Cacti process, potentially leading to high confidentiality, integrity, and availability impacts over the network with low complexity and no user interaction.

The official GitHub Security Advisory (GHSA-c7rr-2h93-7gjf) confirms the vulnerability is fixed in Cacti version 1.2.29 through improved input validation of SNMP community strings. Security practitioners should upgrade to 1.2.29 or later, review SNMP configurations for anomalous community strings, and consider restricting authenticated user permissions on SNMP device management functions as an interim mitigation.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

Cacti is an open source performance and fault management framework. Prior to 1.2.29, there is an input-validation flaw in the SNMP device configuration functionality. An authenticated Cacti user can supply crafted SNMP community strings containing control characters (including newlines) that…

more

are accepted, stored verbatim in the database, and later embedded into backend SNMP operations. In environments where downstream SNMP tooling or wrappers interpret newline-separated tokens as command boundaries, this can lead to unintended command execution with the privileges of the Cacti process. This vulnerability is fixed in 1.2.29.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

T1059 Command and Scripting Interpreter Execution
Adversaries may abuse command and script interpreters to execute commands, scripts, or binaries.
T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
T1059.001 PowerShell Execution
Adversaries may abuse PowerShell commands and scripts for execution.
T1059.003 Windows Command Shell Execution
Adversaries may abuse the Windows command shell for execution.
T1059.004 Unix Shell Execution
Adversaries may abuse Unix shell commands and scripts for execution.
T1059.008 Network Device CLI Execution
Adversaries may abuse scripting or built-in command line interpreters (CLI) on network devices to execute malicious command and payloads.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2026-39938Same product: Cacti Cacti
CVE-2025-22604Same product: Cacti Cacti
CVE-2026-40079Same product: Cacti Cacti
CVE-2024-43363Same product: Cacti Cacti
CVE-2022-46169Same product: Cacti Cacti
CVE-2023-49085Same product: Cacti Cacti
CVE-2025-24368Same product: Cacti Cacti
CVE-2026-39899Same product: Cacti Cacti
CVE-2025-26520Same product: Cacti Cacti
CVE-2026-39951Same product: Cacti Cacti

Affected Assets

cacti
cacti
≤ 1.2.29

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)

Detect
Catch it (NIST detect / respond)

Harden
Shrink the surface (DISA STIG)

Validate
Prove the fix (OWASP ASVS)
  • V1.2.3
  • V1.2.5
  • V1.2.8
  • V1.2.9

Mitigating Controls (NIST 800-53 r5) AI

Developer testing and evaluation can discover command-construction flaws before deployment.

Input validation directly stops construction of commands from untrusted data containing special elements.

Secure engineering principles include proper neutralization and safe command construction practices.

Mitigating Controls (NIST CSF 2.0) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→CSF cross-walk (authority under review) — links open the control.

PR.PS-06 mostly match
prevents

Secure SDLC practices directly require input validation and neutralization that prevent command injection.

DE.CM-09 partial match
prevents

Runtime monitoring of software and data can detect anomalous command execution resulting from injection.

ID.RA-01 partial match
prevents

Identifying recorded vulnerabilities enables remediation of command-injection flaws before exploitation.

Mitigating Controls (ISO/IEC 27001:2022 Annex A) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→ISO cross-walk (authority under review) — links open the control.

prevents

Secure coding standards require proper escaping and parameterization of commands, directly eliminating CWE-77.

finds

Security testing in development catches command-injection vulnerabilities before release.

prevents

Secure development life cycle mandates input validation and command construction practices that directly prevent command injection.

prevents

Application security requirements explicitly call for controls against injection flaws including command injection.

prevents

Secure architecture principles reduce the attack surface but do not prescribe the specific neutralization techniques needed.

none

Environment separation limits the blast radius of an exploited command injection but does not prevent the flaw itself.

References