CVE-2026-104995
Last modified
CVE-2026-104995 is a high-severity vulnerability rated 8.1/10 on the CVSS scale. 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. EPSS estimates a 0.85% chance of exploitation in the next 30 days.
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.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| dontdream | BP Profile Search | <= 5.9 |
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2026-104995?
How severe is CVE-2026-104995?
How do I fix CVE-2026-104995?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-104982A flaw has been found in Linux Mint Xreader up to 4.6.5. Thi…4.3
- CVE-2026-104983A vulnerability has been found in Linux Mint Xreader up to 4…6.3
- CVE-2026-104988A flaw was found in Dogtag PKI (pki-core). The CMCAuthForEST…8.1
- CVE-2026-104991Phproject before 1.8.7 contains a missing object-level autho…7.1
- CVE-2026-104993The GeoDirectory – WP Business Directory Plugin and Classifi…6.4
- CVE-2026-104994Trivy before 0.71.0 allows directory traversal in Terraform …2.5
- CVE-2026-1050A flaw has been found in risesoft-y9 Digital-Infrastructure …7.3
- CVE-2026-105003Heap-based buffer overflow in HID class driver allows an aut…7.8
- CVE-2026-105004Out-of-bounds read in Windows Overlay Filter allows an autho…7.8
- CVE-2026-105005Out-of-bounds write in Windows Schannel allows an unauthoriz…8.1
- CVE-2026-105006Use after free in HID class driver allows an unauthorized at…6.4
- CVE-2026-105007An elevation of privilege vulnerability exists in the Networ…8.8
Are you affected by CVE-2026-104995?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
