
Proof-of-concept and technical analysis for CVE-2022-21661, a WordPress SQL injection vulnerability, including root-cause breakdown, exploitation walkthrough, Docker lab setup, and mitigation guidance.
Overview of CVE-2022-21661
CVE-2022-21661 is a SQL injection vulnerability found in WordPress, specifically affecting versions prior to 5.8.3. This vulnerability arises from improper sanitization in the WP_Query class, which is used for custom database queries.
its classic SQL injection vulnerability, allowing attackers to manipulate database queries by injecting malicious input. This can lead to unauthorized access to sensitive data, data manipulation, or even complete compromise of the affected WordPress site.
CVE BASE SCORE: 7.5 - 8 (Critical)

projected to be exploited in the wild, making it a significant threat to WordPress users. The vulnerability was responsibly disclosed and patched in WordPress version 5.8.3, so it is crucial for users to update their WordPress installations to mitigate this risk.
CVE Repository: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-21661
Repository of the patch: https://core.trac.wordpress.org/changeset/51909
CVE-2022-21661 project file explanation:
Disclosure timeline:
Final Note: This project is for educational purposes only. Do not use the information or tools provided in this repository for any illegal activities. Always ensure you have permission before testing any systems for vulnerabilities.
credits: