NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Composer (PHP)

CVE-2025-32957: baserCMS has Unsafe File Upload Leading to Remote Code Execution (RCE)

highCVSS 3.1 8.7GHSA-hv78-cwp4-8r7r

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

  1. Restore backup image
  2. 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) entries