CVE-2026-39387

Source
https://cve.org/CVERecord?id=CVE-2026-39387
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-39387.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-39387
Aliases
  • GHSA-45xp-xw54-6cv6
Published
2026-04-14T22:56:20.935Z
Modified
2026-07-08T08:13:02.035663781Z
Severity
  • 7.2 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
BoidCMS: Local File Inclusion (LFI) leads to Remote Code Execution (RCE) via tpl parameter
Details

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 requireonce() 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 requireonce(), executing the embedded code with web server privileges. This issue has been fixed in version 2.1.3.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/39xxx/CVE-2026-39387.json",
    "cwe_ids": [
        "CWE-98"
    ],
    "cna_assigner": "GitHub_M"
}
References

Affected packages

Git / github.com/boidcms/boidcms

Affected ranges

Type
GIT
Repo
https://github.com/boidcms/boidcms
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
{
    "cpe": "cpe:2.3:a:boidcms:boidcms:*:*:*:*:*:*:*:*",
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "2.1.3"
        }
    ],
    "source": [
        "AFFECTED_FIELD",
        "CPE_RANGE",
        "REFERENCES"
    ]
}

Affected versions

v1.*
v1.0.0
v1.0.1
v2.*
v2.0.0
v2.0.1
v2.1.0
v2.1.1
v2.1.2

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-39387.json"