high8.7
CVE-2025-32957
baserCMS has Unsafe File Upload Leading to Remote Code Execution (RCE)
Impact
baserCMS is a website development framework. Prior to version 5.2.3, the application's restore function allows users to upload a .zip file, which is then automatically extracted. A PHP file inside the archive is included using require_once without validating or restricting the filename. An attacker can craft a malicious PHP file within the zip and achieve arbitrary code execution when it is included. This issue has been patched in version 5.2.3.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| composer | baserproject/basercms | <= 5.2.2 | 5.2.3 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Basercms | Basercms | before 5.2.3 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/advisories/GHSA-hv78-cwp4-8r7r
- https://github.com/baserproject/basercms/security/advisories/GHSA-hv78-cwp4-8r7r
- https://nvd.nist.gov/vuln/detail/CVE-2025-32957
- https://basercms.net/security/JVN_20837860
- https://github.com/baserproject/basercms/releases/tag/5.2.3