All vulnerabilities
CVE-2026-62998GHSA-4f5f-j737-pm58

redaxo/source: REDAXO: Unwhitelisted ORDER BY Column in rex_list Allows Authenticated Column Enumeration

redaxo redaxo/sourcecomposerLibraries & packages
CVSS
4.3Medium
ExploitationPublic exploit codeCISA's assessment says proof of concept code is public, assessed 23 Sep 2026. Not in the KEV catalogCISA via CVE List
Exploit odds (EPSS)0.24%Chance of exploitation activity in the next 30 days, higher than 14% of CVEs. Scored 23 Oct 2026FIRST EPSS
Fixed in5.21.2Fixed versionGitHub
Published23 Sep 2026Updated 24 Sep 2026CVE List

What fixes it

  • 5.21.2redaxo/source, composerGitHubcomposer require "redaxo/source:^5.21.2"
  • 5.21.2redaxo/source, PackagistOSVcomposer require "redaxo/source:^5.21.2"

A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.

Description

Summary

The rex_list component reads the SQL sort column directly from the sort GET parameter without validating it against the set of columns declared sortable via setColumnSortable(). Although the value is wrapped in backticks via escapeIdentifier() (preventing classical SQL injection), this still allows any authenticated backend user to ORDER BY any column in the query's FROM tables, including unselected sensitive columns such as password from the rex_user table, and perform error-based column enumeration.

Details

File: redaxo/src/core/lib/list.php:976-982 โ€” getSortColumn() returns the raw request parameter without whitelist check:

public function getSortColumn($default = null)
{
    if (rex_request('list', 'string') == $this->getName()) {
        return rex_request('sort', 'string', $default);  // NO validation against sortable columns
    }
    return $default;
}

File: redaxo/src/core/lib/list.php:899-911 โ€” prepareQuery() uses it directly in the ORDER BY clause:

protected function prepareQuery($query, array $defaultSort = [])
{
    $sortColumn = $this->getSortColumn();
    if ('' != $sortColumn) {
        $sql = rex_sql::factory($this->db);
        $sortColumn = $sql->escapeIdentifier($sortColumn);  // backtick-wraps, but no whitelist
        if ($defaultSort || false === stripos($query, ' ORDER BY ')) {
            $query .= ' ORDER BY ' . $sortColumn . ' ' . $sortType;
        }
    }

The users list queries rex_user which contains password, previous_passwords, password_change_required โ€” not in the SELECT. Specifying a non-existent column name produces a MySQL Unknown column exception whose message is propagated to the user, confirming or denying column existence.

PoC

Column enumeration (error-based):

GET /redaxo/index.php?page=users&list=<list_name>&sort=nonexistent_col&sorttype=asc

Response will contain: Unknown column 'nonexistent_col' in 'order clause'

Sort by password hash (data ordering leak):

GET /redaxo/index.php?page=users&list=<list_name>&sort=password&sorttype=asc

Users are silently reordered by their Argon2 password hash.

Impact

Authenticated backend users (non-admin) can enumerate database column names of internal tables via error messages and manipulate query ordering to include sensitive unselected columns. While this does not allow arbitrary SQL execution due to backtick escaping, it constitutes an information disclosure vulnerability enabling targeted further attacks.

Fix

Validate the sort request parameter against the whitelist of columns registered with setColumnSortable() before use in the query:

public function getSortColumn($default = null)
{
    if (rex_request('list', 'string') == $this->getName()) {
        $requested = rex_request('sort', 'string', $default);
        if ($requested !== null && $this->hasColumnOption($requested, REX_LIST_OPT_SORT)) {
            return $requested;
        }
    }
    return $default;
}

Text from GitHub Advisory Database

Affected versions 47

  • redaxo/source, composer<= 5.21.1GitHub
  • coreaffected: < 5.21.2CVE List
  • redaxo/source, Packagistfrom first release, fixed in 5.21.2OSV
  • redaxo/source, Packagist5.10.0OSV
  • redaxo/source, Packagist5.10.0-beta1OSV
  • redaxo/source, Packagist5.10.0-beta2OSV
  • redaxo/source, Packagist5.10.1OSV
  • redaxo/source, Packagist5.11.0OSV
  • redaxo/source, Packagist5.11.0-beta1OSV
  • redaxo/source, Packagist5.11.1OSV
  • redaxo/source, Packagist5.11.2OSV
  • redaxo/source, Packagist5.12.0OSV
  • redaxo/source, Packagist5.12.0-beta1OSV
  • redaxo/source, Packagist5.12.0-beta2OSV
  • redaxo/source, Packagist5.12.0-beta3OSV
  • redaxo/source, Packagist5.12.1OSV
  • redaxo/source, Packagist5.13.0OSV
  • redaxo/source, Packagist5.13.0-beta1OSV
  • redaxo/source, Packagist5.13.0-beta2OSV
  • redaxo/source, Packagist5.13.1OSV
  • redaxo/source, Packagist5.13.2OSV
  • redaxo/source, Packagist5.13.3OSV
  • redaxo/source, Packagist5.14.0OSV
  • redaxo/source, Packagist5.14.0-beta1OSV
  • redaxo/source, Packagist5.14.0-beta2OSV
  • redaxo/source, Packagist5.14.1OSV
  • redaxo/source, Packagist5.14.2OSV
  • redaxo/source, Packagist5.14.3OSV
  • redaxo/source, Packagist5.15.0OSV
  • redaxo/source, Packagist5.15.0-beta1OSV
  • redaxo/source, Packagist5.15.1OSV
  • redaxo/source, Packagist5.16.0OSV
  • redaxo/source, Packagist5.16.0-beta1OSV
  • redaxo/source, Packagist5.16.1OSV
  • redaxo/source, Packagist5.17.0OSV
  • redaxo/source, Packagist5.17.1OSV
  • redaxo/source, Packagist5.18.0OSV
  • redaxo/source, Packagist5.18.1OSV
  • redaxo/source, Packagist5.18.2OSV
  • redaxo/source, Packagist5.18.3OSV
  • redaxo/source, Packagist5.19.0OSV
  • redaxo/source, Packagist5.20.0OSV
  • redaxo/source, Packagist5.20.1OSV
  • redaxo/source, Packagist5.20.2OSV
  • redaxo/source, Packagist5.21.0OSV
  • redaxo/source, Packagist5.21.0-beta1OSV
  • redaxo/source, Packagist5.21.1OSV

References 6