# CVE-2026-39387: BoidCMS: Local File Inclusion (LFI) leads to Remote Code Execution (RCE) via tpl parameter

- Severity: High 7.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.76%, higher than 56% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-14T22:56:20.935Z
- Modified: 2026-07-24T21:10:00.143Z
- Weaknesses: CWE-98
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

BoidCMS is an open-source, PHP-based flat-file CMS for building simple websites and blogs, using JSON as its database. Versions prior to 2.1.3 are vulnerable to a critical Local File Inclusion (LFI) attack via the tpl parameter, which can lead to Remote Code Execution (RCE).The application fails to sanitize the tpl (template) parameter during page creation and updates. This parameter is passed directly to a require_once() statement without path validation. An authenticated administrator can exploit this by injecting path traversal sequences (../) into the tpl value to escape the intended theme directory and include arbitrary files — specifically, files from the server's media/ directory. When combined with the file upload functionality, this becomes a full RCE chain: an attacker can first upload a file with embedded PHP code (e.g., disguised as image data), then use the path traversal vulnerability to include that file via require_once(), executing the embedded code with web server privileges. This issue has been fixed in version 2.1.3.

(As written by CVE List.)

## Affected

- BoidCMS BoidCMS: < 2.1.3; before 2.1.3

## References

- <https://github.com/BoidCMS/BoidCMS/security/advisories/GHSA-45xp-xw54-6cv6> (exploit, mitigation, vendor-advisory)
- <https://github.com/BoidCMS/BoidCMS/releases/tag/v2.1.3> (product, release-notes)

## Sources

- CVE List: [CVE-2026-39387](https://www.cve.org/CVERecord?id=CVE-2026-39387), CVE Terms of Use, modified 2026-04-15
- NVD: [CVE-2026-39387](https://nvd.nist.gov/vuln/detail/CVE-2026-39387), Public domain, modified 2026-07-24

---

Page: https://cve.day/CVE-2026-39387 · Whole record: https://cve.day/CVE-2026-39387.json · Rebuilt by cve.day 2026-11-25T22:59:18.807Z
