Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2024-51483 Overview
CVE-2024-51483 is a path traversal vulnerability [CWE-22] in changedetection.io, an open source web page change detection application. Versions prior to 0.47.5 fail to block local file access when a WebDriver fetches content using the source:file:/// URI prefix. Attackers can read arbitrary files from the host system, including /etc/passwd, by submitting a crafted watch URL. The traditional file:/// scheme is blocked, but the source: prefix bypasses that filter. Version 0.47.5 remediates the issue.
Critical Impact
Unauthenticated or authenticated users with watch-creation permissions can read local files from the host running changedetection.io, exposing credentials, configuration, and system data.
Affected Products
- changedetection.io versions prior to 0.47.5
- Deployments configured to use a WebDriver (for example Selenium or Playwright) for page fetching
- Self-hosted and containerized installations exposing the watch creation interface
Discovery Timeline
- 2024-11-01 - CVE-2024-51483 published to the National Vulnerability Database
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2024-51483
Vulnerability Analysis
changedetection.io supports multiple page fetchers, including a WebDriver-based fetcher used for JavaScript-rendered sites. The application enforces a URL allow list that rejects direct file:/// schemes to prevent local file reads. However, the fetcher recognizes a source: prefix that instructs it to retrieve the raw source of a target URL. When a user submits source:file:///etc/passwd, the input validation treats the string as a source: URL and forwards the inner file:/// URI to the WebDriver without re-validating the resulting scheme.
The WebDriver then loads the local file and returns its contents as the watched page. The attacker observes the file content in the normal diff view or change history. This provides a reliable primitive for reading any file readable by the WebDriver process, which typically runs with the same privileges as the application container.
Referenced source code is available in the Watch.py snippet and the processors __init__.py snippet.
Root Cause
The root cause is incomplete URL scheme validation. The deny list targets the literal file:// prefix but does not normalize or re-inspect URLs after the source: prefix is stripped. This creates a path traversal and local file read primitive [CWE-22] when the WebDriver fetcher is active.
Attack Vector
An attacker with access to create or edit a watch submits a URL of the form source:file:///etc/passwd (or any other local path). The application invokes the WebDriver, which loads the file and stores the content as a snapshot. The attacker then reads the retrieved content through the normal changedetection.io interface. See the GitHub Security Advisory GHSA-cwgg-57xj-g77r and the path traversal report for technical details.
Detection Methods for CVE-2024-51483
Indicators of Compromise
- Watch entries whose URL field begins with source:file://, source:file:///, or references local paths such as /etc/, /proc/, /root/, or /var/
- Snapshot content in the changedetection.io datastore containing /etc/passwd, /etc/shadow fragments, SSH keys, or environment files
- Access log entries showing WebDriver sessions loading file:// URIs from the application host
Detection Strategies
- Query the changedetection.io datastore and watch export files for URLs matching the regular expression ^source:file: to identify abuse attempts
- Inspect WebDriver (Selenium or Playwright) logs for file:// scheme navigations originating from the changedetection.io process
- Correlate watch creation events with unusual snapshot sizes or content containing filesystem metadata strings
Monitoring Recommendations
- Alert on any outbound navigation from the changedetection.io container that targets the loopback interface or local file URIs
- Monitor the application version in use and flag deployments running versions below 0.47.5
- Enable audit logging on watch creation and edit endpoints and forward events to a central SIEM for retention and review
How to Mitigate CVE-2024-51483
Immediate Actions Required
- Upgrade changedetection.io to version 0.47.5 or later across all deployments
- Audit existing watches for URLs beginning with source:file: and remove any suspicious entries
- Rotate credentials, API tokens, and SSH keys that may have been readable from the host filesystem
- Restrict network and authentication exposure of the changedetection.io interface to trusted users only
Patch Information
The maintainer fixed the issue in changedetection.io version 0.47.5 by extending input validation to reject file:// URIs after the source: prefix is processed. Review the GitHub Security Advisory GHSA-cwgg-57xj-g77r for the authoritative patch notes.
Workarounds
- If upgrading immediately is not feasible, disable the WebDriver-based fetcher and fall back to the plain HTTP fetcher, which is not affected by this bypass
- Run changedetection.io inside a container with a read-only root filesystem and minimal mounted paths to reduce the value of any local file read
- Place the application behind an authenticating reverse proxy and restrict watch creation to a limited set of trusted operators
# Configuration example: container hardening for changedetection.io
docker run -d \
--name changedetection \
--read-only \
--tmpfs /tmp \
-v changedetection-data:/datastore \
-e FETCH_WORKERS=1 \
-e PLAYWRIGHT_DRIVER_URL= \
-p 127.0.0.1:5000:5000 \
ghcr.io/dgtlmoon/changedetection.io:0.47.5
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

