Skip to main content
Vulnerability Database/CVE-2026-78530

CVE-2026-78530: FoodBakery Path Traversal Vulnerability

CVE-2026-78530 is a path traversal vulnerability in FoodBakery WordPress plugin allowing subscribers to delete arbitrary files on affected systems. This article covers the technical details, affected versions, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-78530 Overview

CVE-2026-78530 is an arbitrary file deletion vulnerability in the FoodBakery WordPress theme versions 4.6 and earlier. The flaw allows authenticated users with Subscriber-level privileges to delete arbitrary files on the server. The weakness is classified as a path traversal issue [CWE-22], where user-supplied input reaches a file deletion routine without proper validation. Deleting critical files such as wp-config.php can force WordPress into a setup state, enabling site takeover scenarios.

Critical Impact

Any authenticated Subscriber can delete arbitrary files on the WordPress host, leading to availability loss and potential site compromise through forced reinstallation.

Affected Products

  • FoodBakery WordPress theme versions <= 4.6
  • WordPress sites allowing Subscriber-level registration using the vulnerable theme
  • Multi-site WordPress installations running FoodBakery as an active theme

Discovery Timeline

  • 2026-10-10 - CVE-2026-78530 published to NVD
  • 2026-10-13 - Last updated in NVD database

Technical Details for CVE-2026-78530

Vulnerability Analysis

The vulnerability resides in a file-handling routine exposed by the FoodBakery theme to authenticated users. The endpoint accepts a file path parameter and passes it to a deletion function without validating the resolved path. Because the capability check only requires a logged-in account, any Subscriber can invoke the sink.

An attacker who registers a free account on an affected site can issue a crafted request that references files outside the intended directory. Successful exploitation deletes files on the underlying filesystem, including WordPress core files, plugin assets, or uploaded media. Deleting wp-config.php triggers the WordPress installation flow, which an attacker can complete against an attacker-controlled database to achieve full site takeover.

Root Cause

The root cause is improper limitation of a pathname to a restricted directory [CWE-22]. The theme fails to canonicalize the input path and does not restrict deletion targets to a safe allowlisted directory. Combined with a weak authorization check that treats Subscribers as trusted callers, the sink becomes reachable by low-privileged users.

Attack Vector

Exploitation requires network access to the WordPress site and a Subscriber account. The attacker sends an authenticated HTTP request to the vulnerable theme endpoint with a traversal sequence such as ../../../../wp-config.php in the file parameter. No user interaction is required, and the scope changes because the deleted files impact components beyond the vulnerable theme itself.

See the Patchstack FoodBakery Vulnerability Report for technical details on the vulnerable endpoint.

Detection Methods for CVE-2026-78530

Indicators of Compromise

  • Unexpected deletion of files in the WordPress root, including wp-config.php, .htaccess, or index.php
  • WordPress presenting the installation setup page unexpectedly to visitors
  • Subscriber accounts issuing POST requests to FoodBakery AJAX endpoints with traversal sequences such as ../ in parameters
  • Web server logs showing authenticated requests referencing paths outside the theme or uploads directory

Detection Strategies

  • Inspect HTTP access logs for authenticated requests to FoodBakery admin-ajax.php actions that include file path parameters
  • Alert on filesystem events where the PHP worker process deletes files in the WordPress root or inside directories not owned by the theme
  • Correlate recent Subscriber account creations with abnormal file deletion activity on the same host

Monitoring Recommendations

  • Enable file integrity monitoring on WordPress core files and the wp-content directory
  • Forward web server and PHP error logs to a centralized analytics platform for traversal-pattern analysis
  • Monitor new user registrations when open signup is enabled on sites running FoodBakery

How to Mitigate CVE-2026-78530

Immediate Actions Required

  • Upgrade FoodBakery to a version later than 4.6 once the vendor publishes a fix
  • Disable public user registration on sites running the vulnerable theme until patched
  • Audit existing Subscriber accounts and remove unknown or suspicious registrations
  • Back up wp-config.php and the database before applying remediation steps

Patch Information

At publication, no fixed version is listed in NVD. Site operators should monitor the Patchstack FoodBakery Vulnerability Report and the vendor advisory for an official patched release and apply it as soon as available.

Workarounds

  • Deploy a Web Application Firewall rule to block requests containing ../ sequences in FoodBakery AJAX parameters
  • Restrict access to the WordPress admin endpoints by IP where feasible
  • Set the PHP process user to read-only permissions on wp-config.php and other critical files to limit deletion impact
bash
# Example WAF rule concept (ModSecurity-style)
SecRule ARGS "@rx \.\./" \
  "id:1026078530,phase:2,deny,status:403,\
  msg:'FoodBakery CVE-2026-78530 path traversal attempt'"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.