CVE-2023-29931: laravel-s vulnerable to Local File Inclusion
9.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.55995%
CWE
Published
6/22/2023
Updated
12/7/2024
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| hhxsv5/laravel-s | composer | < 3.7.36 | 3.7.36 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from the handleStatic function's URI validation logic. The original code checked for '/../' but not '/..' in the URI path. The patch changed 'strpos($uri, '/../')' to 'strpos($uri, '/..')', indicating the original check was insufficient to block all path traversal attempts. This function handles static file serving, and improper sanitization allows LFI via specially crafted URIs. The direct correlation between the security patch and this function's logic confirms its role in the vulnerability.