CVE-2025-31913: CWE-98 Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') in ApusTheme Ogami
Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in ApusTheme Ogami allows PHP Local File Inclusion. This issue affects Ogami: from n/a through 1.53.
AI Analysis
Technical Summary
CVE-2025-31913 is a high-severity vulnerability classified under CWE-98, which pertains to improper control of filenames used in include or require statements within PHP programs. Specifically, this vulnerability affects the ApusTheme Ogami product, versions up to and including 1.53. The flaw allows for PHP Local File Inclusion (LFI), which means an attacker can manipulate the file path parameters used in PHP include or require functions to load unintended files from the local server. This can lead to the execution of arbitrary code, disclosure of sensitive information, or complete compromise of the affected web application. The vulnerability is remotely exploitable over the network without requiring authentication or user interaction, but it has a high attack complexity, indicating some conditions must be met for successful exploitation. The CVSS v3.1 base score is 8.1, reflecting high impact on confidentiality, integrity, and availability. Although no known exploits are currently reported in the wild, the nature of LFI vulnerabilities makes them attractive targets for attackers to escalate privileges or pivot within compromised environments. The vulnerability arises from insufficient validation or sanitization of user-supplied input that controls the filename in include/require statements, allowing attackers to traverse directories or specify arbitrary local files. This can lead to disclosure of configuration files, source code, or even execution of malicious payloads if combined with other vulnerabilities or misconfigurations.
Potential Impact
For European organizations using the ApusTheme Ogami theme, particularly those running vulnerable versions on their websites or web applications, this vulnerability poses a significant risk. Successful exploitation could lead to unauthorized disclosure of sensitive data such as credentials, customer information, or internal configuration files. It could also allow attackers to execute arbitrary code, potentially leading to full system compromise, defacement, or use of the affected systems as a foothold for further attacks within the network. Given the high confidentiality, integrity, and availability impacts, organizations may face regulatory consequences under GDPR if personal data is exposed. The risk is heightened for organizations in sectors with high web presence such as e-commerce, media, and public services. Additionally, the lack of authentication requirement means that any external attacker with network access to the vulnerable web application can attempt exploitation, increasing the threat surface. The absence of known exploits in the wild currently provides a window for proactive mitigation before widespread attacks occur.
Mitigation Recommendations
1. Immediate upgrade or patching: Organizations should verify if ApusTheme has released a patch or updated version beyond 1.53 that addresses this vulnerability and apply it promptly. 2. Input validation and sanitization: Implement strict validation on all user inputs that influence file inclusion paths, ensuring only expected and safe filenames or paths are accepted. 3. Disable remote file inclusion: Configure PHP settings to disable allow_url_include and allow_url_fopen to prevent remote file inclusion vectors. 4. Use whitelisting: Restrict include/require statements to a predefined set of allowed files or directories rather than dynamically including files based on user input. 5. Web application firewall (WAF): Deploy and tune WAF rules to detect and block suspicious requests attempting directory traversal or file inclusion patterns. 6. Monitoring and logging: Enable detailed logging of web server and application errors to detect attempts to exploit LFI and respond quickly. 7. Least privilege: Ensure the web server and PHP processes run with minimal privileges to limit the impact of any successful exploitation. 8. Conduct security assessments: Perform code reviews and penetration testing focused on file inclusion and input validation to identify and remediate similar issues.
Affected Countries
Germany, France, United Kingdom, Netherlands, Italy, Spain, Poland
CVE-2025-31913: CWE-98 Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') in ApusTheme Ogami
Description
Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in ApusTheme Ogami allows PHP Local File Inclusion. This issue affects Ogami: from n/a through 1.53.
AI-Powered Analysis
Technical Analysis
CVE-2025-31913 is a high-severity vulnerability classified under CWE-98, which pertains to improper control of filenames used in include or require statements within PHP programs. Specifically, this vulnerability affects the ApusTheme Ogami product, versions up to and including 1.53. The flaw allows for PHP Local File Inclusion (LFI), which means an attacker can manipulate the file path parameters used in PHP include or require functions to load unintended files from the local server. This can lead to the execution of arbitrary code, disclosure of sensitive information, or complete compromise of the affected web application. The vulnerability is remotely exploitable over the network without requiring authentication or user interaction, but it has a high attack complexity, indicating some conditions must be met for successful exploitation. The CVSS v3.1 base score is 8.1, reflecting high impact on confidentiality, integrity, and availability. Although no known exploits are currently reported in the wild, the nature of LFI vulnerabilities makes them attractive targets for attackers to escalate privileges or pivot within compromised environments. The vulnerability arises from insufficient validation or sanitization of user-supplied input that controls the filename in include/require statements, allowing attackers to traverse directories or specify arbitrary local files. This can lead to disclosure of configuration files, source code, or even execution of malicious payloads if combined with other vulnerabilities or misconfigurations.
Potential Impact
For European organizations using the ApusTheme Ogami theme, particularly those running vulnerable versions on their websites or web applications, this vulnerability poses a significant risk. Successful exploitation could lead to unauthorized disclosure of sensitive data such as credentials, customer information, or internal configuration files. It could also allow attackers to execute arbitrary code, potentially leading to full system compromise, defacement, or use of the affected systems as a foothold for further attacks within the network. Given the high confidentiality, integrity, and availability impacts, organizations may face regulatory consequences under GDPR if personal data is exposed. The risk is heightened for organizations in sectors with high web presence such as e-commerce, media, and public services. Additionally, the lack of authentication requirement means that any external attacker with network access to the vulnerable web application can attempt exploitation, increasing the threat surface. The absence of known exploits in the wild currently provides a window for proactive mitigation before widespread attacks occur.
Mitigation Recommendations
1. Immediate upgrade or patching: Organizations should verify if ApusTheme has released a patch or updated version beyond 1.53 that addresses this vulnerability and apply it promptly. 2. Input validation and sanitization: Implement strict validation on all user inputs that influence file inclusion paths, ensuring only expected and safe filenames or paths are accepted. 3. Disable remote file inclusion: Configure PHP settings to disable allow_url_include and allow_url_fopen to prevent remote file inclusion vectors. 4. Use whitelisting: Restrict include/require statements to a predefined set of allowed files or directories rather than dynamically including files based on user input. 5. Web application firewall (WAF): Deploy and tune WAF rules to detect and block suspicious requests attempting directory traversal or file inclusion patterns. 6. Monitoring and logging: Enable detailed logging of web server and application errors to detect attempts to exploit LFI and respond quickly. 7. Least privilege: Ensure the web server and PHP processes run with minimal privileges to limit the impact of any successful exploitation. 8. Conduct security assessments: Perform code reviews and penetration testing focused on file inclusion and input validation to identify and remediate similar issues.
Affected Countries
Technical Details
- Data Version
- 5.1
- Assigner Short Name
- Patchstack
- Date Reserved
- 2025-04-01T13:21:47.737Z
- Cisa Enriched
- false
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 68306f8e0acd01a249272343
Added to database: 5/23/2025, 12:52:30 PM
Last enriched: 7/8/2025, 11:55:50 PM
Last updated: 1/7/2026, 4:20:49 AM
Views: 38
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.
Related Threats
CVE-2026-20893: Origin validation error in Fujitsu Client Computing Limited Fujitsu Security Solution AuthConductor Client Basic V2
HighCVE-2025-14891: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in ivole Customer Reviews for WooCommerce
MediumCVE-2025-14059: CWE-73 External Control of File Name or Path in roxnor EmailKit – Email Customizer for WooCommerce & WP
MediumCVE-2025-12648: CWE-552 Files or Directories Accessible to External Parties in cbutlerjr WP-Members Membership Plugin
MediumCVE-2025-14631: CWE-476 NULL Pointer Dereference in TP-Link Systems Inc. Archer BE400
HighActions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console in Console -> Billing for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.