What’s Vulnerable › Vulnerabilities
GHSA-qm5c-m76r-2hfr: Laravel RCE vulnerability in "cookie" session driver
- Severity: critical (CVSS 9.9 v3.1)
- Exploited in the wild: not listed in CISA KEV
- Public exploit or detection template: none known
- Published: 2024-05-15 · updated 2024-11-29
Description
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.
Affected products
- Packagist Laravel/Framework: from 4.1.0 before 6.18.31; from 7.0.0 before 7.22.4; 5.0.30, 5.2.41, v4.1.0, v4.1.1, v4.1.10, v4.1.11 (+528) — fixed in 6.18.31, 7.22.4
How to fix
Upgrade to a fixed version: Packagist Laravel/Framework 6.18.31, 7.22.4. Check the vendor advisory for mitigations.
References
- https://blog.laravel.com/laravel-cookie-security-releases
- https://github.com/FriendsOfPHP/security-advisories/blob/master/laravel/framework/2020-07-27-1.yaml
- https://github.com/laravel/framework
Get alerted when GHSA-qm5c-m76r-2hfr or the next vulnerability affects your stack