Skip to main content
Vulnerability Database/CVE-2025-13385

CVE-2025-13385: Bookme WordPress Plugin SQL Injection

CVE-2025-13385 is a time-based SQL injection flaw in the Bookme WordPress appointment booking plugin that allows authenticated admin users to extract sensitive database information. This post explains its impact, affected versions, and mitigation steps.

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-2025-13385 Overview

CVE-2025-13385 is a time-based SQL injection vulnerability in the Bookme – Free Online Appointment Booking and Scheduling Plugin for WordPress. The flaw affects all plugin versions up to and including 4.2. It stems from insufficient escaping of the filter[status] parameter and inadequate preparation of the underlying SQL query in app/admin/Bookings.php. Authenticated attackers with administrator-level access can append arbitrary SQL to existing queries and extract sensitive database contents. The weakness is classified under CWE-89, Improper Neutralization of Special Elements used in an SQL Command.

Critical Impact

Authenticated administrators can exfiltrate arbitrary data from the WordPress database through time-based SQL injection in the Bookme plugin.

Affected Products

  • Bookme – Free Online Appointment Booking and Scheduling Plugin for WordPress
  • All versions up to and including 4.2
  • WordPress installations using the vulnerable app/admin/Bookings.php endpoint

Discovery Timeline

  • 2025-11-25 - CVE-2025-13385 published to the National Vulnerability Database
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2025-13385

Vulnerability Analysis

The Bookme plugin exposes an administrative bookings interface that accepts a filter[status] request parameter. The plugin interpolates the value of this parameter directly into a SQL statement without applying wpdb::prepare() or equivalent escaping. Attackers can supply SQL fragments that modify the structure of the executed query.

Because the injection point does not reflect query results directly in the response, exploitation relies on time-based inference. An attacker injects conditional SLEEP() or benchmarked payloads and measures response latency to extract data one bit at a time. This technique enables full database enumeration, including WordPress user records and session tokens stored in wp_users and wp_usermeta.

The vulnerability requires administrator privileges, which limits mass exploitation. However, it remains relevant in multi-tenant WordPress deployments and in post-compromise scenarios where a lower-privileged account is escalated to administrator.

Root Cause

The root cause is improper neutralization of user-controlled input in a database query. The plugin trusts the filter[status] parameter after minimal validation and concatenates it into the SQL statement built in app/admin/Bookings.php near line 123. No parameterized query or whitelist is applied before execution.

Attack Vector

Exploitation occurs over the network against the WordPress administrative interface. An authenticated administrator submits a crafted request to the Bookme bookings endpoint with a malicious filter[status] value. The injected SQL executes within the WordPress database context and leaks data through observable response delays. See the Wordfence Vulnerability Analysis and the WordPress Plugin Code Review for the vulnerable code path.

Detection Methods for CVE-2025-13385

Indicators of Compromise

  • Requests to Bookme admin endpoints containing filter[status] values with SQL keywords such as SLEEP, BENCHMARK, UNION, SELECT, or inline comments (--, /*)
  • Unusually long response times from wp-admin requests tied to the Bookme plugin
  • WordPress or web server logs showing repeated requests from the same administrator session with incremental payload variations

Detection Strategies

  • Inspect WordPress access logs for Bookme plugin URLs that include encoded SQL metacharacters in the filter[status] parameter
  • Enable WordPress query logging or database audit logging to capture queries containing SLEEP( or arithmetic time functions originating from the plugin
  • Correlate administrator logins with abnormal query latency and large result-set reads from wp_users, wp_usermeta, and wp_options

Monitoring Recommendations

  • Monitor administrator account activity and alert on new sessions from unexpected IP addresses or user agents
  • Track plugin and theme file integrity to detect follow-on tampering after successful injection
  • Forward WordPress and web server logs to a centralized analytics platform for retention and query against SQL injection patterns

How to Mitigate CVE-2025-13385

Immediate Actions Required

  • Update the Bookme plugin to a version later than 4.2 once a patched release is published by the vendor
  • Audit all WordPress administrator accounts and remove unused or unnecessary admin-level users
  • Rotate credentials and session tokens for any administrator account that interacted with the Bookme plugin after disclosure
  • Review database logs for evidence of time-based inference queries against WordPress tables

Patch Information

At the time of publication, the vulnerability affects all versions through 4.2. Monitor the WordPress Plugin Code Repository and the Wordfence Vulnerability Analysis for a fixed version and apply the update promptly.

Workarounds

  • Deactivate and remove the Bookme plugin on sites where appointment booking is not required until a fix is released
  • Restrict access to wp-admin using IP allowlists, VPN, or HTTP authentication at the web server layer
  • Deploy a web application firewall rule that blocks requests to Bookme admin endpoints containing SQL keywords or time functions in the filter[status] parameter
  • Enforce multi-factor authentication on all WordPress administrator accounts to reduce the risk of credential-based abuse
bash
# Example WAF rule concept blocking time-based SQLi payloads in filter[status]
# ModSecurity rule (illustrative)
SecRule ARGS:'filter[status]' "@rx (?i)(sleep\s*\(|benchmark\s*\(|union\s+select|--|/\*)" \
    "id:1013385,phase:2,deny,status:403,msg:'CVE-2025-13385 Bookme SQLi 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.