REDHAT-BUG-2512524: Medium severity StackRox/RHACS Central Auth Machine-to-Machine (M2M) Token Exchange vulnerability
A flaw was found in StackRox/RHACS Central's Auth Machine-to-Machine (M2M) token exchange. When an administrator configures M2M role mappings, the valueExpression is compiled into a regular expression without anchoring (no ^ or $ delimiters). Because Go's regexp.MatchString performs substring matching, a mapping intended to match an exact claim value instead matches any token claim that contains that value as a substring. An identity whose claim value is a superstring of the configured pattern (e.g. a branch named "main-poc" matching a mapping for "main") can exchange its third-party OIDC token for a Central access token carrying a role it was never intended to receive. The token exchange endpoint (ExchangeAuthMachineToMachineToken) is unauthenticated.
Affected Software
Event History
Frequently Asked Questions
What is the severity of REDHAT-BUG-2512524?
The severity of REDHAT-BUG-2512524 is classified as medium with a risk score of 4.
What is the main issue described in REDHAT-BUG-2512524?
The issue involves a flaw in StackRox/RHACS Central's Auth Machine-to-Machine token exchange where the valueExpression is compiled into a regex without proper anchoring.
How can I mitigate the risk of REDHAT-BUG-2512524?
To mitigate the risk of REDHAT-BUG-2512524, ensure that M2M role mappings are configured to use anchored regex patterns.
What software is affected by REDHAT-BUG-2512524?
The affected software for REDHAT-BUG-2512524 is StackRox/RHACS Central's Auth Machine-to-Machine Token Exchange.
When was REDHAT-BUG-2512524 published?
REDHAT-BUG-2512524 was published on August 7, 2026.