---
title: "CVE-2022-21661"
canonical: "https://kb.cynergy.app/space/MD/923730109/CVE-2022-21661"
format: markdown
---
**Description**

Certain versions of [Debian Linux](https://cve.report/software/debian/debian_linux) from [Debian](https://cve.report/vendor/debian) contain the following vulnerability:

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.r this issue.

 

**Published On**

01/06/2022

**Updated On**

04/12/2022

**Trending**

FALSE

**CWE**

<u>[CWE-89](http://cwe.mitre.org/data/definitions/89.html)</u>

**Exploit**

 [https://www.exploit-db.com/exploits/50663](https://www.exploit-db.com/exploits/50663) 

[https://packetstormsecurity.com/files/165540/WordPress-Core-5.8.2-SQL-Injection.html](https://packetstormsecurity.com/files/165540/WordPress-Core-5.8.2-SQL-Injection.html) 

**Mitigation:**

![image](media://2d0dd2bc-de91-439e-b6bc-ca155f274b9d)

Cynergy has an automated mitigation capability that requires integration with your WAF provider.

Once integrated, you can request “Protect with WAF”

This will move the exposed asset behind WAF protection

<span style="color: #97a0af">**Note: **</span><span style="color: #97a0af">Policies configuration should be defined separately</span>

 

**Remediation**

- [150448](https://cve.report/qid/150448) WordPress Multiple Vulnerabilities : Security Update 5.8.3 (CVE-2022-21661,CVE-2022-21662,CVE-2022-21663)
- [178992](https://cve.report/qid/178992) Debian Security Update for wordpress (DSA 5039-1)
- [179020](https://cve.report/qid/179020) Debian Security Update for wordpress (DLA 2884-1)
- [282249](https://cve.report/qid/282249) Fedora Security Update for wordpress (FEDORA-2022-e37e1e6c7a)
- [282250](https://cve.report/qid/282250) Fedora Security Update for wordpress (FEDORA-2022-8472dd59ff)
- [730330](https://cve.report/qid/730330) WordPress Prior to 3.7.37 and 5.8.3 Multiple Security Vulnerabilities

 

**Reference**

|  |  |  |
| --- | --- | --- |
| ZDI-22-020 | Zero Day Initiative | [http://www.zerodayinitiative.com](http://www.zerodayinitiative.com)   
<span style="color: #ffffff">**text/html**</span> | ![URL Logo]() |
| [SECURITY] [DLA 2884-1] wordpress security update | [http://lists.debian.org](http://lists.debian.org)   
<span style="color: #ffffff">**text/html**</span> | ![URL Logo]() |
| [SECURITY] Fedora 34 Update: wordpress-5.8.3-1.fc34 - package-announce - Fedora Mailing-Lists | [http://lists.fedoraproject.org](http://lists.fedoraproject.org)   
<span style="color: #ffffff">**text/html**</span> | ![URL Logo]() |
| Query: Improve sanitization within `WP_Tax_Query`. · WordPress/wordpress-develop@17efac8 · GitHub | [http://github.com](http://github.com)   
<span style="color: #ffffff">**text/html**</span> | ![URL Logo]() |
| WordPress Core 5.8.2 - 'WP_Query' SQL Injection - PHP webapps Exploit | [http://www.exploit-db.com](http://www.exploit-db.com)   
<span style="color: #ffffff">**Proof of Concept**</span>  
<span style="color: #ffffff">**text/html**</span> | ![URL Logo]() |
| WordPress: SQL Injection through WP_Query · Advisory · WordPress/wordpress-develop · GitHub | [http://github.com](http://github.com)   
<span style="color: #ffffff">**text/html**</span> | ![URL Logo]() |
| Debian -- Security Information -- DSA-5039-1 wordpress | [http://www.debian.org](http://www.debian.org)   
<span style="color: #ffffff">**Depreciated Link**</span>  
<span style="color: #ffffff">**text/html**</span> | ![URL Logo]() |
| WordPress Core 5.8.2 SQL Injection ≈ Packet Storm | [http://packetstormsecurity.com](http://packetstormsecurity.com)   
<span style="color: #ffffff">**text/html**</span> | ![URL Logo]() |
| News – WordPress 5.8.3 Security Release – [WordPress.org](http://WordPress.org) | [http://wordpress.org](http://wordpress.org)   
<span style="color: #ffffff">**text/html**</span> | ![URL Logo]() |
| [SECURITY] Fedora 35 Update: wordpress-5.8.3-1.fc35 - package-announce - Fedora Mailing-Lists | [http://lists.fedoraproject.org](http://lists.fedoraproject.org)   
<span style="color: #ffffff">**text/html**</span> | ![URL Logo]() |