Spatie Laravel Media Library < 11.23.0 File Upload Restriction Bypass via FileAdder.php
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| spatie | laravel-medialibrary | affected |
|
No data.
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Spatie | Laravel Media Library |
|
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-3ggm-c5m7-hfv5 | Spatie Laravel Media Library contains a file upload restriction bypass |
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.440% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| CPEs | cpe:2.3:a:spatie:laravel_media_library:*:*:*:*:pro:*:*:* |
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Spatie
Spatie laravel Media Library |
|
| Vendors & Products |
Spatie
Spatie laravel Media Library |
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| Description | Spatie Laravel Media Library before version 11.23.0 contains a file upload restriction bypass in FileAdder::defaultSanitizer(). The sanitizer checks only the final filename suffix, allowing double-extension filenames such as shell.php.jpg to bypass the blocklist, with pathinfo() preserving inner .php stems in saved filenames. The blocklist also omits executable extensions including .php6, .shtml, and .htaccess. The double-extension bypass requires a legacy Apache AddHandler configuration to achieve PHP execution; the incomplete blocklist bypass does not. | |
| Title | Spatie Laravel Media Library < 11.23.0 File Upload Restriction Bypass via FileAdder.php | |
| Weaknesses | CWE-184 | |
| References |
|
|
| Metrics |
cvssV3_1
|