Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. redaxo/source
  4. ›
  5. CVE-2026-53599

CVE-2026-53599: Redaxo has a Mediapool isAllowedExtension bypass via multi-segment filename that leads to authenticated RCE on Apache mod_php multi-extension handlers

July 31, 2026

rex_mediapool::isAllowedExtension in redaxo/src/addons/mediapool/lib/mediapool.php accepts filenames that contain a blocked extension as a non-terminal segment of a longer extension chain, for example shell.php.any.jpg. The check only catches the blocked extension when it appears at the end of the filename or immediately before the final extension. An authenticated backend user with mediapool upload permission can upload a JPEG/PHP polyglot named shell.php.any.jpg and, on web servers whose PHP handler matches .php as any segment (mod_mime AddHandler-style, or any FilesMatch regex without an end anchor), request the file from the public media/ directory to execute arbitrary PHP as the web-server user.

The vulnerable check is a regression introduced in commit 9d008697d (PR #6213, Feb 7 2025), which weakened a previously correct str_contains check into a pair of str_ends_with checks. The earlier check, in place since 2018 specifically to defend against double-extension attacks, would have blocked this payload.

The regression has shipped in every release from 5.18.2 through 5.21.0.

References

  • github.com/advisories/GHSA-98pp-vccm-qm25
  • github.com/redaxo/core/commit/462e36896bb65d292ba22d711044c23c9cfb0340
  • github.com/redaxo/core/pull/6538
  • github.com/redaxo/core/releases/tag/5.21.1
  • github.com/redaxo/core/security/advisories/GHSA-98pp-vccm-qm25
  • nvd.nist.gov/vuln/detail/CVE-2026-53599

Code Behaviors & Features

Detect and mitigate CVE-2026-53599 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 5.18.2 before 5.21.1

Fixed versions

  • 5.21.1

Solution

Upgrade to version 5.21.1 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-434: Unrestricted Upload of File with Dangerous Type

Source file

packagist/redaxo/source/CVE-2026-53599.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 08 Aug 2026 00:19:23 +0000.