8.7high
baserCMS: unsafe File Upload Leading to Remote Code Execution (RCE)
- Severity
- 8.7high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.64% (higher than 51% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-hv78-cwp4-8r7r
Description
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
| Product or package | Versions | Reported by |
|---|---|---|
| baserproject basercms | < 5.2.3 | CVE List |
| baserproject/basercms (Packagist) | before 5.2.3 | GitHub Advisory Database |
| basercms basercms | before 5.2.3 | NVD |
All scores
| GitHub_M | 8.7high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:N |
| GitHub | 8.7high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:N |
| NVD | 7.2high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.
What each source says
CVE List
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.
GitHub Advisory Database
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
Impact
Remote Code Execution (RCE)
NVD (es)
baserCMS es un framework de desarrollo de sitios web. Antes de la versión 5.2.3, la función de restauración de la aplicación permite a los usuarios subir un archivo .zip, que luego se extrae automáticamente. Un archivo PHP dentro del archivo comprimido se incluye usando require_once sin validar ni restringir el nombre del archivo. Un atacante puede crear un archivo PHP malicioso dentro del zip y lograr la ejecución de código arbitrario cuando este se incluye. Este problema ha sido parcheado en la versión 5.2.3.
References
| https://github.com/baserproject/basercms/security/advisories/GHSA-hv78-cwp4-8r7r | exploit, vendor-advisory, web | |
| https://basercms.net/security/JVN_20837860 | vendor-advisory, web | |
| https://github.com/baserproject/basercms/releases/tag/5.2.3 | release-notes, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2025-32957 | advisory | |
| https://github.com/baserproject/basercms | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-32957 changed 2026-03-31 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-hv78-cwp4-8r7r changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2025-32957 changed 2026-06-17 | Public domain |