CVE-2018-15133: Laravel Deserialization of Untrusted Data Vulnerability
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.
Other sources
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.
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 (APPKEY environment variable).
— CISA
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
composer/laravel/frameworkto a version that resolves this vulnerability.Fixed in 5.6.30 - Operational
If the application encryption key (APP_KEY environment variable) may have been exposed, rotate the APP_KEY to a new value.
Event History
Frequently Asked Questions
What is the severity of CVE-2018-15133?
The severity of CVE-2018-15133 is high with a severity value of 8.1.
How does CVE-2018-15133 occur?
CVE-2018-15133 occurs as a result of an unserialize call on a potentially untrusted X-XSRF-TOKEN value.
Which Laravel versions are affected by CVE-2018-15133?
Laravel Framework versions 5.5.40 and 5.6.x through 5.6.29 are affected by CVE-2018-15133.
How can I fix CVE-2018-15133?
To fix CVE-2018-15133, upgrade to Laravel Framework version 5.6.30 or newer. Refer to the official Laravel documentation for the upgrade process.
Where can I find more information about CVE-2018-15133?
You can find more information about CVE-2018-15133 in the NIST National Vulnerability Database (NVD), Laravel documentation, and Packet Storm Security website.