CVE-2026-39387

HIGH

BoidCMS: Local File Inclusion (LFI) leads to Remote Code Execution (RCE) via tpl parameter

Title source: cna
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2026-39387. PoCs published by xp1tr.

AI-analyzed exploit summary This is a functional exploit for CVE-2026-39387, targeting BoidCMS v2.1.2 and earlier. It chains an authenticated file upload vulnerability with template injection to achieve remote code execution (RCE).

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.

Exploits (1)

github WORKING POC
by xp1tr · pythonpoc
https://github.com/xp1tr/CVE-2026-39387

This is a functional exploit for CVE-2026-39387, targeting BoidCMS v2.1.2 and earlier. It chains an authenticated file upload vulnerability with template injection to achieve remote code execution (RCE).

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: BoidCMS <= 2.1.2
Auth required
Prerequisites: valid admin credentials · access to the admin panel
devstral-2 · analyzed May 02, 2026 Full analysis →

References (2)

Core 2
Core References
X_Refsource_Misc x_refsource_misc
https://github.com/BoidCMS/BoidCMS/releases/tag/v2.1.3

Scores

CVSS v3 7.2
EPSS 0.0073
EPSS Percentile 49.3%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

CISA SSVC

Vulnrichment
Exploitation poc
Automatable no
Technical Impact total

Details

CWE
CWE-98
Status published
Products (2)
boidcms/boidcms < 2.1.3
BoidCMS/BoidCMS < 2.1.3
Published Apr 14, 2026
Tracked Since Apr 15, 2026