# GHSA-qm5c-m76r-2hfr: Laravel RCE vulnerability in "cookie" session driver

- Severity: Critical 9.9 (CVSS:3.1, scored by GitHub) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2024-05-15T22:16:52.000Z
- Modified: 2024-11-29T05:40:19.902Z

## 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.

(As written by GitHub Advisory Database.)

## Affected

- laravel/framework (Packagist): from 4.1.0 before 6.18.31; from 7.0.0 before 7.22.4

## References

- <https://blog.laravel.com/laravel-cookie-security-releases> (web)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/laravel/framework/2020-07-27-1.yaml> (web)
- <https://github.com/laravel/framework> (package)

## Sources

- GitHub Advisory Database: [GHSA-qm5c-m76r-2hfr](https://github.com/advisories/GHSA-qm5c-m76r-2hfr), CC-BY-4.0, modified 2024-11-29

---

Page: https://cve.day/GHSA-qm5c-m76r-2hfr · Whole record: https://cve.day/GHSA-qm5c-m76r-2hfr.json · Rebuilt by cve.day 2026-11-25T22:56:32.854Z
