What’s Vulnerable › Vulnerabilities

CVE-2022-21661: SQL injection in WordPress

Description

WordPress is a free and open-source content management system written in PHP and paired with a MariaDB database. Due to improper sanitization in WP_Query, there can be cases where SQL injection is possible through plugins or themes that use it in a certain way. This has been patched in WordPress version 5.8.3. Older affected versions are also fixed via security release, that go back till 3.7.37. We strongly recommend that you keep auto-updates enabled. There are no known workarounds for this vulnerability.

Affected products

How to fix

Upgrade to a fixed version: WordPress 3.7.37, 3.8.37, 3.9.35, 4.0.34. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2022-21661 or the next vulnerability affects your stack