CVE-2025-32957: baserCMS has Unsafe File Upload Leading to Remote Code Execution (RCE)
Details 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 requireonce 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. Vector: Malicious ZIP upload + insecure requireonce PoC 1. Restore backup 1.
Published Mar 31, 2026
Affected packages
baserproject/basercms
- Ecosystem
- Composer (PHP)
- Affected
- <= 5.2.2
- Fixed in
- 5.2.3
- Check
composer show baserproject/basercms
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Details
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.
Vector: Malicious ZIP upload + insecure require_once
PoC
- Restore backup image
- Load file shell (insecure
require_once) image image
Impact
Remote Code Execution (RCE)
Credited to MinhhhCuonggg, Vatvo69.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Composer (PHP) vulnerabilities
All Composer (PHP) entriesCVE-2026-21861
baserCMS has OS Command Injection Leading to Remote Code Execution (RCE)
critical9.1Mar 31, 2026CVE-2026-27697
baserCMS has an SQL injection vulnerability in its blog post functionality
medium6.9Mar 31, 2026CVE-2026-30877
baserCMS Update Functionality Vulnerable to OS Command Injection
critical9.1Mar 31, 2026CVE-2026-30878
baserCMS has Mail Form Acceptance Bypass via Public API
medium5.3Mar 31, 2026CVE-2026-30879
baserCMS has a cross-site scripting vulnerability in blog posts
medium6.9Mar 31, 2026CVE-2026-30880
baserCMS has OS command injection vulnerability in installer
critical9.2Mar 31, 2026
