Описание
Laravel TokenGuard authentication bypass through non-string API credentials
Laravel's built-in TokenGuard, when configured with a standard token-based API guard, may be bypassed to authenticate as an arbitrary existing user without knowledge of their valid API token.
Under certain database configurations (MySQL/MariaDB) an attacker can submit a specially crafted, non-string credential value that is mishandled during the authentication lookup, causing the underlying query to match an unintended user record rather than failing authentication as expected.
Impact
An unauthenticated attacker may authenticate as another user without possessing that user's API token, leading to authentication bypass and account takeover on any route protected by the affected guard.
Ссылки
- https://github.com/laravel/framework/security/advisories/GHSA-f9x3-7vq9-cph6
- https://nvd.nist.gov/vuln/detail/CVE-2026-114509
- https://github.com/laravel/framework/commit/8dbb08bccac1be095dba4a9d259a419620f1e8a5
- https://github.com/laravel/framework/commit/9b21ce0a9bb2b2599978bc0b0df4abea952ad31c
- https://github.com/laravel/framework/releases/tag/v12.68.0
- https://github.com/laravel/framework/releases/tag/v13.29.0
Пакеты
laravel/framework
>= 13.0.0, < 13.29.0
13.29.0
laravel/framework
< 12.68.0
12.68.0
Связанные уязвимости
Laravel is a web application framework. Prior to 12.68.0 and 13.29.0, TokenGuard configured as a standard token-based API guard does not reject a crafted non-string credential. Under affected MySQL or MariaDB configurations, the authentication lookup can match an unintended existing user, allowing an unauthenticated attacker to bypass authentication and take over an account on routes protected by TokenGuard. This issue is fixed in versions 12.68.0 and 13.29.0.
Laravel is a web application framework. Prior to 12.68.0 and 13.29.0, ...
Уязвимость компонента TokenGuard PHP-фреймворка Laravel, позволяющая нарушителю обойти существующие механизмы безопасности и получить несанкционированный доступ к учетной записи пользователя