VDB
Sign up
CRITICAL9.9

GHSA-qm5c-m76r-2hfr

Laravel RCE vulnerability in "cookie" session driver

Quick fix

GHSA-qm5c-m76r-2hfr — laravel/framework: upgrade to the fixed version with the command below.

composer require laravel/framework:^6.18.31

Details

Applications using the "cookie" session driver that were also exposing an encryption oracle via their application were vulnerable to remote code execution. An encryption oracle is a mechanism where arbitrary user input is encrypted and the encrypted string is later displayed or exposed to the user. This combination of scenarios lets the user generate valid Laravel signed encryption strings for any plain-text string, thus allowing them to craft Laravel session payloads when an application is using the "cookie" driver.

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/laravel/framework
Introduced in: 4.1.0Fixed in: 6.18.31
Fixcomposer require laravel/framework:^6.18.31
Packagist/laravel/framework
Introduced in: 7.0.0Fixed in: 7.22.4
Fixcomposer require laravel/framework:^7.22.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"]}'