CVE-2025-66399
JSON

7.4high

SNMP Command Injection leads to RCE in Cacti

Severity
7.4high CVSS:4.0 by GitHub_M
Exploit likelihood
10.8% (higher than 95% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M

Description

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 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.

Affected

Product or packageVersionsReported by
Cacti cacti< 1.2.29, before 1.2.29CVE List, NVD

All scores

GitHub_M7.4high CVSS:4.0CVSS: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
NVD8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-77

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total.

What each source says

CVE List

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 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.

NVD (es)

Cacti es un framework de código abierto para la gestión de rendimiento y fallos. Versiones anteriores a 1.2.29, existe una falla de validación de entrada en la funcionalidad de configuración de dispositivos SNMP. Un usuario autenticado de Cacti puede proporcionar cadenas de comunidad SNMP manipuladas que contienen caracteres de control (incluyendo saltos de línea) que son aceptadas, almacenadas textualmente en la base de datos, y posteriormente incrustadas en operaciones SNMP de backend. En entornos donde las herramientas o wrappers SNMP posteriores interpretan los tokens separados por saltos de línea como límites de comando, esto puede llevar a una ejecución de comandos no intencionada con los privilegios del proceso de Cacti. Esta vulnerabilidad está corregida en 1.2.29.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-66399 changed 2025-12-08CVE Terms of Use
NVDCVE-2025-66399 changed 2026-10-18Public domain