{"id":"CVE-2025-32957","aliases":["GHSA-hv78-cwp4-8r7r"],"url":"https://o3.security/vulnerability/CVE-2025-32957","summary":"baserCMS: unsafe File Upload Leading to Remote Code Execution (RCE)","details":"### 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)","published":"2026-03-31T00:43:48.908Z","modified":"2026-08-12T04:12:55.161000915Z","cvss":{"score":8.7,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:N"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Packagist","name":"baserproject/basercms","fixedVersion":"5.2.3"}],"fix":null,"references":[{"type":"WEB","url":"https://basercms.net/security/JVN_20837860"},{"type":"WEB","url":"https://github.com/baserproject/basercms/releases/tag/5.2.3"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/32xxx/CVE-2025-32957.json"},{"type":"ADVISORY","url":"https://github.com/baserproject/basercms/security/advisories/GHSA-hv78-cwp4-8r7r"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-32957"},{"type":"PACKAGE","url":"https://github.com/baserproject/basercms"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T04:12:55.161000915Z"}}