CVE-2023-25655: baserCMS allows any file to be uploaded
9.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.48627%
CWE
Published
3/23/2023
Updated
3/28/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 |
|---|---|---|---|
| baserproject/basercms | composer | < 4.7.5 | 4.7.5 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper validation handling in the file upload workflow. The commit diff shows critical changes to BcUploadBehavior.afterValidate method - adding validation error checks before processing upload data. Previously, even when validation errors occurred (e.g., invalid file types), the code would still process the upload via setupRequestData and setupTmpData. This bypass allowed dangerous file uploads. The CWE-434 mapping confirms this is an unrestricted file upload vulnerability directly tied to validation logic flaws in upload handling functions.