Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. laravel/framework
  4. ›
  5. GHSA-qm5c-m76r-2hfr

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

May 15, 2024

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.

References

  • blog.laravel.com/laravel-cookie-security-releases
  • github.com/FriendsOfPHP/security-advisories/blob/master/laravel/framework/2020-07-27-1.yaml
  • github.com/advisories/GHSA-qm5c-m76r-2hfr
  • github.com/laravel/framework

Code Behaviors & Features

Detect and mitigate GHSA-qm5c-m76r-2hfr with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 4.1.0 before 6.18.31, all versions starting from 7.0.0 before 7.22.4

Fixed versions

  • 6.18.31
  • 7.22.4

Solution

Upgrade to versions 6.18.31, 7.22.4 or above.

Impact 9.9 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Learn more about CVSS

Source file

packagist/laravel/framework/GHSA-qm5c-m76r-2hfr.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:51 +0000.