BoidCMS: Local File Inclusion (LFI) leads to Remote Code Execution (RCE) via tpl parameter
Key facts
- Attack vector
- Network
- Privileges required
- High
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-98.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
- Fix · CNA BoidCMS (BoidCMS) Fixed in 2.1.3
Timeline
- 2026-10-02 Threatist record created from CVE-2026-39387
References
More Boidcms vulnerabilities
- TI-2023-20116 File Upload vulnerability in BoidCMS v.2.0.0 allows a remote attacker to execute… CVSS 3.1HIGH 8.8
- TI-2024-35718 Reflected Cross-site Scripting in /admin?page=media via file Parameter in BoidCMS CVSS 4.0MEDIUM 5.3
- TI-2024-21290 A cross-site scripting (XSS) vulnerability in the Create Page of Boid CMS v2.1.0 allows… CVSS 3.1MEDIUM 6.1
- TI-2024-21291 A cross-site scripting (XSS) vulnerability in the Create Page of Boid CMS v2.1.0 allows… CVSS 3.1MEDIUM 6.1
- TI-2023-26641 BoidCMS 2.0.1 is vulnerable to Multiple Stored Cross-Site Scripting (XSS) issues via the… CVSS 3.1MEDIUM 5.4
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences