CVE-2026-104995Dontdream BP Profile Search PHP file inclusion
CVSS score
8.1
High
CVSS 3.1 from wordfence.com
Exploit probability (EPSS)
1.10%
1.10% chance of exploitation in the next 30 days, higher than 66.5% of all CVEs.
CISA KEV
Not in KEV
No confirmed exploitation reported by CISA so far.
Official 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.
Source: NVD · CNA: security@wordfence.com
How to fix it, step by step
Check whether you're affected
Find every system running dontdream BP Profile Search and compare its version with the affected versions.
Watch for an official fix
No fix or advisory is listed in the official record yet. Follow the vendor's security announcements; this page updates when one is published.
Was this useful?
How it can be exploited
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Values in red make the vulnerability easier to exploit or more damaging. CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Affected products
| Affected products | Versions |
|---|---|
| dontdream BP Profile Search | ≤ 5.9 |
Weakness
- CWE-98 PHP file inclusion
Timeline
- Published:
- Last modified:
Frequently asked questions
Is CVE-2026-104995 being exploited?
There is no confirmed exploitation in CISA's KEV catalog so far. Its EPSS score estimates a 1.1% probability of exploitation in the next 30 days.
What is the CVSS score of CVE-2026-104995?
CVE-2026-104995 has a CVSS 3.1 base score of 8.1 (high).
Which versions are affected?
Dontdream BP Profile Search (≤ 5.9)
Is there a patch for CVE-2026-104995?
No patch is linked in the official record yet. Watch the vendor's security advisories.
References
- plugins.trac.wordpress.org/browser/bp-profile-search/tags/5.9/bps-directory.php#L186
- plugins.trac.wordpress.org/browser/bp-profile-search/tags/5.9/bps-directory.php#L408
- plugins.trac.wordpress.org/browser/bp-profile-search/tags/5.9/bps-search.php#L6
- plugins.trac.wordpress.org/browser/bp-profile-search/tags/6.0/bps-directory.php
- plugins.trac.wordpress.org/changeset/3737650
- www.wordfence.com/threat-intel/vulnerabilities/id/a35419ff-a342-4480-9288-e98dee5afabc?source=cve
Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.