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

CVE-2026-107712: WP Booking System SQL Injection Vulnerability

CVE-2026-107712 is a time-based SQL injection flaw in WP Booking System plugin for WordPress that lets authenticated attackers extract sensitive database information. This article covers the technical details, affected versions, and mitigation.

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-107712 Overview

CVE-2026-107712 is a time-based SQL Injection vulnerability in the WP Booking System – Booking Calendar plugin for WordPress. The flaw affects all versions up to and including 2.1.0.1 and stems from insufficient escaping of the current_month parameter combined with inadequate query preparation. Authenticated attackers holding subscriber-level access or above can append arbitrary SQL to existing queries and extract sensitive data from the WordPress database. The issue is a regression: a capability check added in versions 2.0.19.11 through 2.0.19.14 to remediate CVE-2024-50425 was removed in version 2.1, re-exposing the vulnerable handler without nonce validation.

Critical Impact

Any authenticated subscriber account can perform time-based SQL Injection to exfiltrate database contents, including password hashes and session data.

Affected Products

  • WP Booking System – Booking Calendar plugin for WordPress
  • All versions up to and including 2.1.0.1
  • Specifically introduced by the regression in the 2.1 branch

Discovery Timeline

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

Technical Details for CVE-2026-107712

Vulnerability Analysis

The vulnerability is a time-based SQL Injection [CWE-89] reachable through the plugin's AJAX calendar handler. The current_month parameter flows into a SQL query without proper escaping or parameter binding. Because the backend code does not use prepared statements with placeholders for this input, an attacker can inject SQL clauses that use time-delay primitives such as SLEEP() or BENCHMARK() to infer database contents one bit at a time.

Exploitation requires only subscriber-level access, which is often open to self-registration on WordPress sites. Successful extraction can yield WordPress user records, password hashes, API secrets, and other data stored in the database.

Root Cause

Two defects combine to create the vulnerability. First, the query construction logic in the plugin's object-DB abstraction concatenates the current_month value into SQL instead of binding it through $wpdb->prepare(). Second, a capability check that previously guarded the handler was removed when the plugin was refactored into the 2.1 branch, undoing the fix originally shipped for CVE-2024-50425. Nonce validation is also absent from the handler. See the vulnerable handler source and the object-DB class.

Attack Vector

An authenticated attacker sends an AJAX request to the calendar action handler with a crafted current_month value. The payload embeds time-delay SQL that forks execution based on characters read from target columns. By measuring server response latency across many requests, the attacker reconstructs arbitrary query output. The attack is remote, requires low privileges, needs no user interaction, and impacts confidentiality of database contents. Review the patch changeset for the fix diff.

No public proof-of-concept code is available at this time.

Detection Methods for CVE-2026-107712

Indicators of Compromise

  • Authenticated POST requests to admin-ajax.php with calendar-related actions containing SQL keywords such as SLEEP, BENCHMARK, UNION, or SELECT in the current_month parameter.
  • Unusually long response times from admin-ajax.php originating from subscriber accounts.
  • Spikes in requests from newly registered low-privilege accounts targeting the plugin's AJAX endpoints.

Detection Strategies

  • Inspect web server and WordPress access logs for current_month values that do not match the expected YYYY-MM format.
  • Deploy a WAF rule to block requests containing SQL metacharacters in the current_month parameter on calendar AJAX actions.
  • Correlate authentication logs with AJAX activity to identify subscriber accounts probing admin AJAX endpoints.

Monitoring Recommendations

  • Enable MySQL slow query logging and alert on queries exceeding thresholds that originate from the WordPress worker.
  • Monitor for creation of new subscriber accounts followed by activity against /wp-admin/admin-ajax.php.
  • Track plugin version inventory and alert when installations remain on 2.1.0.1 or earlier.

How to Mitigate CVE-2026-107712

Immediate Actions Required

  • Update the WP Booking System – Booking Calendar plugin to version 2.1.0.2 or later on all WordPress sites.
  • Audit WordPress user accounts and remove unused or untrusted subscriber-level users.
  • Disable open user registration on sites that do not require it by unchecking Settings → General → "Anyone can register".
  • Review database access logs and credentials for signs of extraction and rotate secrets if compromise is suspected.

Patch Information

The vendor addressed the issue in version 2.1.0.2. The fix is documented in the WordPress plugin changeset and tracked in the Wordfence advisory. The patch restores the capability check that was removed during the 2.1 refactor and improves query preparation for the current_month parameter.

Workarounds

  • If patching is not immediately possible, deactivate the WP Booking System plugin until the update can be applied.
  • Place the WordPress admin AJAX endpoint behind a WAF rule that rejects non-date values in the current_month parameter.
  • Restrict subscriber-level registration and require administrator approval for new accounts.

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.