VULNERABILITY INTELLIGENCE
CVE-2021-36916
CVSS score8.6 HIGH
EPSS probability1.86%
CISA KEVNot currently listed
Published2021-11-24
Last modified2026-06-17
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L
Description
The SQL injection vulnerability in the Hide My WP WordPress plugin (versions <= 6.2.3) is possible because of how the IP address is retrieved and used inside a SQL query. The function "hmwp_get_user_ip" tries to retrieve the IP address from multiple headers, including IP address headers that the user can spoof, such as "X-Forwarded-For." As a result, the malicious payload supplied in one of these IP address headers will be directly inserted into the SQL query, making SQL injection possible.
Weakness classification
- audit@patchstack.com: CWE-89
- nvd@nist.gov: CWE-89
Primary references
- audit@patchstack.com — Product
- audit@patchstack.com — Patch, Third Party Advisory
- audit@patchstack.com — Exploit, Third Party Advisory
- af854a3a-2127-422b-91ae-364da2661108 — Product
- af854a3a-2127-422b-91ae-364da2661108 — Patch, Third Party Advisory
- af854a3a-2127-422b-91ae-364da2661108 — Exploit, Third Party Advisory