{"cve":"CVE-2026-104995","nvd":{"published":"2026-10-14T02:16:56.500","modified":"2026-10-14T19:17:08.627","status":"Deferred","description":"The BP Profile Search plugin for WordPress is vulnerable to Local File Inclusion in versions up to, and including, 5.9 via the 'ajax_template' value parsed from the client-controlled 'bps_directory' cookie during BuddyPress AJAX directory requests. The bps_directory_ajax() filter (hooked onto bp_legacy_object_template_path and bp_nouveau_object_template_path) reads the cookie, applies only a referer-derived 'page' comparison in bps_get_directory_data() (where bps_current_page() uses HTTP_REFERER during AJAX and is therefore also attacker-controlled), and then suffixes the attacker-controlled template value with '.php' and passes it to bp_locate_template() with no basename restriction, no whitelist, and no path-traversal check. This makes it possible for unauthenticated attackers to include arbitrary PHP files on the server, which can lead to remote code execution when PHP files can be uploaded or when images such as the default wordpress:php8.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1},"cwes":["CWE-98"],"references":["https://plugins.trac.wordpress.org/browser/bp-profile-search/tags/5.9/bps-directory.php#L186","https://plugins.trac.wordpress.org/browser/bp-profile-search/tags/5.9/bps-directory.php#L408","https://plugins.trac.wordpress.org/browser/bp-profile-search/tags/5.9/bps-search.php#L6","https://plugins.trac.wordpress.org/browser/bp-profile-search/tags/6.0/bps-directory.php","https://plugins.trac.wordpress.org/changeset/3737650"],"products":[],"source":"nvd","synced_at":"2026-10-19T22:59:28.494260111+00:00"},"epss":{"cve":"CVE-2026-104995","score":0.00853,"percentile":0.57995,"date":"2026-10-25"},"kev":null,"osv":[],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}