CVE-2026-19278 PUBLISHED

Stackrox: stackrox: privilege escalation via unanchored regular expressions in auth m2m role mappings

Assigner: redhat
Reserved: 07.08.2026 Published: 10.08.2026 Updated: 11.08.2026

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.

Metrics

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

Product Status

Vendor Red Hat
Product Red Hat Advanced Cluster Security 4
Versions Default: affected

Workarounds

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.

Credits

  • Red Hat would like to thank Sergey (@r0binak) Kanibor (Luntry) for reporting this issue.

References

Problem Types

  • Permissive Regular Expression CWE