VDB
Sign up
CRITICAL9.2

GHSA-f9x3-7vq9-cph6

Laravel TokenGuard authentication bypass through non-string API credentials

Quick fix

GHSA-f9x3-7vq9-cph6 — laravel/framework: upgrade to the fixed version with the command below.

composer require laravel/framework:^13.27.0

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/laravel/framework
Introduced in: 13.0.0Fixed in: 13.27.0
Fixcomposer require laravel/framework:^13.27.0
Packagist/laravel/framework
Introduced in: 12.0.0Fixed in: 12.68.0
Fixcomposer require laravel/framework:^12.68.0
Packagist/laravel/framework
Introduced in: 11.0.0Fixed in: 11.56.1
Fixcomposer require laravel/framework:^11.56.1
Packagist/laravel/framework
Introduced in: 0Fixed in: 10.50.4
Fixcomposer require laravel/framework:^10.50.4

References

Check it before you install it

One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.

curl -s https://vdb.ai.kr/v1/ai/check-packages \
  -H 'Content-Type: application/json' \
  -d '{"packages":["pkg:composer/laravel/framework"]}'