Laravel TokenGuard authentication bypass through non-string API credentials
A public exploit exists; no exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 2%. Fixed in laravel/framework 10.50.4, laravel/framework 11.56.1, laravel/framework 12.68.0 and 1 more.
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.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Laravel | Framework | <12.68.0, >=13.0.0 <13.29.0 | |
| packagist: laravel/framework | <10.50.4, >=11.0.0 <11.56.1, >=12.0.0 <12.68.0, >=13.0.0 <13.27.0 | 10.50.4, 11.56.1, 12.68.0, 13.27.0 |
Exploit evidence
1 public sources
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Framework, strongest first
Embed
A live severity badge for an advisory, README or ticket