CVE-2025-31040
Published: 11 April 2025
Summary
CVE-2025-31040 is a high-severity PHP Remote File Inclusion (CWE-98) vulnerability. Its CVSS base score is 8.1 (High).
Operationally, ranked in the top 15.7% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog.
Deeper analysis
CVE-2025-31040 is a PHP Local File Inclusion vulnerability arising from improper control of filenames in include/require statements. It affects the WP Food ordering and Restaurant Menu plugin (wp-food) for WordPress, impacting all versions through 2.7. The flaw is tracked under CWE-98 and carries a CVSS 3.1 score of 8.1.
An unauthenticated remote attacker can exploit the issue over the network, though successful exploitation requires high attack complexity. By supplying crafted input that influences file inclusion, the attacker may read or execute arbitrary local files on the server, resulting in high impact to confidentiality, integrity, and availability.
The vulnerability is documented in the Patchstack advisory database, which identifies the affected plugin versions and provides the primary public reference for further details on the flaw. The associated EPSS score remains flat at 0.0206 with no material increase observed after disclosure.
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2025-10796
Vulnerability details
Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in Exthemes WP Food ordering and Restaurant Menu wp-food allows PHP Local File Inclusion.This issue affects WP Food ordering and Restaurant Menu: from n/a through…
more
<= 2.7.
- CWE(s)
Related Threats
No named actor attribution yet. ATT&CK technique mapping in progress for this CVE.
Affected Assets
Mitigating Controls
No mitigating controls mapped yet. The per-CVE control annotator has not reached this CVE.