CVE-2025-68908
Published: 22 January 2026
Description
Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in temash Barberry barberry allows PHP Local File Inclusion.This issue affects Barberry: from n/a through <= 2.9.9.87.
Mitigating Controls (NIST 800-53 r5)AI
Directly addresses improper filename control in PHP include/require by requiring validation of inputs to prevent local file inclusion attacks.
Requires timely identification, reporting, and correction of the specific flaw in the Barberry WordPress theme to eliminate the LFI vulnerability.
Enforces secure configuration settings in PHP, such as open_basedir restrictions and disabling allow_url_include, to mitigate unauthorized local file access.
Security SummaryAI
CVE-2025-68908 is an Improper Control of Filename for Include/Require Statement in PHP Program vulnerability, classified as PHP Remote File Inclusion but enabling PHP Local File Inclusion (CWE-98), in the temash Barberry WordPress theme. This issue affects Barberry versions from n/a through 2.9.9.87. The vulnerability carries a CVSS v3.1 base score of 8.1 (AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H), indicating high severity due to network accessibility and significant impacts on confidentiality, integrity, and availability.
Remote attackers require no privileges or user interaction to exploit this vulnerability over the network, though high attack complexity is needed. Successful exploitation allows inclusion of local PHP files, potentially leading to arbitrary code execution, sensitive data disclosure, file modification, or denial of service, aligning with the high impact ratings across all three vectors.
The Patchstack advisory provides details on this local file inclusion vulnerability in the WordPress Barberry theme version 2.9.9.87, accessible at https://patchstack.com/database/Wordpress/Theme/barberry/vulnerability/wordpress-barberry-theme-2-9-9-87-local-file-inclusion-vulnerability?_s_id=cve.
Details
- CWE(s)
MITRE ATT&CK Enterprise TechniquesAI
Why these techniques?
LFI in public-facing WordPress theme enables exploitation of public-facing application (T1190) and arbitrary reading of local files (T1005).