SecurityContext

CVE-2021-36916: Hide My WP - SQL Injection

  • Cve: CVE-2021-36916
  • Name: Hide My WP - SQL Injection
  • 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.
  • Impact: Attackers can execute arbitrary SQL commands, potentially leading to data theft, modification, or deletion.
  • Remediation: Update to the latest version of the plugin where the input is properly sanitized.
  • Vulnerability type: sql_injection
  • Vulnerability impact: information_disclosure, data_tampering
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 9.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.01861
  • Epss percentile: 0.79671
  • Assignee: [email protected]
  • Published at: 2021-11-24T17:15:07Z
  • Age in days: 1826
  • Modified at: 2026-06-17T03:59:37Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 3
  • Products total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-36916
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, oss, projects total, projects, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-89Improper Neutralization of Special Elements used in an SQL Command

Public exploits

UrlSourceAdded date
https://patchstack.com/hide-my-wp-vulnerabilities-fixed/nvd2021-11-24

References

Same in every row:

  • Source: nvd
UrlTags
https://patchstack.com/database/vulnerability/hide-my-wp/wordpress-hide-my-wp-premium-plugin-6-2-3-sql-injection-sqli-vulnerabilityPatch, Third Party Advisory
https://patchstack.com/hide-my-wp-vulnerabilities-fixed/Exploit, Third Party Advisory
https://codecanyon.net/item/hide-my-wp-amazing-security-plugin-for-wordpress/4177158Product

Products

ProductAffectedPlatform boundSourcesUrl
wpwave:hide_my_wp<= 6.2.3nonvd/v1/products/wpwave/hide_my_wp

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2021-11-24
  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts