Skip to main content
Vulnerability Database/CVE-2025-27411

CVE-2025-27411: Redaxo CMS Arbitrary File Upload Vulnerability

CVE-2025-27411 is an arbitrary file upload vulnerability in Redaxo CMS that allows attackers to upload malicious files through the mediapool media page. This article covers technical details, affected versions, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2025-27411 Overview

CVE-2025-27411 is an arbitrary file upload vulnerability in REDAXO, a PHP-based content management system (CMS). The flaw exists in the mediapool/media page in versions prior to 5.18.3. The MediaPool component failed to enforce MIME type validation by default, allowing authenticated users with upload privileges to submit files that bypass extension and content-type restrictions. The issue is categorized under [CWE-434: Unrestricted Upload of File with Dangerous Type]. REDAXO released version 5.18.3 to fix the vulnerability by enabling the MIME type check by default in the isAllowedMimeType() function.

Critical Impact

Authenticated users on vulnerable REDAXO installations can upload arbitrary files through the MediaPool interface, affecting confidentiality and integrity of the hosted site.

Affected Products

  • REDAXO CMS versions prior to 5.18.3
  • Affected component: redaxo/src/addons/mediapool/lib/mediapool.php
  • Fixed version: REDAXO 5.18.3

Discovery Timeline

  • 2025-03-05 - CVE-2025-27411 published to NVD
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2025-27411

Vulnerability Analysis

REDAXO's MediaPool module manages file uploads to the CMS media library. In versions before 5.18.3, the isAllowedMimeType() method in mediapool.php retrieved the allowed MIME type list directly from the addon property allowed_mime_types. When the property was unset or empty, the function returned true and permitted the upload regardless of file content. This behavior exposed the mediapool/media page to arbitrary file upload, including scripts that could later be served by the web server. The vulnerability requires an authenticated session with media upload permissions and user interaction to submit the file.

Root Cause

The root cause is an insecure default configuration in the MediaPool MIME type validator. The pre-patch code read the allowed list only from the addon property, which was not populated by default. When $allowedMimetypes evaluated as falsy, the method short-circuited and returned true, bypassing content inspection. The fix routes retrieval through a getAllowedMimeTypes() helper that establishes a secure default set.

Attack Vector

An authenticated user with access to the MediaPool interface uploads a file with a dangerous extension or crafted content through the mediapool/media endpoint. Because MIME type validation is skipped, the file is accepted and stored in the media directory. Depending on server configuration and extension handling, the uploaded file can be used to introduce malicious content into the application or support follow-on attacks against site visitors.

php
// Security patch in redaxo/src/addons/mediapool/lib/mediapool.php
public static function isAllowedMimeType(string $path, ?string $filename = null): bool
{
-    $allowedMimetypes = rex_addon::get('mediapool')->getProperty('allowed_mime_types');
+    $allowedMimetypes = self::getAllowedMimeTypes();

    if (!$allowedMimetypes) {
        return true;

Source: REDAXO commit 3b2159b

Detection Methods for CVE-2025-27411

Indicators of Compromise

  • New or unexpected files in the REDAXO media directory with executable extensions such as .php, .phtml, .phar, or .svg containing scripts.
  • Media library entries whose stored MIME type does not match the file extension or binary header.
  • Audit log entries showing mediapool/media uploads from accounts that do not normally publish content.

Detection Strategies

  • Compare the installed REDAXO version against 5.18.3 across all hosted instances and flag earlier builds.
  • Scan the media/ directory for files with server-executable extensions and inspect their content for PHP tags or script payloads.
  • Correlate web server access logs for POST requests to index.php?page=mediapool/media followed by GET requests to newly created files.

Monitoring Recommendations

  • Enable REDAXO audit logging for MediaPool actions and forward events to a central log platform for retention and search.
  • Monitor file system changes in the media upload directory using integrity monitoring tools.
  • Alert on execution of PHP interpreter processes spawned from paths under the uploads directory.

How to Mitigate CVE-2025-27411

Immediate Actions Required

  • Upgrade REDAXO to version 5.18.3 or later on all affected installations.
  • Review MediaPool upload history since deployment and remove any files that cannot be attributed to legitimate editors.
  • Rotate credentials for accounts with MediaPool upload rights if compromise is suspected.

Patch Information

REDAXO 5.18.3 enables the MIME type check by default in the MediaPool addon. The fix is published in commit 3b2159b and documented in GitHub Security Advisory GHSA-wppf-gqj5-fc4f. Administrators should apply the upgrade through the REDAXO installer or by replacing the application files from the official release package.

Workarounds

  • Restrict MediaPool upload permissions to a minimal set of trusted editor accounts until the patch is applied.
  • Configure the web server to deny execution of PHP and other scripting languages inside the REDAXO media upload directory.
  • Manually populate the allowed_mime_types property for the MediaPool addon to enforce an allow-list of safe MIME types.
bash
# Example Apache configuration to block script execution in the media directory
<Directory "/var/www/redaxo/media">
    php_flag engine off
    <FilesMatch "\.(php|phtml|phar|pl|py|cgi|sh)$">
        Require all denied
    </FilesMatch>
</Directory>

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.