{"id":"CVE-2024-56509","aliases":["CVE-2024-56509","GHSA-j5vv-6wjg-cfr8","PYSEC-2026-1242"],"related":[],"kind":"vulnerability","state":"published","title":"changedetection.io has Improper Input Validation Leading to LFR/Path Traversal","summary":"changedetection.io is a free open source web page change detection, website watcher, restock monitor and notification service. Improper input validation in the application can allow attackers to perform local file read (LFR) or path traversal attacks. These vulnerabilities occur when user input is used to construct file paths without adequate sanitization or validation. For example, using file:../../../etc/passwd or file: ///etc/passwd can bypass weak validations and allow unauthorized access to sensitive files. Even though this has been addressed in previous patch, it is still insufficient. This vulnerability is fixed in 0.48.05.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"changedetection.io is a free open source web page change detection, website watcher, restock monitor and notification service. Improper input validation in the application can allow attackers to perform local file read (LFR) or path traversal attacks. These vulnerabilities occur when user input is used to construct file paths without adequate sanitization or validation. For example, using file:../../../etc/passwd or file: ///etc/passwd can bypass weak validations and allow unauthorized access to sensitive files. Even though this has been addressed in previous patch, it is still insufficient. This vulnerability is fixed in 0.48.05.","source":"cvelist"},{"lang":"en","text":"### Summary\nImproper input validation in the application can allow attackers to perform local file read (LFR) or path traversal attacks. These vulnerabilities occur when user input is used to construct file paths without adequate sanitization or validation. For example, using `file:../../../etc/passwd` or `file: ///etc/passwd` can bypass weak validations and allow unauthorized access to sensitive files. Even though this has been addressed in previous patch, it is still insufficient.\n\n### Details\nThe check in this line of code is insufficient.\n```\nif re.search(r'^file:/', url.strip(), re.IGNORECASE):\n```\nThe attacker can still bypass this by using:\n-`file:../../../../etc/passwd`\n-`file: ///etc/passwd` (with space before /)\n\n### PoC\n- Open up a changedetection.io instance with a webdriver configured.\n- Create a new watch with `file:../../../../etc/passwd`.\n- Check the watch preview.\n- The contents of `/etc/passwd` should pop out.\n\n### Screenshots\n![image](https://github.com/user-attachments/assets/55c34f2e-cafb-4a7a-a7ef-ec222e3f519b)\n![image](https://github.com/user-attachments/assets/d41189f5-7bf2-48b5-9ce3-c26f79cefeda)","format":"markdown","source":"ghsa"},{"lang":"es","text":"changedetection.io es un servicio gratuito de código abierto de detección de cambios en páginas web, vigilancia de sitios web, monitorización de reabastecimiento y notificación. La validación incorrecta de la entrada en la aplicación puede permitir a los atacantes realizar ataques de lectura local de archivos (LFR) o de path traversal. Estas vulnerabilidades ocurren cuando la entrada del usuario se utiliza para construir rutas de archivos sin una desinfección o validación adecuadas. Por ejemplo, el uso de file:../../../etc/passwd o file: ///etc/passwd puede eludir validaciones débiles y permitir el acceso no autorizado a archivos confidenciales. Aunque esto se ha solucionado en un parche anterior, sigue siendo insuficiente. Esta vulnerabilidad se ha corregido en la versión 0.48.05.","source":"nvd"}],"published":"2024-12-27T15:56:04.490Z","modified":"2026-09-10T03:50:21.630Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N","score":8.6,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N","score":8.6,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N","score":8.6,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N","score":8.6,"rating":"HIGH"}],"cwes":["CWE-22","CWE-200"],"affected":[{"ranges":[{"version":"< 0.48.05","status":"affected"}],"vendor":"dgtlmoon","product":"changedetection.io","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.48.05"}],"ecosystem":"PyPI","package":"changedetection-io","purl":"pkg:pypi/changedetection-io","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.48.05"}],"ecosystem":"PyPI","package":"changedetection-io","purl":"pkg:pypi/changedetection-io","source":"pysec"}],"references":[{"url":"https://github.com/dgtlmoon/changedetection.io/security/advisories/GHSA-j5vv-6wjg-cfr8","tags":["exploit","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/dgtlmoon/changedetection.io/commit/f7e9846c9b40a229813d19cdb66bf60fbe5e6a2a","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-56509","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/dgtlmoon/changedetection.io/commit/4419bc0e61d0b03c588bd573a3602bbcfd953671","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/dgtlmoon/changedetection.io","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/changedetection-io","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-j5vv-6wjg-cfr8","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2024-12-27T20:55:06.406Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-56509","url":"https://www.cve.org/CVERecord?id=CVE-2024-56509","licence":"CVE Terms of Use","modified":"2024-12-27T20:55:14.288Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-j5vv-6wjg-cfr8","url":"https://github.com/advisories/GHSA-j5vv-6wjg-cfr8","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:21.630Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-56509","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-56509","licence":"Public domain","modified":"2026-06-17T08:12:16.110Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1242","url":"https://osv.dev/vulnerability/PYSEC-2026-1242","licence":"CC-BY-4.0","modified":"2026-07-07T17:47:26.890Z"}],"updatedAt":"2026-11-25T22:58:50.519Z","epss":{"score":0.00858,"percentile":0.59528,"date":"2026-12-01T12:00:22.000Z"}}