{"id":"CVE-2025-32957","aliases":["CVE-2025-32957","GHSA-hv78-cwp4-8r7r"],"related":[],"kind":"vulnerability","state":"published","title":"baserCMS: unsafe File Upload Leading to Remote Code Execution (RCE)","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Details\nThe 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.\n\nVector: Malicious ZIP upload + insecure `require_once`\n\n### PoC\n1. Restore backup\n   ![image](https://github.com/user-attachments/assets/9e59768a-4a8e-472d-aaef-5d54546080f6)\n1. Load file shell (insecure `require_once`)\n   ![image](https://github.com/user-attachments/assets/8f7919a2-c7f3-4ae1-af6c-1b0057e4ba22)\n   ![image](https://github.com/user-attachments/assets/c10ef049-459d-429e-a608-8fb220c3387f)\n\n### Impact\nRemote Code Execution (RCE)","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2026-03-31T00:43:48.908Z","modified":"2026-09-10T03:50:39.484Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:N","score":8.7,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:N","score":8.7,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:N","score":8.7,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","score":7.2,"rating":"HIGH"}],"cwes":["CWE-434"],"affected":[{"ranges":[{"version":"< 5.2.3","status":"affected"}],"vendor":"baserproject","product":"basercms","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"5.2.3"}],"ecosystem":"Packagist","package":"baserproject/basercms","purl":"pkg:composer/baserproject/basercms","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"5.2.3"}],"vendor":"basercms","product":"basercms","cpe":"cpe:2.3:a:basercms:basercms:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/baserproject/basercms/security/advisories/GHSA-hv78-cwp4-8r7r","tags":["exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://basercms.net/security/JVN_20837860","tags":["vendor-advisory","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/baserproject/basercms/releases/tag/5.2.3","tags":["release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-32957","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/baserproject/basercms","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2026-03-31T18:39:21.747Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-32957","url":"https://www.cve.org/CVERecord?id=CVE-2025-32957","licence":"CVE Terms of Use","modified":"2026-03-31T19:09:23.581Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-hv78-cwp4-8r7r","url":"https://github.com/advisories/GHSA-hv78-cwp4-8r7r","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:39.484Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-32957","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-32957","licence":"Public domain","modified":"2026-06-17T09:12:51.767Z"}],"updatedAt":"2026-11-25T22:59:12.007Z","epss":{"score":0.00636,"percentile":0.51826,"date":"2026-12-01T12:00:22.000Z"}}