CVEs / CVE-2018-15133
CVE-2018-15133: Laravel Deserialization of Untrusted Data Vulnerability
- Known exploited in the CISA KEV catalog since 16 Jan 2024
- high 8.1 CVSS 3.1 (NVD)
- EPSS 76.5% chance of exploitation in the next 30 days, higher than 99% of CVEs (30 Oct 2026)
- Last changed at its sources
Are you affected? Check your servers with Stackurity: it lists the software on each server and the vulnerabilities to fix first.
Check your servers with Stackurity Already using Stackurity? Search for CVE-2018-15133
Summary
Laravel Framework contains a deserialization of untrusted data vulnerability, allowing for remote command execution. This vulnerability may only be exploited if a malicious user has accessed the application encryption key (APP_KEY environment variable).
Description
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.
Affected and fixed versions
| Product | Affected | Fixed in |
|---|---|---|
| n/a n/a | n/a | — |
| Product | Affected | Fixed in |
|---|---|---|
| laravel/framework (Packagist) | up to and including 5.5.40 | — |
| laravel/framework (Packagist) | from 5.6.0, before 5.6.30 | 5.6.30 |
Package versions from GHSA-qvqm-h22r-4cp9.
Exploitation
| In CISA KEV since | 16 Jan 2024 |
|---|---|
| Due date for US federal agencies | 6 Feb 2024 |
| Used in ransomware campaigns | Unknown |
| Required action | Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable. |
Severity
| CVSS 3.1 | 8.1 highCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:HScored by NVD |
|---|---|
| Weakness | CWE-502 |
References
- CVE-2018-15133 on NVD
- CVE-2018-15133 in the CISA KEV catalog
- https://laravel.com/docs/5.6/upgrade#upgrade-5.6.30 (cited by CISA)
- CVE-2018-15133 on OSV
- http://packetstormsecurity.com/files/153641/PHP-Laravel-Framework-Token-Unserialize-Remote-Command-Execution.html Exploit, Third Party Advisory, VDB Entry
- https://laravel.com/docs/5.6/upgrade#upgrade-5.6.30 Vendor Advisory
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2018-15133 US Government Resource
Sources
Exploitation status from the CISA Known Exploited Vulnerabilities catalog. EPSS scores from FIRST. Descriptions, severity and references from the National Vulnerability Database. Open-source package versions from OSV (CC-BY 4.0). Text is shown as each source states it; Stackurity does not edit it. Check the vendor's advisory before acting.
This product uses data from the NVD API but is not endorsed or certified by the NVD.