Remote code execution via unsafe PHP deserialization
Published Aug 19, 2022 · Updated Apr 15, 2025
Deserialization in Laravel Framework 5.1 allows remote attackers to execute operating-system commands through a crafted request. The published proof of concept adds a custom UsersController whose store method passes the cmd request parameter directly to PHP unserialize, then uses a POP gadget chain to reach system. Exploitation requires an application route that feeds attacker-controlled serialized data to unserialize; the public material does not show that Laravel exposes such a route by default.
Summary
What happened
Deserialization in Laravel Framework 5.1 allows remote attackers to execute operating-system commands through a crafted request. The published proof of concept adds a custom UsersController whose store method passes the cmd request parameter directly to PHP unserialize, then uses a POP gadget chain to reach system. Exploitation requires an application route that feeds attacker-controlled serialized data to unserialize; the public material does not show that Laravel exposes such a route by default.
The record
- CVE
- CVE-2022-2886
- Published
- Aug 19, 2022
- Updated
- Apr 15, 2025
- Vendor
- Laravel
- Product
- Laravel Framework
- Classifications
- CWE-502, T1059, T1190
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Aug 19, 2022CVE publishedPublication date reported by the CVE source.
- Apr 15, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=5.1
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- Laravel5.1 POP4 RCE proof of conceptproof of concept · unverified
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo