← back
CVE-2018-15133

CVE-2018-15133

CVSS 8.1 HIGHEPSS 76.8%● KEVCWE-502
In short

Laravel applications can execute arbitrary code if an attacker manipulates a cookie token and knows the app's secret key. This happens because the framework unsafely deserializes untrusted data, treating it as executable code instead of just information.

Technical detail

CVE-2018-15133 exploits unsafe unserialization of the X-XSRF-TOKEN cookie via the decrypt() method in Illuminate/Encryption/Encrypter.php. The attack requires knowledge of the application key (a high barrier) but leverages PHP object gadget chains (phpggc) to achieve remote code execution. Impact is critical RCE with application-level privileges.

Summary generated and translated by AI from the official 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.
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Affected products
n/a · n/a
⚠ Public resources, to assess the exposure of systems you control or are authorized to test. Test only with authorization.

Want to know if your infrastructure is exposed to this?

Talk to TrueHacking →