{"id":"CVE-2024-32651","state":"PUBLISHED","title":"Server Side Template Injection in Jinja2 allows Remote Command Execution","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).","publishedAt":"2024-04-25T23:49:28.540Z","updatedAt":"2025-02-13T17:52:14.004Z","severity":{"score":10,"label":"Critical","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["dgtlmoon changedetection.io"],"affected":[{"vendor":"dgtlmoon","product":"changedetection.io","versions":[{"version":"<= 0.45.20","status":"affected"}]}],"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/"],"weaknesses":["CWE-1336"],"ingestedAt":"2026-10-29T20:07:21.467Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/32xxx/CVE-2024-32651.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2024-32651","state":"PUBLISHED","datePublished":"2024-04-25T23:49:28.540Z","dateUpdated":"2025-02-13T17:52:14.004Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2024-04-16T14:15:26.876Z"},"containers":{"cna":{"title":"Server Side Template Injection in Jinja2 allows Remote Command Execution","descriptions":[{"lang":"en","value":"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)."}],"affected":[{"vendor":"dgtlmoon","product":"changedetection.io","versions":[{"version":"<= 0.45.20","status":"affected"}]}],"references":[{"url":"https://github.com/dgtlmoon/changedetection.io/security/advisories/GHSA-4r7v-whpg-8rx3","name":"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","name":"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","name":"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/"}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":10,"baseSeverity":"CRITICAL","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-1336","lang":"en","description":"CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2024-06-07T17:06:59.504Z"},"source":{"advisory":"GHSA-4r7v-whpg-8rx3","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","affected":[{"vendor":"dgtlmoon","product":"changedetection.io","defaultStatus":"unknown","versions":[{"version":"0.45.20","status":"affected"}],"cpes":["cpe:2.3:a:dgtlmoon:changedetection.io:0.45.20:*:*:*:*:*:*:*"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-06-07T19:43:06.358800Z","id":"CVE-2024-32651","options":[{"Exploitation":"poc"},{"Automatable":"yes"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-06-07T19:45:58.632Z"}},{"title":"CVE Program Container","references":[{"url":"https://github.com/dgtlmoon/changedetection.io/security/advisories/GHSA-4r7v-whpg-8rx3","name":"https://github.com/dgtlmoon/changedetection.io/security/advisories/GHSA-4r7v-whpg-8rx3","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://github.com/dgtlmoon/changedetection.io/releases/tag/0.45.21","name":"https://github.com/dgtlmoon/changedetection.io/releases/tag/0.45.21","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://www.onsecurity.io/blog/server-side-template-injection-with-jinja2","name":"https://www.onsecurity.io/blog/server-side-template-injection-with-jinja2","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://blog.hacktivesecurity.com/index.php/2024/05/08/cve-2024-32651-server-side-template-injection-changedetection-io/","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T02:13:40.303Z"}}]}}}