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.
Published: 2026-04-14
Score: 7.2 High
EPSS: < 1% Very Low
KEV: No
Impact: Remote Code Execution via Local File Inclusion
Action: Apply Patch
AI Analysis

Impact

An unsanitized tpl (template) parameter is passed directly into a require_once() statement, eliminating path validation. An authenticated administrator can insert path‑traversal sequences to escape the intended theme directory and include any file from the server, such as the media/ directory. When coupled with the ability to upload files, an attacker can place a PHP payload disguised as an image, then use the traversal flaw to require that file and execute the malicious code under web‑server privileges.

Affected Systems

BoidCMS versions prior to 2.1.3 are affected. The product is the open‑source, PHP‑based flat‑file CMS developed by BoidCMS.

Risk and Exploitability

The vulnerability carries a CVSS score of 7.2, indicating high severity. EPSS data is not available, and the issue is not listed in the CISA KEV catalog. Exploitation requires authenticated administrator access to create or update a page, so it is not publicly exploitable without credentials. Nevertheless, once a privileged user is compromised, an attacker can achieve arbitrary code execution on the host. The likely attack vector is remote, dependent on legitimate credentials and the presence of file upload capabilities.

Generated by OpenCVE AI on April 15, 2026 at 00:51 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to BoidCMS 2.1.3 or later, which patches the LFI flaw
  • Validate the tpl parameter to allow only filenames within the current theme directory and reject any path‑traversal characters
  • Disable or harden the file‑upload feature until the patch is applied to prevent uploading of PHP code that could later be executed

Generated by OpenCVE AI on April 15, 2026 at 00:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 23 Apr 2026 17:45:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:boidcms:boidcms:*:*:*:*:*:*:*:*

Wed, 15 Apr 2026 14:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Wed, 15 Apr 2026 14:00:00 +0000

Type Values Removed Values Added
First Time appeared Boidcms
Boidcms boidcms
Vendors & Products Boidcms
Boidcms boidcms

Tue, 14 Apr 2026 23:15:00 +0000

Type Values Removed Values Added
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.
Title BoidCMS: Local File Inclusion (LFI) leads to Remote Code Execution (RCE) via tpl parameter
Weaknesses CWE-98
References
Metrics cvssV3_1

{'score': 7.2, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-04-15T13:42:26.866Z

Reserved: 2026-04-06T22:06:40.515Z

Link: CVE-2026-39387

cve-icon Vulnrichment

Updated: 2026-04-15T13:42:17.621Z

cve-icon NVD

Status : Analyzed

Published: 2026-04-14T23:16:29.300

Modified: 2026-04-23T17:35:29.283

Link: CVE-2026-39387

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-04-15T14:31:57Z

Weaknesses
  • CWE-98

    Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion')