CVE-2026-62998: REDAXO Unwhitelisted ORDER BY Column Vulnerability

MODERATE
Advisory Identifier: GHSA-4f5f-j737-pm58
CVSS 4.3
CWE-20 CWE-200
Published
Advisory Summary

CVE-2026-62998 is a MODERATE (CVSS 4.3) unwhitelisted order by column vulnerability (CWE-20: Improper Input Validation) affecting REDAXO libraries in the Packagist ecosystem. The issue involves unwhitelisted order by column in rex_list allows authenticated column enumeration. Remediation is available by upgrading affected packages to version 5.21.2.

CVE-2026-62998 at a Glance

CVE Identifier CVE-2026-62998
GHSA Identifier GHSA-4f5f-j737-pm58
Severity MODERATE
CVSS v3.1 Base Score 4.3
CWE Classification CWE-20: Improper Input Validation
Affected Product REDAXO
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 4.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2026-62998

To remediate this vulnerability, upgrade all affected REDAXO dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

redaxo/source fixed: 5.21.2
Upgrade redaxo/source to 5.21.2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for redaxo/source

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-62998, inspect your project dependencies for REDAXO:

inspect dependencies for redaxo/source

Analyze the terminal output to locate any version of REDAXO in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.21.2), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In REDAXO, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### 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: ```php 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: ```php 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: ```php 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; } ```

CVE-2026-62998 Affected REDAXO Versions

1 component(s)
Fixed Versions:
5.21.2
Product / Package Ecosystem Affected Versions Fixed Version
redaxo/source
Packagist
< 5.21.2
5.21.2

References

Frequently Asked Questions

What is CVE-2026-62998?
CVE-2026-62998 is a security vulnerability in REDAXO involving Unwhitelisted ORDER BY Column in rex_list Allows Authenticated Column Enumeration under CWE-20: Improper Input Validation.
Which REDAXO versions are affected?
Affected versions include releases prior to 5.21.2 across affected packages: redaxo/source.
What version fixes CVE-2026-62998?
Upgrading to 5.21.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is redaxo/source affected?
Yes, redaxo/source is affected in releases prior to 5.21.2. Upgrade your dependency to 5.21.2 or later.
What is the CVSS score of CVE-2026-62998?
CVE-2026-62998 has a CVSS v3.1 base score of 4.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2026-62998?
CVE-2026-62998 is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check Packagist dependencies for CVE-2026-62998?
Run the dependency tree command: 'inspect dependencies for redaxo/source'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-4f5f-j737-pm58",
  "modified" : "2026-09-24T14:57:07Z",
  "published" : "2026-09-24T14:57:07Z",
  "aliases" : [ "CVE-2026-62998" ],
  "summary" : "REDAXO: Unwhitelisted ORDER BY Column in rex_list Allows Authenticated Column Enumeration",
  "details" : "### Summary\nThe `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.\n\n### Details\n**File:** `redaxo/src/core/lib/list.php:976-982` — `getSortColumn()` returns the raw request parameter without whitelist check:\n```php\npublic function getSortColumn($default = null)\n{\n    if (rex_request('list', 'string') == $this->getName()) {\n        return rex_request('sort', 'string', $default);  // NO validation against sortable columns\n    }\n    return $default;\n}\n```\n\n**File:** `redaxo/src/core/lib/list.php:899-911` — `prepareQuery()` uses it directly in the ORDER BY clause:\n```php\nprotected function prepareQuery($query, array $defaultSort = [])\n{\n    $sortColumn = $this->getSortColumn();\n    if ('' != $sortColumn) {\n        $sql = rex_sql::factory($this->db);\n        $sortColumn = $sql->escapeIdentifier($sortColumn);  // backtick-wraps, but no whitelist\n        if ($defaultSort || false === stripos($query, ' ORDER BY ')) {\n            $query .= ' ORDER BY ' . $sortColumn . ' ' . $sortType;\n        }\n    }\n```\n\nThe 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.\n\n### PoC\n**Column enumeration (error-based):**\n```\nGET /redaxo/index.php?page=users&list=<list_name>&sort=nonexistent_col&sorttype=asc\n```\nResponse will contain: `Unknown column 'nonexistent_col' in 'order clause'`\n\n**Sort by password hash (data ordering leak):**\n```\nGET /redaxo/index.php?page=users&list=<list_name>&sort=password&sorttype=asc\n```\nUsers are silently reordered by their Argon2 password hash.\n\n### Impact\nAuthenticated 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.\n\n### Fix\nValidate the `sort` request parameter against the whitelist of columns registered with `setColumnSortable()` before use in the query:\n```php\npublic function getSortColumn($default = null)\n{\n    if (rex_request('list', 'string') == $this->getName()) {\n        $requested = rex_request('sort', 'string', $default);\n        if ($requested !== null && $this->hasColumnOption($requested, REX_LIST_OPT_SORT)) {\n            return $requested;\n        }\n    }\n    return $default;\n}\n```",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "redaxo/source"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "5.21.2"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 5.21.1"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/redaxo/core/security/advisories/GHSA-4f5f-j737-pm58"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-62998"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/redaxo/core/pull/6580"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/redaxo/core/commit/c44ba5206a28427984100c994010f2aaa6703efd"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/redaxo/core"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/redaxo/core/releases/tag/5.21.2"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20", "CWE-200" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-09-24T14:57:07Z",
    "nvd_published_at" : "2026-09-23T15:17:15Z"
  }
}