CVE-2021-26642:
XpressEngine vulnerable to Unrestricted Upload of File with Dangerous Type
9.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.85736%
CWE
Published
1/20/2023
Updated
2/8/2023
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 |
---|---|---|---|
xpressengine/xpressengine | composer | < 3.0.15 | 3.0.15 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from insufficient file extension validation during uploads. The GitHub issue #1366 explicitly mentions adding .phar
extension filtering, indicating the file upload handler previously lacked proper extension checks. The FileHandler::handleUpload
(or similar) would be responsible for processing uploads and validating file types. Without proper extension filtering in this function, attackers could upload malicious files. The high confidence comes from the direct correlation between the patch's purpose (adding extension filtering) and the typical file upload handler implementation patterns in PHP frameworks.