CVE-2025-32957
JSON

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 packageVersionsReported by
baserproject basercms< 5.2.3CVE List
baserproject/basercms (Packagist)before 5.2.3GitHub Advisory Database
basercms basercmsbefore 5.2.3NVD

All scores

GitHub_M8.7high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:N
GitHub8.7high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:N
NVD7.2high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-434

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
  1. Restore backup image
  2. Load file shell (insecure require_once) image image
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

Sources

SourceRecordLicence
CVE ListCVE-2025-32957 changed 2026-03-31CVE Terms of Use
GitHub Advisory DatabaseGHSA-hv78-cwp4-8r7r changed 2026-09-10CC-BY-4.0
NVDCVE-2025-32957 changed 2026-06-17Public domain