SecurityContext

CVE-2026-39387: BoidCMS - Local File Inclusion & Remote Code Execution

  • Cve: CVE-2026-39387
  • Name: BoidCMS - Local File Inclusion & Remote Code Execution
  • 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.
  • Impact: Authenticated administrators can achieve remote code execution, leading to full server compromise with web server privileges.
  • Remediation: Update to version 2.1.3 or later.
  • Vulnerability type: local_file_inclusion
  • Vulnerability impact: remote_code_execution
  • Requirement type: logged_in
  • Requirements: Attacker must be an authenticated administrator with file upload capability
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.2
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.00744
  • Epss percentile: 0.55482
  • Assignee: [email protected]
  • Published at: 2026-04-14T23:16:29Z
  • Age in days: 224
  • Modified at: 2026-07-24T21:10:00Z
  • Patch available: yes
  • Public exploits total: 2
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-39387
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-98Improper Control of Filename for Include/Require Statement in PHP Program

Public exploits

UrlSourceAdded date
https://github.com/BoidCMS/BoidCMS/security/advisories/GHSA-45xp-xw54-6cv6nvd2026-04-14
https://github.com/xp1tr/CVE-2026-39387poc-in-github2026-05-02

References

UrlSourceTags
https://github.com/BoidCMS/BoidCMS/security/advisories/GHSA-45xp-xw54-6cv6nvdExploit, Mitigation, Vendor Advisory
https://github.com/BoidCMS/BoidCMS/releases/tag/v2.1.3nvdProduct, Release Notes

Products

ProductAffectedPlatform boundSourcesUrl
boidcms:boidcms< 2.1.3nonvd/v1/products/boidcms/boidcms

Projects

RepositoryLink kindsIndexedUrl
BoidCMS/BoidCMSfix, releases, security_advisoryyes/v1/repositories/BoidCMS/BoidCMS

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 2
  • Public exploit first date: 2026-04-14
  • Remote: yes
  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts