Vulnerability DatabaseGHSA-2867-6rrm-38gr

GHSA-2867-6rrm-38gr: 
PHP vulnerability analysis and mitigation

Overview

The Laravel Cookie serialization vulnerability (GHSA-2867-6rrm-38gr) was identified in Laravel versions 5.5.0 to 5.6.30. This high-severity security issue affects the illuminate/cookie package and was disclosed on August 7, 2018. The vulnerability is related to cookie encryption and serialization logic in Laravel framework (Laravel Docs, GitHub Advisory).

Technical details

The vulnerability is classified as CWE-502 and involves potential exploitation of PHP object serialization/unserialization of cookie values. While Laravel cookies are encrypted and signed by default, if an attacker gains access to the application's encryption key (APP_KEY environment variable), they could craft malicious cookie values to exploit vulnerabilities in PHP's object serialization process (Laravel Docs).

Impact

If exploited, this vulnerability could allow malicious actors with access to the application's encryption key to call arbitrary class methods within the application through crafted cookie values. The vulnerability invalidates all application sessions, requiring users to log in again unless they have a remember_token set (Laravel Docs).

Exploitability

The vulnerability can only be exploited if a malicious user has access to the application's encryption key (APP_KEY environment variable). This typically occurs in scenarios involving ex-employees or other parties who previously had access to the encryption key (Laravel Docs).

Mitigation and workarounds

Laravel 5.6.30 addresses this vulnerability by disabling all serialization/unserialization of cookie values by default. Organizations can re-enable cookie serialization if needed through the App\Http\Middleware\EncryptCookies middleware by setting the static $serialize property. However, this is only recommended while making applications compatible with the security changes. If there's suspicion that the encryption key has been compromised, it should be rotated to a new value (Laravel Docs).

Additional resources


Source: This report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-6vhm-xfmv-94pjHIGH7.5
  • PHP logoPHP
  • simplesamlphp/saml2
NoNoNov 05, 2026
CVE-2026-123125MEDIUM6.3
  • PHP logoPHP
  • cpe:2.3:a:sensiolabs:symfony
NoYesNov 05, 2026
CVE-2026-121949LOW2.3
  • PHP logoPHP
  • cpe:2.3:a:sensiolabs:symfony
NoYesNov 05, 2026
CVE-2026-118517LOW2.3
  • PHP logoPHP
  • cpe:2.3:a:sensiolabs:symfony
NoYesNov 05, 2026
GHSA-q2gc-fpw5-3v3cMEDIUMN/A
  • JavaScript logoJavaScript
  • tina4-python
NoYesNov 05, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management