CVE-2024-32651 Server Side Template Injection in Jinja2 allows Remote Command Execution

Critical 10.0 Published Updated

Attackers can execute arbitrary system commands via Server Side Template Injection in changedetection.io, leading to full server takeover.

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

What is CVE-2024-32651?

CVE-2024-32651 is a critical code injection vulnerability in dgtlmoon changedetection.io, published on 25 Apr 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

changedetection.io is an open source web page change detection, website watcher, restock monitor and notification service. There is a Server Side Template Injection (SSTI) in Jinja2 that allows Remote Command Execution on the server host. Attackers can run any system command without any restriction and they could use a reverse shell. The impact is critical as the attacker can completely takeover the server machine. This can be reduced if changedetection is behind a login page, but this isn't required by the application (not by default and not enforced).

Weakness: CWE-1336

Which versions are affected by CVE-2024-32651?

3 open source packages ship an affected version, including changedetection.io and changedetection-io.

PackageAffectedFixed in
changedetection.io PyPIAll versions0.45.21
changedetection-io PyPIAll versions0.45.21
changedetection-io PyPIAll versions0.45.21

How do I fix CVE-2024-32651?

Upgrade changedetection.io to 0.45.21 or later.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2024-32651 being exploited?

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

Public exploit code: 1 Nuclei template and 2 proofs of concept on GitHub.

Sources

Also known as GHSA-4r7v-whpg-8rx3, PYSEC-2026-310.

Is CVE-2024-32651 in your software?

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

Check your SBOMs for free