{"id":"CVE-2024-32651","published":"2024-04-25T23:49:28Z","modified":"2025-02-13T17:52:14Z","title":"Server Side Template Injection in Jinja2 allows Remote Command Execution","vendor":"dgtlmoon","product":"changedetection.io","tier":"core","eol":null,"affectedVersions":[{"vendor":"dgtlmoon","product":"changedetection.io","versions":["<= 0.45.20"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2024-06-07T19:43:06.358800Z","from":"CISA ADP","provenance":"source"},"description":{"text":"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).","provenance":"source","from":"CVE.org"},"summary":{"text":"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.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-10-29T07:12:07Z"},"cvss":{"score":10,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.78878,"percentile":0.99719,"date":"2026-11-25","provenance":"source"},"kev":null,"vulncheckKev":null,"exploited":false,"otx":{"pulseCount":0,"pulses":[],"provenance":"machine"},"cwes":[{"id":"CWE-1336","name":"Improper Neutralization of Special Elements Used in a Template Engine"}],"references":[{"url":"https://github.com/dgtlmoon/changedetection.io/security/advisories/GHSA-4r7v-whpg-8rx3","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/dgtlmoon/changedetection.io/releases/tag/0.45.21","tags":["x_refsource_MISC"]},{"url":"https://www.onsecurity.io/blog/server-side-template-injection-with-jinja2","tags":["x_refsource_MISC"]},{"url":"https://blog.hacktivesecurity.com/index.php/2024/05/08/cve-2024-32651-server-side-template-injection-changedetection-io/","tags":[]}],"techniques":[],"reports":[],"affected":[{"ecosystem":"PyPI","package":"changedetection.io","vulnerableRanges":["<0.45.21"],"patched":["0.45.21"],"from":["GHSA-4r7v-whpg-8rx3","PYSEC-2026-310"],"provenance":"source"}],"advisories":[{"id":"GHSA-4r7v-whpg-8rx3","url":"https://github.com/advisories/GHSA-4r7v-whpg-8rx3","severity":"CRITICAL","ecosystem":"PyPI","package":"changedetection.io","vulnerableRanges":["<0.45.21"],"patched":["0.45.21"],"provenance":"source","from":"GHSA"}],"euvd":{"id":"EUVD-2024-2939","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2024-2939","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[{"id":52027,"url":"https://www.exploit-db.com/exploits/52027","title":"changedetection <= 0.45.20 - Remote Code Execution (RCE)","type":"webapps","platform":"multiple","date":"2024-05-31","verified":false,"provenance":"source"}],"exploitSources":{"exploitdb":{"count":1,"earliest":"2024-05-31"},"pocGithub":{"count":2,"skipped":0,"earliest":"2024-05-26","earliestUrl":"https://github.com/zcrosman/cve-2024-32651","repos":[{"name":"s0ck3t-s3c/CVE-2024-32651-changedetection-RCE","url":"https://github.com/s0ck3t-s3c/CVE-2024-32651-changedetection-RCE","stars":4,"created":"2024-09-16"},{"name":"zcrosman/cve-2024-32651","url":"https://github.com/zcrosman/cve-2024-32651","stars":1,"created":"2024-05-26"}]},"metasploit":[{"name":"changedetection.io Notification Jinja2 SSTI RCE","module":"exploit/linux/http/changedetection_rce_cve_2024_32651","type":"exploit","disclosureDate":"2024-05-08","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/changedetection_rce_cve_2024_32651.rb"}],"nuclei":[{"id":"CVE-2024-32651","name":"Change Detection - Server Side Template Injection","severity":"critical","path":"http/cves/2024/CVE-2024-32651.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-32651.yaml"}],"first":{"date":"2024-05-08","source":"Metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/changedetection_rce_cve_2024_32651.rb"},"provenance":"source"},"exploitRefs":[],"flow":[],"timeline":[{"date":"2024-04-25","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2024-32651","provenance":"source"},{"date":"2024-05-08","kind":"exploit-public","label":"First public exploit: Metasploit; later: PoC-in-GitHub 2024-05-26, Exploit-DB 2024-05-31","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/changedetection_rce_cve_2024_32651.rb","provenance":"source"}],"speed":{"daysToPublicExploit":13,"firstExploitFrom":"Metasploit","daysToKev":null},"priority":{"score":31.9,"factors":[{"name":"In a KEV catalog","points":0.0,"detail":"not listed"},{"name":"Recent KEV listing","points":0.0,"detail":"not listed"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.94,"detail":"percentile 0.9972"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"1 Exploit-DB entry; 2 PoC-in-GitHub repos; 1 Metasploit module; 1 nuclei template"},{"name":"Mentioned in OTX pulses","points":0.0,"detail":"0 pulses"},{"name":"CVSS severity","points":7.0,"detail":"base score 10"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]},"lineage":{"packageHistory":[{"cve":"CVE-2023-24769","published":"2023-02-17","fixed":"0.40.2","kev":false},{"cve":"CVE-2024-23329","published":"2024-01-19","fixed":"0.45.13","kev":false,"link":{"from":"CVE-2024-23329","to":"CVE-2024-32651","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:changedetection.io","fromFixed":"0.45.13","toFixed":"0.45.21","daysApart":97}]}},{"cve":"CVE-2024-32651","published":"2024-04-25","fixed":"0.45.21","kev":false},{"cve":"CVE-2024-34061","published":"2024-05-02","fixed":"0.45.22","kev":false,"link":{"from":"CVE-2024-32651","to":"CVE-2024-34061","relation":"successor","confidence":"medium","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:changedetection.io","fromFixed":"0.45.21","toFixed":"0.45.22","daysApart":7},{"kind":"similar","provenance":"machine","score":0.34,"basis":"same product + description similarity"}]}},{"cve":"CVE-2024-51483","published":"2024-11-01","fixed":"0.47.5","kev":false},{"cve":"CVE-2024-51998","published":"2024-11-07","fixed":"0.47.6","kev":false}],"package":"PyPI:changedetection.io"}}