Patchfirst
CVE-2024-32651 Public exploit Critical · 10.0 EPSS 93.0%

Server Side Template Injection in Jinja2 allows Remote Command Execution

Fix:upgrade changedetection.io to 0.45.21 or later Details ↓

dgtlmoon · changedetection.io

Summary

A Server-Side Template Injection flaw in the Jinja2 template handling of dgtlmoon's changedetection.io, an open-source web page change detection and website monitoring service, lets untrusted template input be evaluated by the server. An attacker with network access to the application can run arbitrary system commands on the server host without authentication or user interaction, including opening a reverse shell, though the application's login protection, if enabled, can reduce exposure, and it is not enabled by default or enforced.

Official description · CVE.org

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

Breakdown
32.0 / 100
Exploited
Not confirmed
Reports
0
Tactics
0/15

Public exploit code (Metasploit) appeared 13 days after disclosure. No confirmed exploitation is recorded.

  1. Disclosedday 0
  2. Public exploit codeMetasploit+13 days

6 fixes in changedetection.io over 21 months. The latest fix listed for changedetection.io is 0.47.6.

Fixes in changedetection.ioPyPI package, by fixed version. Earlier and later fixes in the same package, not necessarily the same bug.

  1. 0.40.2CVE-2023-2476917 Feb 2023
  2. 0.45.13CVE-2024-2332919 Jan 2024
  3. 0.45.21CVE-2024-3265125 Apr 2024
  4. 0.45.22CVE-2024-340612 May 2024
  5. 0.47.5CVE-2024-514831 Nov 2024
  6. 0.47.6CVE-2024-519987 Nov 2024Latest listed

Affected versions and fixes

as published in the CVE record

dgtlmoon changedetection.io

Affected: <= 0.45.20

Am I affected? What do I upgrade to?

From GitHub Security Advisories and OSV

1 package in 1 ecosystem. Main package: changedetection.io.

PyPIchangedetection.ioGHSA-4r7v-whpg-8rx3PYSEC-2026-310

Upgrade to 0.45.21 or later

pippip install "changedetection.io>=0.45.21"

The first fix for CVE-2024-32651. No other CVE tracked by Patchfirst affects this package.

Affected versions

If you runUpgrade to
All versions before 0.45.210.45.21

“Up to” means the second version is the fix and is not affected.

Check your lockfile against all CVEs

References

4 links, grouped by NVD tag
↑ ↓ chooseEnter openEsc close