# CVE-2021-45040: 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 v…

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 3.16%, higher than 88% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-03-17T20:22:52.000Z
- Modified: 2026-06-17T04:13:05.103Z
- Weaknesses: CWE-434
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- spatie laravel_media_library: up to 1.17.10; from 2.0.0 up to 2.1.6

## Every score

- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 10.0 High `AV:N/AC:L/Au:N/C:C/I:C/A:C`

## References

- <https://cybersecthreat.com/2022/03/14/cve-2021-45040/> (exploit, mitigation, third-party-advisory)
- <https://spatie.be/docs/laravel-medialibrary/v9/handling-uploads-with-media-library-pro/processing-uploads-on-the-server> (vendor-advisory)

## Sources

- CVE List: [CVE-2021-45040](https://www.cve.org/CVERecord?id=CVE-2021-45040), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2021-45040](https://nvd.nist.gov/vuln/detail/CVE-2021-45040), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-45040 · Whole record: https://cve.day/CVE-2021-45040.json · Rebuilt by cve.day 2026-11-25T22:58:07.231Z
