{"api_version":"1","generated_at":"2026-07-23T20:49:13+00:00","cve":"CVE-2022-21661","urls":{"html":"https://cve.report/CVE-2022-21661","api":"https://cve.report/api/cve/CVE-2022-21661.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-21661","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-21661"},"summary":{"title":"CVE-2022-21661","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.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2022-01-06 23:15:00","updated_at":"2023-11-07 03:43:00"},"problem_types":["CWE-89"],"metrics":[],"references":[{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DM6XPH3JN6V4NF4WBOJTOXZIVE6VKKE3/","name":"FEDORA-2022-8472dd59ff","refsource":"","tags":[],"title":"[SECURITY] Fedora 35 Update: wordpress-5.8.3-1.fc35 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.zerodayinitiative.com/advisories/ZDI-22-020/","name":"https://www.zerodayinitiative.com/advisories/ZDI-22-020/","refsource":"MISC","tags":[],"title":"ZDI-22-020 | Zero Day Initiative","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.debian.org/debian-lts-announce/2022/01/msg00019.html","name":"[debian-lts-announce] 20220123 [SECURITY] [DLA 2884-1] wordpress security update","refsource":"MLIST","tags":[],"title":"[SECURITY] [DLA 2884-1] wordpress security update","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/CV4UNEC63UU5GEU47IIR4RMTZAHNEOJG/","name":"FEDORA-2022-e37e1e6c7a","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 34 Update: wordpress-5.8.3-1.fc34 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/WordPress/wordpress-develop/commit/17efac8c8ec64555eff5cf51a3eff81e06317214","name":"https://github.com/WordPress/wordpress-develop/commit/17efac8c8ec64555eff5cf51a3eff81e06317214","refsource":"MISC","tags":[],"title":"Query: Improve sanitization within `WP_Tax_Query`. · WordPress/wordpress-develop@17efac8 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.exploit-db.com/exploits/50663","name":"https://www.exploit-db.com/exploits/50663","refsource":"MISC","tags":[],"title":"WordPress Core 5.8.2 - 'WP_Query' SQL Injection - PHP webapps Exploit","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/WordPress/wordpress-develop/security/advisories/GHSA-6676-cqfm-gw84","name":"https://github.com/WordPress/wordpress-develop/security/advisories/GHSA-6676-cqfm-gw84","refsource":"CONFIRM","tags":[],"title":"WordPress: SQL Injection through WP_Query · Advisory · WordPress/wordpress-develop · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.debian.org/security/2022/dsa-5039","name":"DSA-5039","refsource":"DEBIAN","tags":[],"title":"Debian -- Security Information -- DSA-5039-1 wordpress","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"http://packetstormsecurity.com/files/165540/WordPress-Core-5.8.2-SQL-Injection.html","name":"http://packetstormsecurity.com/files/165540/WordPress-Core-5.8.2-SQL-Injection.html","refsource":"MISC","tags":[],"title":"WordPress Core 5.8.2 SQL Injection ≈ Packet Storm","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://wordpress.org/news/2022/01/wordpress-5-8-3-security-release/","name":"https://wordpress.org/news/2022/01/wordpress-5-8-3-security-release/","refsource":"MISC","tags":[],"title":"News – WordPress 5.8.3 Security Release – WordPress.org","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CV4UNEC63UU5GEU47IIR4RMTZAHNEOJG/","name":"FEDORA-2022-e37e1e6c7a","refsource":"","tags":[],"title":"[SECURITY] Fedora 34 Update: wordpress-5.8.3-1.fc34 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DM6XPH3JN6V4NF4WBOJTOXZIVE6VKKE3/","name":"FEDORA-2022-8472dd59ff","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 35 Update: wordpress-5.8.3-1.fc35 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-21661","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-21661","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"21661","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"10.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"21661","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"11.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"21661","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"9.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"21661","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"34","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"21661","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"35","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"21661","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"wordpress","cpe5":"wordpress","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"21661","vulnerable":"1","versionEndIncluding":"5.8.3","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"wordpress","cpe5":"wordpress","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2022-21661","qid":"150448","title":"WordPress Multiple Vulnerabilities : Security Update 5.8.3 (CVE-2022-21661,CVE-2022-21662,CVE-2022-21663)"},{"cve":"CVE-2022-21661","qid":"178992","title":"Debian Security Update for wordpress (DSA 5039-1)"},{"cve":"CVE-2022-21661","qid":"179020","title":"Debian Security Update for wordpress (DLA 2884-1)"},{"cve":"CVE-2022-21661","qid":"182929","title":"Debian Security Update for wordpress (CVE-2022-21661)"},{"cve":"CVE-2022-21661","qid":"282249","title":"Fedora Security Update for wordpress (FEDORA-2022-e37e1e6c7a)"},{"cve":"CVE-2022-21661","qid":"282250","title":"Fedora Security Update for wordpress (FEDORA-2022-8472dd59ff)"},{"cve":"CVE-2022-21661","qid":"730330","title":"WordPress Prior to 3.7.37 and 5.8.3 Multiple Security Vulnerabilities"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2022-21661","STATE":"PUBLIC","TITLE":"SQL injection in WordPress"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"wordpress-develop","version":{"version_data":[{"version_value":"< 5.8.3"}]}}]},"vendor_name":"WordPress"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"impact":{"cvss":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":8,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"HIGH","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')"}]}]},"references":{"reference_data":[{"name":"https://github.com/WordPress/wordpress-develop/security/advisories/GHSA-6676-cqfm-gw84","refsource":"CONFIRM","url":"https://github.com/WordPress/wordpress-develop/security/advisories/GHSA-6676-cqfm-gw84"},{"name":"https://github.com/WordPress/wordpress-develop/commit/17efac8c8ec64555eff5cf51a3eff81e06317214","refsource":"MISC","url":"https://github.com/WordPress/wordpress-develop/commit/17efac8c8ec64555eff5cf51a3eff81e06317214"},{"name":"https://wordpress.org/news/2022/01/wordpress-5-8-3-security-release/","refsource":"MISC","url":"https://wordpress.org/news/2022/01/wordpress-5-8-3-security-release/"},{"refsource":"MISC","name":"https://www.zerodayinitiative.com/advisories/ZDI-22-020/","url":"https://www.zerodayinitiative.com/advisories/ZDI-22-020/"},{"refsource":"DEBIAN","name":"DSA-5039","url":"https://www.debian.org/security/2022/dsa-5039"},{"refsource":"MISC","name":"https://www.exploit-db.com/exploits/50663","url":"https://www.exploit-db.com/exploits/50663"},{"refsource":"MISC","name":"http://packetstormsecurity.com/files/165540/WordPress-Core-5.8.2-SQL-Injection.html","url":"http://packetstormsecurity.com/files/165540/WordPress-Core-5.8.2-SQL-Injection.html"},{"refsource":"FEDORA","name":"FEDORA-2022-8472dd59ff","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DM6XPH3JN6V4NF4WBOJTOXZIVE6VKKE3/"},{"refsource":"FEDORA","name":"FEDORA-2022-e37e1e6c7a","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/CV4UNEC63UU5GEU47IIR4RMTZAHNEOJG/"},{"refsource":"MLIST","name":"[debian-lts-announce] 20220123 [SECURITY] [DLA 2884-1] wordpress security update","url":"https://lists.debian.org/debian-lts-announce/2022/01/msg00019.html"}]},"source":{"advisory":"GHSA-6676-cqfm-gw84","discovery":"UNKNOWN"}},"nvd":{"publishedDate":"2022-01-06 23:15:00","lastModifiedDate":"2023-11-07 03:43:00","problem_types":["CWE-89"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","availabilityImpact":"NONE","baseScore":7.5,"baseSeverity":"HIGH"},"exploitabilityScore":3.9,"impactScore":3.6},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:P/I:N/A:N","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"NONE","availabilityImpact":"NONE","baseScore":5},"severity":"MEDIUM","exploitabilityScore":10,"impactScore":2.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*","versionEndExcluding":"5.8.3","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2022","CveId":"21661","Ordinal":"221484","Title":"CVE-2022-21661","CVE":"CVE-2022-21661","Year":"2022"},"notes":[{"CveYear":"2022","CveId":"21661","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2022","CveId":"21661","Ordinal":"2","NoteData":"2022-01-06","Type":"Other","Title":"Published"},{"CveYear":"2022","CveId":"21661","Ordinal":"3","NoteData":"2022-01-23","Type":"Other","Title":"Modified"}]}}}