
CVE-2026-21857 - Redaxo has Path Traversal in Backup Addon Leading to Arbitrary File Read
| Field | Details |
|---|---|
| CVE ID | CVE-2026-21857 |
| Severity | HIGH |
| Advisory | View Advisory |
| Discovered by | Lukasz Rybak |
Authenticated users with backup permissions can read arbitrary files within the webroot via path traversal in the Backup addon's file export functionality.

The Backup addon does not validate the EXPDIR POST parameter against the UI-generated allowlist of permitted directories.
An attacker can supply relative paths containing ../ sequences (or even absolute paths inside the document root) to include any readable file in the generated .tar.gz archive.
Vulnerable code:
redaxo/src/addons/backup/pages/export.php (lines 72-76) – directly uses $_POST['EXPDIR']redaxo/src/addons/backup/lib/backup.php (lines ~413 & ~427) – concatenates unsanitized user input with base pathThis allows disclosure of sensitive files such as:
redaxo/data/core/config.yml → database credentials + password hashes of all backend users.env, custom configuration files, logs, uploaded malicious files, etc.≤ 5.20.1 (confirmed working)
None (as of 2025-12-09)
EXPDIR[] value to ../../../../var/www/html/redaxo/data/core
Send request → download archive
Extract and open data/core/config.yml
Result: plaintext database password

Full compromise of the REDAXO installation:
CVSS 4.0 vector & score below.
Discovered by: Łukasz Rybak
This CVE was responsibly disclosed following coordinated vulnerability disclosure practices. The information provided here is for educational and defensive purposes only.