baserCMS has Unsafe File Upload Leading to Remote Code Execution (RCE)
Impact
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.
Source excerpt · OSVAffected packages
Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.
| Affected range | Recorded fix |
|---|---|
| Earlier releases before 5.2.3Ecosystem versions | 5.2.3 |
Version evidence: OSV · GHSA-hv78-cwp4-8r7r
View original version evidence (155 explicit versions)
Original source description
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
- Load file shell (insecure
require_once)
Impact
Remote Code Execution (RCE)
References
- Security advisory github.com/baserproject/basercms/security/advisories/GHSA-hv78-cwp4-8r7r
- Security advisory nvd.nist.gov/vuln/detail/CVE-2025-32957
- Security advisory basercms.net/security/JVN_20837860
- Source reference github.com/baserproject/basercms
- Release notes github.com/baserproject/basercms/releases/tag/5.2.3