Advisory Details

January 10th, 2022

WordPress Core WP_Query SQL Injection Information Disclosure Vulnerability

ZDI-22-020
ZDI-CAN-15541

CVE ID CVE-2022-21661
CVSS SCORE 7.5, AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
AFFECTED VENDORS WordPress
AFFECTED PRODUCTS Core
VULNERABILITY DETAILS

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 WP_Query 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.

ADDITIONAL DETAILS WordPress has issued an update to correct this vulnerability. More details can be found at:
https://wordpress.org/news/2022/01/wordpress-5-8-3-security-release/
DISCLOSURE TIMELINE
  • 2021-10-22 - Vulnerability reported to vendor
  • 2022-01-10 - Coordinated public release of advisory
CREDIT ngocnb and khuyenn from GiaoHangTietKiem JSC
BACK TO ADVISORIES