All vulnerabilities

Servers and applications

CVE-2026-21857

Path Traversal in Backup Addon Leading to Arbitrary File Read

Severity
High 8.3
Published
5 Jan 2026
Last changed
17 Jun 2026
Added to UpHeron
3 Nov 2026
Fixed in
5.20.2
Exploit chance
0.5% in the next 30 daysHigher than 45% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Path traversal (CWE-22)CWE-24
Attack
Over the network · Needs an administrator account · No user action needed
Attacker can
Read data
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Also known as
GHSA-824x-88xg-cwrv
Sources
NVD, Project advisories (GitHub)

Description

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

Full compromise of the REDAXO installation:

From redaxo/core's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
REDAXOServers and applications · cpe:a:redaxo:redaxo
  • Every version before 5.20.2
REDAXOServers and applications · github:redaxo/core
  • Every version before 5.20.2

About REDAXO

Content management system

From Wikidata, CC0 1.0.
GitHub stars
356GitHub, 15 Nov 2026
Forks
115GitHub, 15 Nov 2026
Latest release
5.21.6GitHub, 15 Nov 2026
Released
25 Oct 2026GitHub
License
MIT LicenseWikidata
Written in
PHPWikidata
First published on GitHub
4 Jul 2010GitHub

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2026-21857
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-21857
  • GitHub Advisory Database https://github.com/advisories/GHSA-824x-88xg-cwrv
  • github.com https://github.com/redaxo/core/security/advisories/GHSA-824x-88xg-cwrv