Live threats

All CVEs / Spatie

CVE-2021-45040Spatie Laravel Media Library

Critical 9.8 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Laravel Media Library.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected products (CPE)

VendorProductVersions
spatielaravel_media_library≤ 1.17.10
spatielaravel_media_library≥ 2.0.0 ≤ 2.1.6

Official sources

References

Links published by the sources. Open them with care.