GHSA-2867-6rrm-38gr: Illuminate/cookie Laravel Cookie Serialization Vulnerability Vulnerability

HIGH
CWE-502
Published
Advisory Summary

GHSA-2867-6rrm-38gr is a HIGH laravel cookie serialization vulnerability vulnerability (CWE-502: Deserialization of Untrusted Data) affecting Illuminate/cookie libraries in the Packagist ecosystem. The issue involves laravel cookie serialization vulnerability. Remediation is available by upgrading affected packages to version 5.6.30.

GHSA-2867-6rrm-38gr at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-2867-6rrm-38gr
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-502: Deserialization of Untrusted Data
Affected Product Illuminate/cookie
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix GHSA-2867-6rrm-38gr

To remediate this vulnerability, upgrade all affected Illuminate/cookie dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

illuminate/cookie fixed: 5.6.30
Upgrade illuminate/cookie to 5.6.30
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for illuminate/cookie

How to Check if You Are Affected

To determine whether your application is affected by GHSA-2867-6rrm-38gr, inspect your project dependencies for Illuminate/cookie:

inspect dependencies for illuminate/cookie

Analyze the terminal output to locate any version of Illuminate/cookie in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.6.30), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-502: Deserialization of Untrusted Data, where the product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid. In Illuminate/cookie, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Laravel 5.6.30 is a security release of Laravel and is recommended as an immediate upgrade for all users. Laravel 5.6.30 also contains a breaking change to cookie encryption and serialization logic. Refer to [laravel advisory](https://laravel.com/docs/5.6/upgrade#upgrade-5.6.30) for more details and read the notes carefully when upgrading your application.

GHSA-2867-6rrm-38gr Affected Illuminate/cookie Versions

1 component(s)
Fixed Versions:
5.6.30
Product / Package Ecosystem Affected Versions Fixed Version
illuminate/cookie
Packagist
≥ 5.5.0
< 5.6.30
5.6.30

References

Frequently Asked Questions

What is GHSA-2867-6rrm-38gr?
GHSA-2867-6rrm-38gr is a security vulnerability in Illuminate/cookie involving Laravel Cookie serialization vulnerability under CWE-502: Deserialization of Untrusted Data.
Which Illuminate/cookie versions are affected?
Affected versions include releases prior to 5.6.30 across affected packages: illuminate/cookie.
What version fixes GHSA-2867-6rrm-38gr?
Upgrading to 5.6.30 (or the latest patched release for your respective branch) resolves the vulnerability.
Is illuminate/cookie affected?
Yes, illuminate/cookie is affected in releases prior to 5.6.30. Upgrade your dependency to 5.6.30 or later.
What CWE is associated with GHSA-2867-6rrm-38gr?
GHSA-2867-6rrm-38gr is classified under CWE-502: Deserialization of Untrusted Data (The product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid.).
How can I check Packagist dependencies for GHSA-2867-6rrm-38gr?
Run the dependency tree command: 'inspect dependencies for illuminate/cookie'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-2867-6rrm-38gr",
  "modified" : "2024-05-15T21:56:10Z",
  "published" : "2024-05-15T21:56:10Z",
  "aliases" : [ ],
  "summary" : "Laravel Cookie serialization vulnerability",
  "details" : "Laravel 5.6.30 is a security release of Laravel and is recommended as an immediate upgrade for all users. Laravel 5.6.30 also contains a breaking change to cookie encryption and serialization logic. Refer to [laravel advisory](https://laravel.com/docs/5.6/upgrade#upgrade-5.6.30) for more details and read the notes carefully when upgrading your application.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "illuminate/cookie"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "5.5.0"
      }, {
        "fixed" : "5.6.30"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/illuminate/cookie/2018-08-08-1.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/illuminate/cookie"
  }, {
    "type" : "WEB",
    "url" : "https://laravel.com/docs/5.6/upgrade#upgrade-5.6.30"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-502" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-05-15T21:56:10Z",
    "nvd_published_at" : null
  }
}