CVE-2024-5431 HIGH

CVE-2024-5431: WPCafe – Online Food Ordering, Restaurant Menu, Delivery, and Reservations for WooCommerce <= 2.2.25 - Authenticated (Contributor+) File inclusion via Shortcode

Vendor Arraytics
Product WPCafe – Restaurant Menu, Online Food Ordering & Table Booking System
Weakness CWE-98 · PHP file inclusion
Published June 25, 2024
Last update April 8, 2026

CVSS base score

8.8/10
Attack vector Network
Attack complexity Low
Privileges required Low
User interaction None
Confidentiality High
Integrity High

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

What the vulnerability does

01Description

The WPCafe – Online Food Ordering, Restaurant Menu, Delivery, and Reservations for WooCommerce plugin for WordPress is vulnerable to Local File Inclusion in all versions up to, and including, 2.2.25 via the reservation_extra_field shortcode parameter. This makes it possible for authenticated attackers, with Contributor-level access and above, to include remote files on the server, potentially resulting in code execution

Explanation of Vulnerability in Simple Terms

02Summary

WPCafe versions up to 2.2.25 contain a remote code execution vulnerability accessible to authenticated users with low privileges. An attacker with a basic user account can execute arbitrary PHP code on the site, potentially compromising the entire WordPress installation. The vulnerability stems from insufficient input validation in a core function. All sites running affected versions should update immediately.

What an attacker can do

03Attacker Capabilities

Run their own PHP code on the site and take full control of it.

Potential impact on your site

04Site Impact

Any registered user can compromise your site, steal data, modify content, or inject malware.

Conditions required to exploit

05Prerequisites

Attacker needs a low-privilege user account (e.g., subscriber or customer role) on the site.

Key dates

06Disclosure timeline

June 25, 2024 CVE published
April 8, 2026 Record updated

Related vulnerabilities

08Related CVE