ZDI-22-020: WordPress Core WP_Query SQL Injection Information Disclosure Vulnerability

This vulnerability allows remote attackers to disclose sensitive information on affected installations of WordPress Core. Authentication is not required to exploit this vulnerability. The specific flaw exists within the WPQuery class. The issue results from the lack of proper validation of a user-supplied string before using it to construct SQL queries. An attacker can leverage this vulnerability to disclose stored credentials, leading to further compromise.

Affected Software

1 affected component
WordPress Core

Frequently Asked Questions

1

What is the severity of ZDI-22-020?

The severity of ZDI-22-020 is high due to the potential for remote attackers to disclose sensitive information.

2

How do I fix ZDI-22-020?

To fix ZDI-22-020, ensure that you update your WordPress Core to at least version 5.8.3 or later.

3

Who is affected by ZDI-22-020?

ZDI-22-020 affects all installations of WordPress Core prior to version 5.8.3.

4

Is authentication required to exploit ZDI-22-020?

No, ZDI-22-020 can be exploited without any authentication.

5

What impact does ZDI-22-020 have on WordPress installations?

ZDI-22-020 allows remote attackers to access and disclose sensitive information from affected WordPress installations.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203