GHSA-2867-6rrm-38gr: Laravel Cookie serialization vulnerability
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 | >= 5.5.0, < 5.6.30 | 5.6.30 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from cookie decryption combined with unserialization. The EncryptCookies middleware's decryptCookie method called the encrypter with serialization enabled (via static::$serialize=true), making it vulnerable to PHP object injection attacks if the APP_KEY was exposed. The patch in 5.6.30 disabled serialization by default (static::$serialize=false), which addressed the CWE-502 vulnerability by removing unsafe deserialization of client-provided cookies.