WP Docs <= 2.2.0 - Authenticated (Subscriber+) Time-Based SQL Injection via 'dir_id'

6.5
Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
CVE CVE-2024-12635
CVSS 6.5 (Medium)
Publicly Published December 20, 2024
Last Updated December 21, 2024
Researcher Arkadiusz Hydzik

Description

The WP Docs plugin for WordPress is vulnerable to time-based SQL Injection via the 'dir_id' parameter in all versions up to, and including, 2.2.0 due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for authenticated attackers, with Subscriber-level access and above, to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database. The vulnerability was partially patched in version 2.2.0.

Learn more about SQL Injection vulnerabilities and how to prevent them.

References

Share

Vulnerability Details for WP Docs

Software Type Plugin
Software Slug wp-docs (view on wordpress.org)
Patched? Yes
Remediation Update to version 2.2.1, or a newer patched version
Affected Version
  • <= 2.2.0
Patched Version
  • 2.2.1

Recent vulnerabilities in WP Docs

# Title CVE ID CVSS Researchers Date
1 WP Docs <= 2.2.9 - Authenticated (Subscriber+) Stored Cross-Site Scripting via 'wpdocs_options[icon_size]' CVE-2026-3878 6.4 Nabil Irawan April 15, 2026
2 WP Docs <= 2.2.8 - Missing Authorization CVE-2026-24990 4.3 hhhai January 21, 2026
3 WP Docs <= 2.2.6 - Missing Authorization CVE-2025-31417 4.3 March 29, 2025
4 WP Docs <= 2.2.1 - Authenticated (Administrator+) Stored Cross-Site Scripting CVE-2024-56288 4.4 b4orvn January 3, 2025
5 WP Docs <= 2.1.3 - Reflected Cross-Site Scripting CVE-2024-35696 6.1 LVT-tholv2k June 6, 2024
6 WP Docs <= 2.1.3 - Authenticated (Contributor+) Stored Cross-Site Scripting CVE-2024-35695 6.4 LVT-tholv2k June 6, 2024
7 WP Docs <= 1.9.9 - Reflected Cross-Site Scripting CVE-2023-32106 6.1 Le Ngoc Anh May 2, 2023
8 WP Docs <= 1.9.8 - Missing Authorization via multiple AJAX actions CVE-2023-30873 6.3 István Márton April 19, 2023
9 WP Docs <= 1.9.8 - Cross-Site Request Forgery to folder management CVE-2023-30873 4.3 István Márton April 18, 2023

Did you know Wordfence Intelligence provides free personal and commercial API access to our comprehensive WordPress vulnerability database, along with a free webhook integration to stay on top of the latest vulnerabilities added and updated in the database? Get started today!

Learn more

Want to get notified of the latest vulnerabilities that may affect your WordPress site?
Install Wordfence on your site today to get notified immediately if your site is affected by a vulnerability that has been added to our database.

Get Wordfence

The Wordfence Intelligence WordPress vulnerability database is completely free to access and query via API. Please review the documentation on how to access and consume the vulnerability data via API.

Documentation