{"id":"GHSA-hv78-cwp4-8r7r","aliases":["CVE-2025-32957"],"title":"baserCMS has Unsafe File Upload Leading to Remote Code Execution (RCE)","titleSource":"OSV","descriptionSource":"OSV","declaredSeverity":"HIGH","description":"### 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)","severity":"high","score":8.7,"published":"2026-03-31T22:22:18.000Z","modified":"2026-09-10T03:50:39.484Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"Packagist","name":"baserproject/basercms","sources":[{"name":"OSV · GHSA-hv78-cwp4-8r7r","url":"https://osv.dev/vulnerability/GHSA-hv78-cwp4-8r7r"}],"ranges":[{"events":[{"introduced":"0"},{"fixed":"5.2.3"}],"type":"ECOSYSTEM"}],"versions":["0.0.1","0.0.2","0.0.3","0.0.4","0.0.5","0.0.6","0.0.7","0.0.8","1.0.0","2.0.0-rc1","2.0.0-rc2","2.0.0-rc3","2.0.0-rc4","2.0.0-rc5","2.0.0-rc6","3.0.10","3.0.10.1","3.0.11","3.0.11.1","3.0.12","3.0.13","3.0.14","3.0.15","3.0.16","3.0.17","3.0.18","3.0.19","3.0.20","3.0.21","3.0.22","3.0.23","3.0.24","3.0.25","3.0.26","3.0.7","3.0.7.1","3.0.8","3.0.8.1","3.0.9","3.0.9.1","4.0.0","4.0.0-beta","4.0.1","4.0.10","4.0.10.1","4.0.11","4.0.2","4.0.2.1","4.0.3","4.0.4","4.0.5","4.0.5.1","4.0.5.2","4.0.6","4.0.7","4.0.8","4.0.9","4.1.0","4.1.0.1","4.1.1","4.1.2","4.1.3","4.1.4","4.1.5","4.1.6","4.1.7","4.1.8","4.2.0","4.2.1","4.2.2","4.2.3","4.2.4","4.2.5","4.3.0","4.3.1","4.3.2","4.3.3","4.3.4","4.3.5","4.3.6","4.3.7","4.3.7.1","4.4.0","4.4.1","4.4.1.1","4.4.2","4.4.2.1","4.4.3","4.4.4","4.4.5","4.4.6","4.4.7","4.4.8","4.5.0","4.5.1","4.5.2","4.5.3","4.5.4","4.5.5","4.5.6","4.6.0","4.6.1","4.6.1.1","4.6.2","4.6.3","4.7.0","4.7.2","4.7.3","4.7.5","4.7.6","4.7.7","4.7.8","4.8.0","4.8.1","4.8.2","4.8.3","5.0.0","5.0.0-beta1","5.0.0-beta2","5.0.0-beta3","5.0.0-beta4","5.0.1","5.0.10","5.0.11","5.0.12","5.0.14","5.0.15","5.0.16","5.0.17","5.0.18","5.0.19","5.0.2","5.0.20","5.0.21","5.0.3","5.0.4","5.0.5","5.0.6","5.0.7","5.0.8","5.0.9","5.1.0","5.1.1","5.1.10","5.1.2","5.1.3","5.1.4","5.1.5","5.1.6","5.1.7","5.1.8","5.1.9","5.2.0","5.2.1","5.2.2"],"fixed":["5.2.3"]}],"sourceAffected":[],"references":["https://github.com/baserproject/basercms/security/advisories/GHSA-hv78-cwp4-8r7r","https://nvd.nist.gov/vuln/detail/CVE-2025-32957","https://basercms.net/security/JVN_20837860","https://github.com/baserproject/basercms","https://github.com/baserproject/basercms/releases/tag/5.2.3"],"sources":[{"name":"OSV","id":"GHSA-hv78-cwp4-8r7r","modified":"2026-09-10T03:50:39.484249265Z","url":"https://osv.dev/vulnerability/GHSA-hv78-cwp4-8r7r"}],"assessments":[{"source":"OSV","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:N","score":8.7}],"products":[],"remediation":[],"kev":{"status":"not-listed","checkedAt":"2026-10-28T11:55:31.891Z"},"coverage":[{"source":"NVD","status":"not-checked"},{"source":"GHSA","status":"not-checked"},{"source":"EUVD","status":"not-checked"},{"source":"EPSS","status":"not-checked"}],"evidence":[]}