CVE-2026-104995
Deferred Deferred - Pending Action

Local File Inclusion in BP Profile Search WordPress Plugin

Vulnerability report for CVE-2026-104995, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-10-14

Last updated on: 2026-10-14

Assigner: Wordfence

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 Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-10-14
Last Modified
2026-10-14
Generated
2026-10-19
AI Q&A
2026-10-14
EPSS Evaluated
2026-10-18
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
dontdream BP Profile Search 0

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-98 The PHP application receives input from an upstream component, but it does not restrict or incorrectly restricts the input before its usage in "require," "include," or similar functions.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

The BP Profile Search plugin for WordPress has a Local File Inclusion vulnerability in versions up to 5.9. Attackers can exploit a client-controlled cookie during BuddyPress AJAX requests to include arbitrary PHP files on the server. This happens because the plugin reads the 'bps_directory' cookie, applies weak validation using HTTP_REFERER, and then appends '.php' to the attacker-controlled value before passing it to a template function without proper restrictions.

Detection Guidance

Check for unauthorized PHP file inclusions by monitoring server logs for requests containing the 'bps_directory' cookie or 'ajax_template' parameter. Look for patterns like '.php' appended to user-controlled values in BuddyPress AJAX directory requests.

Impact Analysis

This vulnerability allows unauthenticated attackers to include and execute arbitrary PHP files on the server. If PHP files can be uploaded or if default WordPress PHP images are present, attackers could gain remote code execution. This could lead to full server compromise, data theft, or further attacks on the WordPress site and its users.

Compliance Impact

This vulnerability could lead to unauthorized access to sensitive data, violating GDPR and HIPAA requirements for data protection and confidentiality. A successful exploit may result in data breaches, unauthorized data exposure, or loss of control over personal health or user information, leading to legal penalties and compliance failures.

Mitigation Strategies

Immediately update the BP Profile Search plugin to the latest version if available. If not, disable the plugin until a patch is released. Restrict file uploads to trusted sources and review server logs for signs of exploitation.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-104995. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart