{"id":"CVE-2026-104995","revision":null,"records":[{"revision":"a0a3725c83d6457ebd19f23709ae6957","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-104995","aliases":[],"title":"BP Profile Search <= 5.9 - Unauthenticated Local File Inclusion to Remote Code Execution via 'bps_directory' Cookie 'ajax_template' Value","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.","state":0,"publishedAt":"2026-10-14T01:27:15.137+00:00","modifiedAt":"2026-10-14T18:19:54.568+00:00","affected":[{"ecosystem":"Vendor product","name":"BP Profile Search","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"dontdream\",\n                    \"product\": \"BP Profile Search\",\n                    \"versions\": [\n                        {\n                            \"version\": \"0\",\n                            \"status\": \"affected\",\n                            \"lessThanOrEqual\": \"5.9\",\n                            \"versionType\": \"semver\"\n                        }\n                    ],\n                    \"defaultStatus\": \"unaffected\"\n                }"}],"metrics":[{"system":"CVSS 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,"severity":"HIGH"}],"references":["https://www.wordfence.com/threat-intel/vulnerabilities/id/a35419ff-a342-4480-9288-e98dee5afabc?source=cve","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-directory.php#L186","https://plugins.trac.wordpress.org/browser/bp-profile-search/tags/5.9/bps-search.php#L6","https://plugins.trac.wordpress.org/changeset/3737650","https://plugins.trac.wordpress.org/browser/bp-profile-search/tags/6.0/bps-directory.php"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-104995","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-104995","identifiers":["CVE-2026-104995"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-10T01:13:24.0914870+00:00","complete":true,"records":1773,"lastAttemptAt":"2026-11-10T01:13:24.091487+00:00","lastSuccessAt":"2026-11-10T01:13:24.2413995+00:00","error":null,"lastVerifiedAt":"2026-11-10T01:13:24.2414074+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-8859cf40d4337e24bd2f258cc7778fbad01bb24c79d057aaf34cf1dfc6f8917d-8739c76e681f900923b900c9df0ef75cf421d39cabb54650c4b9ad19b6a76d85","complete":true,"records":421793,"lastAttemptAt":"2026-11-10T01:11:09.1191281+00:00","lastSuccessAt":"2026-11-10T01:11:09.1151136+00:00","error":null,"lastVerifiedAt":"2026-11-10T01:11:09.1191281+00:00","snapshotPublishedAt":"2026-11-10T00:36:51+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-823278bd48cc4faf93c855874afdf908","complete":false,"records":13689,"lastAttemptAt":"2026-11-10T01:26:04.0547747+00:00","lastSuccessAt":"2026-11-10T01:26:04.05+00:00","error":"46 identifier lookups failed; latest failures include HTTP 403. Other identifiers were checked independently.","lastVerifiedAt":"2026-11-10T01:26:04.05+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13658,"expectedIdentifiers":13742,"failedIdentifiers":46},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-10T01:13:24.0914870+00:00","complete":true,"records":1096,"lastAttemptAt":"2026-11-10T01:13:24.091487+00:00","lastSuccessAt":"2026-11-10T01:13:24.2423035+00:00","error":null,"lastVerifiedAt":"2026-11-10T01:13:24.2423037+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-ac4cdedb469b4d498dab4cba0976e3b8","complete":false,"records":13695,"lastAttemptAt":"2026-11-10T01:13:50.7927629+00:00","lastSuccessAt":"2026-11-10T01:13:50.789+00:00","error":null,"lastVerifiedAt":"2026-11-10T01:13:50.789+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13704,"expectedIdentifiers":13742,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-cdffb4589856378aa42e8d1bd4a6c74e27a180d8160bf764c44715ef760f0a62","complete":true,"records":9932,"lastAttemptAt":"2026-11-10T01:13:23.6725967+00:00","lastSuccessAt":"2026-11-10T00:04:19.8260565+00:00","error":null,"lastVerifiedAt":"2026-11-10T01:13:23.6725967+00:00","snapshotPublishedAt":"2026-11-09T23:48:01+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-26503967ae4379db8f374089589d6e03fb15bd31f820c9e992aaf93840c2236c","complete":true,"records":1971,"lastAttemptAt":"2026-11-10T01:11:09.2602471+00:00","lastSuccessAt":"2026-11-09T21:02:20.472473+00:00","error":null,"lastVerifiedAt":"2026-11-10T01:11:09.2602471+00:00","snapshotPublishedAt":"2026-11-09T20:18:18+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-761ecc9061239b0da572dc9254c6f384c1d19339eb08408c436647a2f26129e9","complete":true,"records":3064,"lastAttemptAt":"2026-11-10T01:13:24.0606038+00:00","lastSuccessAt":"2026-11-09T17:05:03.4044794+00:00","error":null,"lastVerifiedAt":"2026-11-10T01:13:24.0606038+00:00","snapshotPublishedAt":"2026-11-09T16:33:20+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-de491e92084daab7829a905b7af7daf62c5cba9f53efe3052c21cec43e90d59a","complete":true,"records":231581,"lastAttemptAt":"2026-11-10T01:13:22.923251+00:00","lastSuccessAt":"2026-11-10T01:13:21.102106+00:00","error":null,"lastVerifiedAt":"2026-11-10T01:13:22.923251+00:00","snapshotPublishedAt":"2026-11-10T00:48:12+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}