Description
A flaw was found in StackRox/RHACS Central's Auth Machine-to-Machine (M2M) token exchange. When an administrator configures M2M role mappings, the system uses unanchored regular expressions for matching claim values. This allows an attacker with a valid OpenID Connect (OIDC) token, whose claim value is a superstring of a configured pattern, to gain unauthorized access to roles they were not intended to receive. This can lead to privilege escalation within the system.
Published: 2026-08-10
Score: 6.8 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability lies in the way StackRox/RHACS Central processes machine‑to‑machine (M2M) role mappings during token exchange. When administrators create role mappings, the system evaluates claim values against regular expressions that are not anchored. Consequently, if an attacker possesses an OpenID Connect token whose claim value contains a superstring of a configured pattern, the unanchored regex will match and assign the attacker a role that the administrator did not intend to grant. This improper input validation directly enables a privilege escalation attack within the RHACS Central system, as described by CWE‑625.

Affected Systems

Red Hat Advanced Cluster Security 4 (RHACS Central) is the affected product. Any deployment that relies on StackRox or RHACS Central for authenticating M2M tokens with custom role mappings is vulnerable, as the flaw resides in the central authentication component.

Risk and Exploitability

The CVSS score of 6.8 indicates moderate severity. EPSS data is unavailable, and the issue is not listed in the CISA KEV catalog, suggesting no widespread exploitation has been reported. The attack requires a valid OIDC token and the presence of an unanchored regex in a role mapping, implying that the threat surface is limited to scenarios where administrators have improperly configured mappings or attackers can generate tokens that match superstring patterns. Overall, the risk is moderate, with a reliance on administrative oversight to mitigate exposure.

Generated by OpenCVE AI on August 10, 2026 at 13:21 UTC.

Remediation

Vendor Workaround

Administrators should review and update their Auth Machine-to-Machine (M2M) role mappings in StackRox/RHACS Central to ensure that `valueExpression` regular expressions are properly anchored (e.g., by adding `^` and `$` delimiters). This ensures exact matching of claim values and prevents unintended role assignments. Reloading the configuration or restarting the Central service may be required for changes to take effect.


OpenCVE Recommended Actions

  • Modify all Auth Machine-to-Machine role mappings so that each valueExpression regular expression is fully anchored by adding start (^) and end ($) delimiters, ensuring only exact matches are accepted.
  • Reload the Central configuration or restart the Central service to enforce the updated regex rules.
  • Implement monitoring to log claim values and assigned roles for M2M tokens, and alert on any unexpected role assignments that deviate from configured patterns.

Generated by OpenCVE AI on August 10, 2026 at 13:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 10 Aug 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Mon, 10 Aug 2026 12:30:00 +0000

Type Values Removed Values Added
Description A flaw was found in StackRox/RHACS Central's Auth Machine-to-Machine (M2M) token exchange. When an administrator configures M2M role mappings, the system uses unanchored regular expressions for matching claim values. This allows an attacker with a valid OpenID Connect (OIDC) token, whose claim value is a superstring of a configured pattern, to gain unauthorized access to roles they were not intended to receive. This can lead to privilege escalation within the system.
Title Stackrox: stackrox: privilege escalation via unanchored regular expressions in auth m2m role mappings
First Time appeared Redhat
Redhat advanced Cluster Security
Weaknesses CWE-625
CPEs cpe:/a:redhat:advanced_cluster_security:4
Vendors & Products Redhat
Redhat advanced Cluster Security
References
Metrics cvssV3_1

{'score': 6.8, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N'}


Subscriptions

Redhat Advanced Cluster Security
cve-icon MITRE

Status: PUBLISHED

Assigner: redhat

Published:

Updated: 2026-08-10T18:09:21.966Z

Reserved: 2026-08-07T15:16:51.217Z

Link: CVE-2026-19278

cve-icon Vulnrichment

Updated: 2026-08-10T18:09:13.914Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-10T13:30:05Z

Weaknesses
  • CWE-625

    Permissive Regular Expression