Exploit database

Vulnerability

CVE-2022-21661

SQL injection in WordPress

Vulnerability details

Score
8.0
Severity
high

CVSS 3.1 · GitHub_M

Vector string

CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H

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.

CVE Program

Exploit source choices

10 sources
z92g/cve-2022-21661
GH-2e04ffaf63297aea5f7b9fed206afb4bGitHubUnofficial GitHub source

WordPress WP_Query SQL Injection POC

2022-07-288 files · 29 stars
guestzz/cve-2022-21661
GH-ebf8dca26e72efc05cbf7d1c1a6d6babGitHubUnofficial GitHub source

CVE-2022-21661 exp for Elementor custom skin.

2022-07-313 files · 7 stars
sealldeveloper/cve-2022-21661-poc
GH-a2daf2589f1a3c761afade6f41287015GitHubUnofficial GitHub source

A Python PoC of CVE-2022-21661, inspired from z92g's Go PoC

2023-04-274 files · 6 stars
wellingtonespindula/ssi-cve-2022-21661
GH-e1d4e4dda423eb8a3fbda6fd67bc4a84GitHubUnofficial GitHub source

Study and exploit the vulnerability CVE-2022-21661 that allows SQL Injections through plugins POST requests to WordPress versions below 5.8.3.

2023-01-139 files · 6 stars
daniel616/cve-2022-21661-demo
GH-6619317e0cd9902e082b21d2f8f16c38GitHubUnofficial GitHub source

Demonstration of the SQL injection vulnerability in wordpress 5.8.2

2023-02-082,637 files · 2 stars
d4n-sec/d4n-sec.github.io
GH-a977c770ad0cb70a8725a440ce0aeba7GitHubUnofficial GitHub source

Generated personal blog

2026-11-06385 files · 0 stars