GHSA-2ffv-r4r9-r8xr: Laravel RCE vulnerability in "cookie" session driver
N/A
CVSS Score
Basic Information
CVE ID
-
GHSA ID
EPSS Score
-
CWE
Published
5/15/2024
Updated
5/15/2024
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
-
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| illuminate/cookie | composer | >= 4.1.0, < 6.18.31 | 6.18.31 |
| illuminate/cookie | composer | >= 7.0.0, < 7.22.4 | 7.22.4 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from missing HMAC-based validation during cookie encryption/decryption. The pre-patch implementation in EncryptCookies middleware allowed arbitrary encrypted values to be accepted as valid cookies if an encryption oracle existed. The functions responsible for raw encryption/decryption (without HMAC context) are the core vulnerability points, as they enabled cookie forgery. The fix introduced HMAC prefixing in these methods, confirming their central role in the vulnerability.