Skip to content

GHSA-qm5c-m76r-2hfr

Laravel RCE vulnerability in "cookie" session driver

Critical Packagist
Severity
9.9 / 10
Critical · CVSS 3.1
Exploit chance (EPSS)
—
No score published
Known exploited
No
Not in CISA's catalog
Weakness
—
Not classified
Fix
6.18.31
Upgrade laravel/framework to this version or later

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.

Affected versions

Packagist

PackageVulnerableFixed in
laravel/framework
>= 4.1.0, < 6.18.31
6.18.31
laravel/framework
>= 7.0.0, < 7.22.4
7.22.4

How to fix

Move to the fixed version or later with your package manager, update the lockfile, and run your tests. If the package only arrives through another dependency, upgrade that dependency first. If none of its releases pulls a fixed version yet, force the version with your package manager's override.

laravel/framework Packagist → 6.18.31

composer
composer require laravel/framework:^6.18.31

Severity breakdown

CVSS 3.1 9.9

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

Attack vector
Network
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

References

Timeline

  1. Published
  2. Last updated by the source
AdvisorySeverityWhy it's related
CVE-2018-15133
Laravel Framework RCE Vulnerability
High Known exploited Also affects laravel/framework
GHSA-f9x3-7vq9-cph6
Laravel TokenGuard authentication bypass through non-string API credentials
Critical Also affects laravel/framework
GHSA-5wcm-3v2w-8362
Laravel relationship inclusion can trigger unauthorized data destruction
Medium Also affects laravel/framework
GHSA-jh5r-qr3c-85q8
Laravel: XSS in Debug Page Information
Low Also affects laravel/framework
GHSA-crmm-hgp2-wgrp
Laravel Framework: Temporary Signed URL Path Confusion
Medium Also affects laravel/framework
GHSA-5vg9-5847-vvmq
Laravel Framework: CRLF injection in default email rule
High Also affects laravel/framework
GHSA-83wp-f5c3-hqqr
Laravel framework susceptible to reflected cross-site scripting
Medium Also affects laravel/framework
GHSA-546h-56qp-8jmw
Laravel framework susceptible to reflected cross-site scripting
Medium Also affects laravel/framework
Is this in your code?

MergeHarbor checks every repository's dependencies against this database, ranks what matters by exploitability and reachability, routes it to the owning team and opens the fix pull request.

Check your repos with MergeHarbor