CVEs / CVE-2021-3129
CVE-2021-3129: Laravel Ignition File Upload Vulnerability
- Known exploited in the CISA KEV catalog since 18 Sep 2023
- critical 9.8 CVSS 3.1 (NVD)
- EPSS 99.9% chance of exploitation in the next 30 days, higher than 99% of CVEs (30 Oct 2026)
- Last changed at its sources
Are you affected? Check your servers with Stackurity: it lists the software on each server and the vulnerabilities to fix first.
Check your servers with Stackurity Already using Stackurity? Search for CVE-2021-3129
Summary
Laravel Ignition contains a file upload vulnerability that allows unauthenticated remote attackers to execute malicious code due to insecure usage of file_get_contents() and file_put_contents().
Description
Ignition before 2.5.2, as used in Laravel and other products, allows unauthenticated remote attackers to execute arbitrary code because of insecure usage of file_get_contents() and file_put_contents(). This is exploitable on sites using debug mode with Laravel before 8.4.2.
Affected and fixed versions
| Product | Affected | Fixed in |
|---|---|---|
| n/a n/a | n/a | — |
| Product | Affected | Fixed in |
|---|---|---|
| facade/ignition (Packagist) | from 2.5.0, before 2.5.2 | 2.5.2 |
| facade/ignition (Packagist) | from 2.0.0, before 2.4.2 | 2.4.2 |
| facade/ignition (Packagist) | from 1.7.0, before 1.16.14 | 1.16.14 |
| facade/ignition (Packagist) | before 1.6.15 | 1.6.15 |
Package versions from GHSA-4qwp-7c67-jmcc.
Exploitation
| In CISA KEV since | 18 Sep 2023 |
|---|---|
| Due date for US federal agencies | 9 Oct 2023 |
| Used in ransomware campaigns | Known |
| Required action | Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable. |
Severity
| CVSS 3.1 | 9.8 criticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HScored by NVD |
|---|
References
- CVE-2021-3129 on NVD
- CVE-2021-3129 in the CISA KEV catalog
- https://github.com/facade/ignition/releases/tag/2.5.2 (cited by CISA)
- CVE-2021-3129 on OSV
- http://packetstormsecurity.com/files/162094/Ignition-2.5.1-Remote-Code-Execution.html Exploit, Third Party Advisory, VDB Entry
- http://packetstormsecurity.com/files/165999/Ignition-Remote-Code-Execution.html Exploit, Third Party Advisory, VDB Entry
- https://github.com/facade/ignition/pull/334 Patch, Third Party Advisory
- https://www.ambionics.io/blog/laravel-debug-rce Exploit, Third Party Advisory
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-3129 US Government Resource
Sources
Exploitation status from the CISA Known Exploited Vulnerabilities catalog. EPSS scores from FIRST. Descriptions, severity and references from the National Vulnerability Database. Open-source package versions from OSV (CC-BY 4.0). Text is shown as each source states it; Stackurity does not edit it. Check the vendor's advisory before acting.
This product uses data from the NVD API but is not endorsed or certified by the NVD.