{"id":"CVE-2026-30940","published":"2026-03-31T00:45:35Z","modified":"2026-04-02T14:46:54Z","title":"baserCMS: Path Traversal in Theme File API Leads to Arbitrary File Write and RCE","vendor":"baserproject","product":"basercms","tier":"tail","description":{"text":"baserCMS is a website development framework. Prior to version 5.2.3, a path traversal vulnerability exists in the theme file management API (/baser/api/admin/bc-theme-file/theme_files/add.json) that allows arbitrary file write. An authenticated administrator can include ../ sequences in the path parameter to create a PHP file in an arbitrary directory outside the theme directory, which may result in remote code execution (RCE). This issue has been patched in version 5.2.3.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.2,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01091,"percentile":0.6611,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"},{"id":"CWE-73","name":"External Control of File Name or Path"}],"references":[{"url":"https://github.com/baserproject/basercms/security/advisories/GHSA-c5c6-37vq-pjcq","tags":["x_refsource_CONFIRM"]},{"url":"https://basercms.net/security/JVN_20837860","tags":["x_refsource_MISC"]},{"url":"https://github.com/baserproject/basercms/releases/tag/5.2.3","tags":["x_refsource_MISC"]}],"priority":{"score":23.3,"factors":[{"name":"EPSS percentile","points":13.22},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":5.04}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-11-24","earliestUrl":"https://github.com/googlesky/CVE-2026-30940","repos":[{"name":"googlesky/CVE-2026-30940","url":"https://github.com/googlesky/CVE-2026-30940","stars":0,"created":"2026-11-24"}]},"first":{"date":"2026-11-24","source":"PoC-in-GitHub","url":"https://github.com/googlesky/CVE-2026-30940"},"provenance":"source"},"vendorSlug":"baserproject","affectedVersions":[{"vendor":"baserproject","product":"basercms","versions":["< 5.2.3"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-04-02T14:46:24.039682Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"baserproject/basercms","vulnerableRanges":["<5.2.3"],"patched":["5.2.3"],"from":["GHSA-c5c6-37vq-pjcq"],"provenance":"source"}],"summary":{"text":"A path traversal flaw in baserCMS's theme file management API (the bc-theme-file theme_files/add endpoint) lets the path parameter escape the theme directory, allowing files to be written to arbitrary locations. An attacker with administrator-level authentication over network access can use ../ sequences to create a PHP file in an arbitrary directory, which may lead to remote code execution, with no user interaction required and the issue affecting versions prior to 5.2.3.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:35:57Z"},"euvd":{"id":"EUVD-2026-17267","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-baserproject-basercms-cve-2026-30940","children":[{"from":"CVE-2026-30940","to":"CVE-2026-62955","relation":"bypass","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"bypass","quote":"The bypass of the CVE-2026-30940 fix can permit file writes, overwrites or deletion within the PHP process permissions and, where executable PHP can be written, remote code execution.","from":"CVE.org","in":"CVE-2026-62955"}]},{"from":"CVE-2026-30940","to":"CVE-2026-114622","relation":"related","confidence":"low","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"related","quote":"This is a third bypass of the protections associated with CVE-2026-30940, using encoded traversal decoded after validation.","from":"CVE.org","in":"CVE-2026-114622"}]}]}}