CVE-2025-67981: Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') in thembay Besa
Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in thembay Besa besa allows PHP Local File Inclusion.This issue affects Besa: from n/a through <= 2.3.15.
AI Analysis
Technical Summary
CVE-2025-67981 is a Remote File Inclusion (RFI) vulnerability found in thembay Besa, a PHP-based product used in web environments. The vulnerability arises from improper control over filenames used in PHP include or require statements, which allows attackers to supply malicious remote URLs that the server then includes and executes. This leads to remote code execution, enabling attackers to run arbitrary PHP code on the server, potentially leading to full system compromise. The vulnerability affects all versions up to and including 2.3.15. The CVSS 3.1 base score of 8.1 reflects the network attack vector (AV:N), high attack complexity (AC:H), no privileges required (PR:N), no user interaction (UI:N), unchanged scope (S:U), and high impact on confidentiality, integrity, and availability (C:H/I:H/A:H). Although no public exploits have been reported, the vulnerability is critical due to the ease of exploitation and the severe consequences of successful attacks. The flaw is typical of insecure coding practices where user input is not properly sanitized or validated before being used in include/require statements. This vulnerability can be exploited remotely over the network without authentication, making it a significant threat to affected web servers. The lack of available patches at the time of publication increases urgency for organizations to implement interim mitigations.
Potential Impact
Successful exploitation of CVE-2025-67981 can lead to complete compromise of affected web servers. Attackers can execute arbitrary PHP code remotely, potentially gaining unauthorized access to sensitive data, modifying or deleting files, deploying malware or ransomware, and using the compromised server as a pivot point for further attacks within an organization's network. The confidentiality, integrity, and availability of the affected systems are all at high risk. This can result in data breaches, service outages, reputational damage, and regulatory penalties. Given the network-based attack vector and no requirement for authentication or user interaction, the vulnerability poses a significant risk to organizations worldwide, especially those relying on thembay Besa for web content management or e-commerce. The impact extends beyond the immediate server to potentially compromise connected infrastructure and customer data.
Mitigation Recommendations
Organizations should immediately upgrade thembay Besa to a version that addresses this vulnerability once available. In the absence of an official patch, the following mitigations are recommended: 1) Disable allow_url_include in the PHP configuration to prevent inclusion of remote files. 2) Implement strict input validation and sanitization on all parameters that influence include/require statements to ensure only safe, local files are referenced. 3) Use PHP's open_basedir directive to restrict file access to designated directories. 4) Employ web application firewalls (WAFs) with rules designed to detect and block attempts to exploit RFI vulnerabilities. 5) Monitor server logs and network traffic for unusual requests or inclusion attempts. 6) Conduct code audits to identify and remediate unsafe dynamic file inclusion patterns. 7) Isolate web servers in segmented network zones to limit lateral movement if compromised. 8) Regularly back up critical data and verify restoration procedures. These steps reduce the attack surface and limit potential damage until patches are deployed.
Affected Countries
United States, Germany, United Kingdom, France, Canada, Australia, India, Brazil, Japan, Netherlands, Italy, Spain
CVE-2025-67981: Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') in thembay Besa
Description
Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in thembay Besa besa allows PHP Local File Inclusion.This issue affects Besa: from n/a through <= 2.3.15.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2025-67981 is a Remote File Inclusion (RFI) vulnerability found in thembay Besa, a PHP-based product used in web environments. The vulnerability arises from improper control over filenames used in PHP include or require statements, which allows attackers to supply malicious remote URLs that the server then includes and executes. This leads to remote code execution, enabling attackers to run arbitrary PHP code on the server, potentially leading to full system compromise. The vulnerability affects all versions up to and including 2.3.15. The CVSS 3.1 base score of 8.1 reflects the network attack vector (AV:N), high attack complexity (AC:H), no privileges required (PR:N), no user interaction (UI:N), unchanged scope (S:U), and high impact on confidentiality, integrity, and availability (C:H/I:H/A:H). Although no public exploits have been reported, the vulnerability is critical due to the ease of exploitation and the severe consequences of successful attacks. The flaw is typical of insecure coding practices where user input is not properly sanitized or validated before being used in include/require statements. This vulnerability can be exploited remotely over the network without authentication, making it a significant threat to affected web servers. The lack of available patches at the time of publication increases urgency for organizations to implement interim mitigations.
Potential Impact
Successful exploitation of CVE-2025-67981 can lead to complete compromise of affected web servers. Attackers can execute arbitrary PHP code remotely, potentially gaining unauthorized access to sensitive data, modifying or deleting files, deploying malware or ransomware, and using the compromised server as a pivot point for further attacks within an organization's network. The confidentiality, integrity, and availability of the affected systems are all at high risk. This can result in data breaches, service outages, reputational damage, and regulatory penalties. Given the network-based attack vector and no requirement for authentication or user interaction, the vulnerability poses a significant risk to organizations worldwide, especially those relying on thembay Besa for web content management or e-commerce. The impact extends beyond the immediate server to potentially compromise connected infrastructure and customer data.
Mitigation Recommendations
Organizations should immediately upgrade thembay Besa to a version that addresses this vulnerability once available. In the absence of an official patch, the following mitigations are recommended: 1) Disable allow_url_include in the PHP configuration to prevent inclusion of remote files. 2) Implement strict input validation and sanitization on all parameters that influence include/require statements to ensure only safe, local files are referenced. 3) Use PHP's open_basedir directive to restrict file access to designated directories. 4) Employ web application firewalls (WAFs) with rules designed to detect and block attempts to exploit RFI vulnerabilities. 5) Monitor server logs and network traffic for unusual requests or inclusion attempts. 6) Conduct code audits to identify and remediate unsafe dynamic file inclusion patterns. 7) Isolate web servers in segmented network zones to limit lateral movement if compromised. 8) Regularly back up critical data and verify restoration procedures. These steps reduce the attack surface and limit potential damage until patches are deployed.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Patchstack
- Date Reserved
- 2025-12-15T10:00:33.670Z
- Cvss Version
- null
- State
- PUBLISHED
Threat ID: 6998c9eabe58cf853bab834a
Added to database: 2/20/2026, 8:54:02 PM
Last enriched: 4/3/2026, 5:28:00 AM
Last updated: 4/7/2026, 8:33:15 AM
Views: 29
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.