Laravel RCE vulnerability in "cookie" session driver
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 software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Composer package | laravel/framework | >= 4.1.0, < 6.18.31, >= 7.0.0, < 7.22.4 | 6.18.31, 7.22.4 |
References
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H- Weakness (CWE)
-- Platform
- Composer
- Package
laravel/framework- Disclosed
- 15.05.2024
- Updated
- 11.10.2026 10:22
Sources and licenses
OSV / GitHub Advisory Database - GHSA-qm5c-m76r-2hfr - CC BY 4.0
Vulnerability history: laravel/framework
All published vulnerabilities of this package (Composer package), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 26
- First → latest
- 01.2021 09.2026
- Without a fix
- 0
- Exploited in attacks
- 1
Severity breakdown
- Critical 2
- High 11
- Medium 12
- Low 1
Disclosures per year
- 2021: 5
- 2022: 5
- 2023: 0
- 2024: 10
- 2025: 3
- 2026: 3
-
Laravel RCE vulnerability in "cookie" session driver this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.