CVE-2021-45040Spatie Laravel Media Library
Critical 9.8 No auth needed
Follow: this CVE · Spatie · Spatie Laravel Media Library We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 3.2% probability of exploitation in 30 days · percentile 89
- Auth required
- No
- Published
- Mar 17, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-434
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
The Spatie media-library-pro library through 1.17.10 and 2.x through 2.1.6 for Laravel allows remote attackers to upload executable files via the uploads route.
What to do
- Apply the vendor's security update for Laravel Media Library.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| spatie | laravel_media_library | ≤ 1.17.10 |
| spatie | laravel_media_library | ≥ 2.0.0 ≤ 2.1.6 |
Official sources
References
Links published by the sources. Open them with care.
- cybersecthreat.com Exploit Mitigation Third Party Advisory
- spatie.be Vendor Advisory