{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-39387 exists.","fix":"No fix has been published for CVE-2026-39387 yet. Limit exposure of the affected software until one is available.","what":"CVE-2026-39387 is a high-severity path traversal vulnerability in BoidCMS, published on 14 Apr 2026. An attacker needs administrator access to exploit it, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-39387 and fix it if it is affected.\n\nWhat it is: CVE-2026-39387 is a high-severity path traversal vulnerability in BoidCMS, published on 14 Apr 2026. An attacker needs administrator access to exploit it, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-39387 exists.\n\nAffected product: BoidCMS. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-39387/ (Markdown: https://insights.sbomify.com/CVE-2026-39387/index.md)","id":"CVE-2026-39387","markdown":"https://insights.sbomify.com/CVE-2026-39387/index.md","name":"CVE-2026-39387","record":{"aliases":["GHSA-45xp-xw54-6cv6"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"BoidCMS","requires_auth":"high_privilege","summary":"An authenticated administrator can exploit a path traversal vulnerability in the tpl parameter to include arbitrary files, leading to remote code execution.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"boidcms","vendor":"boidcms"}],"cvss":{"score":7.2,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-98","name":"Improper Control of Filename for Include/Require Statement in PHP Program"}],"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.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":"2026-05-02","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-05-02T03:20:24Z","kind":"github_poc","ref":"https://github.com/xp1tr/CVE-2026-39387","stars":0,"title":"BoidCMS \u003c= 2.1.2 RCE Exploit"}],"tier":"weaponised"},"has_fix":false,"headline":"BoidCMS: Local File Inclusion (LFI) leads to Remote Code Execution (RCE) via tpl parameter","id":"CVE-2026-39387","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":0,"n_references":2,"next":{"headline":"OpenBao's Certificate Authentication Allows Token Renewal With Different Certificate","id":"CVE-2026-39388"},"packages":[],"prev":{"headline":"Neko has Self-service Privilege Escalation for Authenticated Users","id":"CVE-2026-39386"},"products":["BoidCMS"],"published":"2026-04-14","related":[{"cvss_score":8.8,"headline":"File upload in n/a","id":"CVE-2023-38836","kev_date_added":null,"published":"2023-08-21"},{"cvss_score":6.1,"headline":"Cross-site scripting in n/a","id":"CVE-2024-32342","kev_date_added":null,"published":"2024-04-17"},{"cvss_score":6.1,"headline":"Cross-site scripting in n/a","id":"CVE-2024-32343","kev_date_added":null,"published":"2024-04-17"},{"cvss_score":5.4,"headline":"Cross-site scripting in n/a","id":"CVE-2023-48824","kev_date_added":null,"published":"2023-12-07"},{"cvss_score":5.3,"headline":"Reflected Cross-site Scripting in /admin?page=media via file Parameter in BoidCMS","id":"CVE-2024-53255","kev_date_added":null,"published":"2024-11-25"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-04-15","vendors":["BoidCMS"]},"summary":"An authenticated administrator can exploit a path traversal vulnerability in the tpl parameter to include arbitrary files, leading to remote code execution.","url":"https://insights.sbomify.com/CVE-2026-39387/"}