GitHub Advisoryadvisory · Packagist

GHSA-824x-88xg-cwrv Redaxo has Path Traversal in Backup Addon Leading to Arbitrary File Read

HIGH Published 2026-01-05 Modified 2026-01-08 Official page ↗
Aliases
CVE-2026-21857
Ecosystem
Packagist
Packages
redaxo/source
Severity
High
CVSS vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:N/VA:N/SC:H/SI:H/SA:N
Weaknesses
CWE-22, CWE-24
Reviewed
2026-01-05

Affected packages

• Packagist redaxo/source: < 5.20.2 → fixed in 5.20.2

Description

Summary Authenticated users with backup permissions can read arbitrary files within the webroot via path traversal in the Backup addon's file export functionality. Details 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 path This 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. Affected versions ≤ 5.20.1 (confirmed working) Patched versions None (as of 2025-12-09) PoC – Extracting database credentials and password hashes 1. Log in as any user with Backup permission 2. Go to Backup → Export → Files 3. Intercept the request with Burp Suite 4. Change one `EXPDIR[]` value to `../../../../var/www/html/redaxo/data/core` 5. Send request → download archive 6. Extract and open `data/core/config.yml` Result: plaintext database password Impact Full compromise of the REDAXO installation: • Database takeover • Password hash extraction → offline cracking → admin access • When combined with other vulnerabilities → RCE CVSS 4.0 vector & score below. Credits Discovered by: Łukasz Rybak

Related

Alias · CVE (1)

  • CVE-2026-21857 REDAXO is a PHP-based content management system. vulnerability

Weakness · CWE (2)

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness
  • CWE-24 Path Traversal: '../filedir' weakness

References