{"answers":{"affected":"3 open source packages ship an affected version, including changedetection.io and changedetection-io.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-32651 exists.","fix":"Upgrade changedetection.io to 0.45.21 or later.","what":"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."},"fix_prompt":"Check this codebase for CVE-2024-32651 and fix it if it is affected.\n\nWhat it is: 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.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-32651 exists.\n\nAffected packages and fixed versions:\n- changedetection.io (PyPI): affected all versions; fixed in 0.45.21\n- changedetection-io (PyPI): affected all versions; fixed in 0.45.21\n- changedetection-io (PyPI): affected all versions; fixed in 0.45.21\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-32651/ (Markdown: https://insights.sbomify.com/CVE-2024-32651/index.md)","id":"CVE-2024-32651","markdown":"https://insights.sbomify.com/CVE-2024-32651/index.md","name":"CVE-2024-32651","record":{"aliases":["GHSA-4r7v-whpg-8rx3","PYSEC-2026-310"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution","privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"Web page change detection","requires_auth":"none","summary":"Attackers can execute arbitrary system commands via Server Side Template Injection in changedetection.io, leading to full server takeover.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":10,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-1336","name":"Improper Neutralization of Special Elements Used in a Template Engine"}],"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).","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":"2024-05-26","github_poc":2,"max_poc_stars":4,"metasploit":0,"nuclei":1,"refs":[{"date":"2024-09-16T13:11:38Z","kind":"github_poc","ref":"https://github.com/s0ck3t-s3c/CVE-2024-32651-changedetection-RCE","stars":4,"title":"Server-Side Template Injection Exploit"},{"date":"2024-05-26T21:24:14Z","kind":"github_poc","ref":"https://github.com/zcrosman/cve-2024-32651","stars":1,"title":"changedetection rce though ssti"},{"date":null,"kind":"nuclei","ref":"http/cves/2024/CVE-2024-32651.yaml","stars":null,"title":"Change Detection - Server Side Template Injection"}],"tier":"weaponised"},"has_fix":true,"headline":"Server Side Template Injection in Jinja2 allows Remote Command Execution","id":"CVE-2024-32651","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"code_injection","year":"2024"},"n_packages":3,"n_references":4,"next":{"headline":"@hono/node-server contains Denial of Service risk when receiving Host header that cannot be parsed","id":"CVE-2024-32652"},"packages":[{"ecosystem":"PyPI","fixed":["0.45.21"],"introduced":["0"],"last_affected":[],"package":"changedetection-io","purl":"pkg:pypi/changedetection-io","source":"GHSA-4r7v-whpg-8rx3"},{"ecosystem":"PyPI","fixed":["0.45.21"],"introduced":["0"],"last_affected":[],"package":"changedetection-io","purl":"pkg:pypi/changedetection-io","source":"PYSEC-2026-310"},{"ecosystem":"PyPI","fixed":["0.45.21"],"introduced":["0"],"last_affected":[],"package":"changedetection.io","purl":null,"source":"GHSA-4r7v-whpg-8rx3"}],"prev":{"headline":"Rustls vulnerable to an infinite loop in rustls::conn::ConnectionCommon::complete_io() with proper client input","id":"CVE-2024-32650"},"products":["changedetection.io"],"published":"2024-04-25","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-02-13","vendors":["dgtlmoon"]},"summary":"Attackers can execute arbitrary system commands via Server Side Template Injection in changedetection.io, leading to full server takeover.","url":"https://insights.sbomify.com/CVE-2024-32651/"}