CVE-2026-39938 Cacti: Unauthenticated RCE on Graph Image

Critical 9.8 Published Updated

Unauthenticated attackers can execute arbitrary code via Local File Inclusion and IPC serialization flaws in Cacti graph image handling.

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

What is CVE-2026-39938?

CVE-2026-39938 is a critical command injection vulnerability in Cacti Cacti, published on 24 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Cacti is an open source performance and fault management framework. Versions 1.2.30 and prior have unauthenticated LFI through graph_theme and rrdtool IPC serialization hardening. This issue has been resolved in version 1.2.31.

Weakness: CWE-78, CWE-22

Which versions are affected by CVE-2026-39938?

It affects 1 product.

Products include Cacti Cacti.

How do I fix CVE-2026-39938?

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-2026-39938 being exploited?

There is no known exploitation of CVE-2026-39938 in the wild and no public exploit code.

Public exploit code: 2 proofs of concept on GitHub.

All Cacti Cacti vulnerabilities

Sources

Also known as DEBIAN-CVE-2026-39938, GHSA-rm7p-qcqm-x5m6, UBUNTU-CVE-2026-39938.

Is CVE-2026-39938 in your software?

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

Check your SBOMs for free