CVE-2018-15133highunder attackCWE-502

CVE-2018-15133

Published · Updated

E-mail alert when it lands in KEV, gets a public PoC or its score goes up.

100Vexday Risk Score

Patch now. It under exploitation confirmed by CISA and has a working public exploit.

ssvc Actcvss 8.1epss 77%
from disclosure to weapon5 days
Published on NVDAug 9
1st PoC+5d
metasploitAug 7
CISA KEV+1986d
Action required by CISAfederal deadline: 2024-02-06

Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.

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.

The full analysis of this CVE is available in Portuguese →

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 PoCs found — 27✓ VexDay Proof
exploitdb✓ VexDay Proofwww.exploit-db.com/exploits/47129githubgithub.com/kozmic/laravel-poc-CVE-2018-15133★ 258githubgithub.com/aljavier/exploit_laravel_cve-2018-15133★ 57githubgithub.com/pwnedshell/Larascript★ 35githubgithub.com/Prabesh01/Laravel-PHP-Unit-RCE-Auto-shell-uploader★ 6githubgithub.com/AzhariKun/CVE-2018-15133★ 3githubgithub.com/yeahhbean/Laravel-CVE-2018-15133★ 2githubgithub.com/Bilelxdz/Laravel-CVE-2018-15133★ 0githubgithub.com/NatteeSetobol/CVE-2018-15133-Lavel-Expliot★ 0githubgithub.com/0xSalle/cve-2018-15133★ 0githubgithub.com/Loaxert/CVE-2018-15133-PoC★ 0githubgithub.com/flame-11/CVE-2018-15133-laravel-framework★ 0githubgithub.com/bukitbarisan/laravel-rce-cve-2018-15133★ 0githubgithub.com/AlienX2001/better-poc-for-CVE-2018-15133★ 0githubgithub.com/Cr4zyD14m0nd137/Lab-for-cve-2018-15133★ 0vulncheckvulncheck.com/xdb/2c6de6585be5unverifiedvulncheckvulncheck.com/xdb/8027eabdd92dunverifiedvulncheckvulncheck.com/xdb/bb622dfa8b57unverifiedvulncheckvulncheck.com/xdb/0a29cfc05e95unverifiedvulncheckvulncheck.com/xdb/b1064b8f348aunverifiedvulncheckvulncheck.com/xdb/b31ca993356funverifiedvulncheckvulncheck.com/xdb/45e7d1957c7funverifiedvulncheckvulncheck.com/xdb/7fa45a25cb32unverifiedvulncheckvulncheck.com/xdb/2ce024551afbunverifiedvulncheckvulncheck.com/xdb/3004cb8714e9unverifiedcve_referencepacketstormsecurity.com/files/153641/PHP-Laravel-Framework-Token-Unserialize-Remote-Command-Execution.htmlunverifiedvulncheckvulncheck.com/xdb/be7a45b53d16unverified
⚠ Public resources, to assess the exposure of systems you control or are authorized to test. Test only with authorization.