{"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-51998 exists.","fix":"Upgrade changedetection.io to 0.47.6 or later.","what":"CVE-2024-51998 is a high-severity path traversal vulnerability in dgtlmoon changedetection.io, published on 7 Nov 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-51998 and fix it if it is affected.\n\nWhat it is: CVE-2024-51998 is a high-severity path traversal vulnerability in dgtlmoon changedetection.io, published on 7 Nov 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-51998 exists.\n\nAffected packages and fixed versions:\n- changedetection.io (PyPI): affected all versions; fixed in 0.47.6\n- changedetection-io (PyPI): affected all versions; fixed in 0.47.6\n- changedetection-io (PyPI): affected all versions; fixed in 0.47.6\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-51998/ (Markdown: https://insights.sbomify.com/CVE-2024-51998/index.md)","id":"CVE-2024-51998","markdown":"https://insights.sbomify.com/CVE-2024-51998/index.md","name":"CVE-2024-51998","record":{"aliases":["GHSA-6jrf-rcjf-245r","PYSEC-2026-1239"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":true,"product_category":"Web page change detection tool","requires_auth":"none","summary":"Attackers can read arbitrary system files via file URI scheme bypass in changedetection.io when webdriver is enabled.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":8.6,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"changedetection.io is a free open source web page change detection tool. The validation for the file URI scheme falls short, and results in an attacker being able to read any file on the system. This issue only affects instances with a webdriver enabled, and `ALLOW_FILE_URI` false or not defined. The check used for URL protocol, `is_safe_url`, allows `file:` as a URL scheme. It later checks if local files are permitted, but one of the preconditions for the check is that the URL starts with `file://`. The issue comes with the fact that the file URI scheme is not required to have double slashes. This issue has been addressed in version 0.47.06 and all users are advised to upgrade. There are no known workarounds for this vulnerability.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Path traversal using file URI scheme without supplying hostname in changedetection.io","id":"CVE-2024-51998","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"path_traversal","year":"2024"},"n_packages":3,"n_references":3,"next":{"headline":"Withdrawn Advisory: express improperly controls modification of query properties","id":"CVE-2024-51999"},"packages":[{"ecosystem":"PyPI","fixed":["0.47.6"],"introduced":["0"],"last_affected":[],"package":"changedetection-io","purl":"pkg:pypi/changedetection-io","source":"GHSA-6jrf-rcjf-245r"},{"ecosystem":"PyPI","fixed":["0.47.6"],"introduced":["0"],"last_affected":[],"package":"changedetection-io","purl":"pkg:pypi/changedetection-io","source":"PYSEC-2026-1239"},{"ecosystem":"PyPI","fixed":["0.47.6"],"introduced":["0"],"last_affected":[],"package":"changedetection.io","purl":null,"source":"GHSA-6jrf-rcjf-245r"}],"prev":{"headline":"The Attestation Results Token can be arbitrarily modified without being detected in Trustee","id":"CVE-2024-51997"},"products":["changedetection.io"],"published":"2024-11-07","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)"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-11-08","vendors":["dgtlmoon"]},"summary":"Attackers can read arbitrary system files via file URI scheme bypass in changedetection.io when webdriver is enabled.","url":"https://insights.sbomify.com/CVE-2024-51998/"}