CVE-2026-125168: Privilege Escalation in extension "OAuth2 authentication and authorization" (oauth2)
Privilege Escalation in extension "OAuth2 authentication and authorization" (oauth2)
Other sources
The Keycloak resource server grants administrator rights to every new user, and with "overrideUser" enabled also to existing users on each login, unless the site defines a rule for administrators. Any user of the Keycloak realm who may sign in to the TYPO3 client can therefore obtain a backend administrator account.
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
composer/mfc/oauth2to a version that resolves this vulnerability.Fixed in 4.4.1
Event History
Frequently Asked Questions
Who is exposed to this issue?
TYPO3 sites using the oauth2 extension as a Keycloak resource server are exposed if users from the Keycloak realm can sign in to the TYPO3 client and no rule for administrators is defined.
What does an attacker need to exploit it?
An attacker needs a Keycloak realm account that is permitted to sign in to the TYPO3 client. A newly created TYPO3 user can receive backend administrator rights; with overrideUser enabled, an existing user can receive those rights on login as well.
Does the issue affect existing users or only newly created accounts?
It affects every new user by default under the described condition. Existing users are also affected when overrideUser is enabled, because administrator rights are applied on each login.
What configuration should be reviewed during triage?
Review whether the TYPO3 site defines a rule for administrators and whether overrideUser is enabled. Also identify which Keycloak realm users are allowed to sign in to the TYPO3 client.