CVE-2018-15133: Laravel/framework Remote Code Execution Vulnerability
HIGHCVE-2018-15133 is a HIGH (CVSS 8.1) remote code execution vulnerability (CWE-502: Deserialization of Untrusted Data) affecting Laravel/framework libraries in the Packagist ecosystem. The issue involves laravel framework rce vulnerability. Remediation is available by upgrading affected packages to version 5.6.30.
CVE-2018-15133 at a Glance
Security Impact
CVSS: 8.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2018-15133
To remediate this vulnerability, upgrade all affected Laravel/framework dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade laravel/framework to Latest secure release
Upgrade laravel/framework to 5.6.30
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for laravel/framework
How to Check if You Are Affected
To determine whether your application is affected by CVE-2018-15133, inspect your project dependencies for Laravel/framework:
inspect dependencies for laravel/framework
Analyze the terminal output to locate any version of Laravel/framework 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 Laravel/framework, 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
CVE-2018-15133 Affected Laravel/framework Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
laravel/framework
|
Packagist |
≤ 5.5.40
|
|
|
laravel/framework
|
Packagist |
≥ 5.6.0
< 5.6.30
|
5.6.30
|
References
Frequently Asked Questions
What is CVE-2018-15133?
Which Laravel/framework versions are affected?
What version fixes CVE-2018-15133?
Is laravel/framework affected?
What is the CVSS score of CVE-2018-15133?
What CWE is associated with CVE-2018-15133?
How can I check Packagist dependencies for CVE-2018-15133?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-qvqm-h22r-4cp9",
"modified" : "2025-01-13T14:08:12Z",
"published" : "2022-05-14T00:56:30Z",
"aliases" : [ "CVE-2018-15133" ],
"summary" : "Laravel Framework RCE Vulnerability",
"details" : "In Laravel Framework through 5.5.40 and 5.6.x through 5.6.29, remote code execution might occur as a result of an unserialize call on a potentially untrusted X-XSRF-TOKEN value. This involves the decrypt method in `Illuminate/Encryption/Encrypter.php` and PendingBroadcast in `gadgetchains/Laravel/RCE/3/chain.php` in phpggc. The attacker must know the application key, which normally would never occur, but could happen if the attacker previously had privileged access or successfully accomplished a previous attack.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "laravel/framework"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "5.5.40"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "laravel/framework"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "5.6.0"
}, {
"fixed" : "5.6.30"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 5.6.29"
}
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-15133"
}, {
"type" : "WEB",
"url" : "https://github.com/laravel/framework/commit/d84cf988ed5d4661a4bf1fdcb08f5073835083a0"
}, {
"type" : "WEB",
"url" : "https://github.com/kozmic/laravel-poc-CVE-2018-15133"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/laravel/framework"
}, {
"type" : "WEB",
"url" : "https://laravel.com/docs/5.6/upgrade#upgrade-5.6.30"
}, {
"type" : "WEB",
"url" : "http://packetstormsecurity.com/files/153641/PHP-Laravel-Framework-Token-Unserialize-Remote-Command-Execution.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-502" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2023-07-22T00:13:29Z",
"nvd_published_at" : "2018-08-09T19:29:00Z"
}
}