CVE-2025-22604 Cacti has Authenticated RCE via multi-line SNMP responses

Critical 9.1 Published Updated

Authenticated attackers can execute arbitrary commands by injecting malformed OIDs into multi-line SNMP responses processed by Cacti.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2025-22604?

CVE-2025-22604 is a critical command injection vulnerability in Cacti Cacti, published on 27 Jan 2025. An attacker needs administrator access to exploit it, with no action from the victim.

Official description

Cacti is an open source performance and fault management framework. Due to a flaw in multi-line SNMP result parser, authenticated users can inject malformed OIDs in the response. When processed by ss_net_snmp_disk_io() or ss_net_snmp_disk_bytes(), a part of each OID will be used as a key in an array that is used as part of a system command, causing a command execution vulnerability. This vulnerability is fixed in 1.2.29.

Weakness: CWE-78

Which versions are affected by CVE-2025-22604?

It affects 1 product.

Products include Cacti Cacti.

How do I fix CVE-2025-22604?

Upgrade to a fixed version.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2025-22604 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-22604 exists.

Public exploit code: 1 proofs of concept on GitHub.

All Cacti Cacti vulnerabilities

Sources

Also known as DEBIAN-CVE-2025-22604, GHSA-c5j8-jxj3-hh36, UBUNTU-CVE-2025-22604.

Is CVE-2025-22604 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free