CVE-2025-31040

WordPress WP Food ordering and Restaurant Menu plugin <= 2.7 - Local File Inclusion vulnerability

Published Apr 11, 2025 CVSS 3.1 · 8.1 High EPSS 1.2% KEV · Not listed
Description
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 <= 2.7.

Analysis

AI-generated

Technical impact

The vulnerability arises from improper validation of the filename used in PHP's include/require statement. The plugin allows a local file path to be passed without sanitization, enabling a locally stored file to be read or executed. This can lead to disclosure of sensitive data or arbitrary PHP code execution, potentially compromising the entire WordPress installation.

Affected Systems

Affected are all installations of the Exthemes WP Food ordering and Restaurant Menu plugin for WordPress from the initial release through version 2.7. Any site that has not upgraded beyond 2.7 is potentially vulnerable.

Risk and Exploitability

The CVSS score of 8.1 indicates high severity. The EPSS score of <1% suggests a low current exploitation likelihood, and the vulnerability is not included in CISA’s KEV catalog. The likely attack vector requires an attacker to supply a malicious filename parameter; based on the description it is inferred that the vulnerable parameter may be exposed via public or administrative interfaces. Successful exploitation could result in reading arbitrary files or executing PHP code, posing significant confidentiality, integrity, and availability risks.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the WP Food ordering and Restaurant Menu plugin to a version higher than 2.7.
  • If an upgrade cannot be performed immediately, modify the plugin code to validate or restrict include paths, ensuring only trusted files are loaded.
  • Configure WordPress file permissions to prevent execution of PHP files in non‑plugin directories and deploy a Web Application Firewall to detect and block LFI attempts.

Generated by OpenCVE AI on June 18, 2026 at 02:41 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2025-10796 Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in NotFound WP Food ordering and Restaurant Menu allows PHP Local File Inclusion. This issue affects WP Food ordering and Restaurant Menu: from n/a through 1.1.
History
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
Description Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in NotFound WP Food ordering and Restaurant Menu allows PHP Local File Inclusion. This issue affects WP Food ordering and Restaurant Menu: from n/a through 1.1. 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 <= 2.7.
Title WordPress WP Food ordering and Restaurant Menu <= 1.1 - Local File Inclusion Vulnerability WordPress WP Food ordering and Restaurant Menu plugin <= 2.7 - Local File Inclusion vulnerability
References
Metrics cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in NotFound WP Food ordering and Restaurant Menu allows PHP Local File Inclusion. This issue affects WP Food ordering and Restaurant Menu: from n/a through 1.1.
Title WordPress WP Food ordering and Restaurant Menu <= 1.1 - Local File Inclusion Vulnerability
Weaknesses CWE-98
References
Metrics cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H'}

Subscriptions

No data.

Weaknesses
  • CWE-98

    Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion')

Sources

Status
PUBLISHED
Assigner
Patchstack
Published
Updated
Apr 28, 2026, 4:12 PM
Reserved
Mar 26, 2025, 9:23 AM
Status
Deferred
Published
Apr 11, 2025, 9:15 AM
Modified
Jun 17, 2026, 9:09 AM