CWE
89
Advisory Published
Updated

CVE-2021-36916: WordPress Hide My WP premium plugin <= 6.2.3 - Unauthenticated SQL injection (SQLi) vulnerability

First published: Wed Nov 24 2021(Updated: )

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.

Credit: audit@patchstack.com

Affected SoftwareAffected VersionHow to fix
Hide My WP<=6.2.3

Remedy

Update to 6.2.4 or higher version.

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2021-36916?

    CVE-2021-36916 has been assigned a moderate severity rating due to the potential for SQL injection leading to unauthorized data access.

  • How do I fix CVE-2021-36916?

    To fix CVE-2021-36916, update the Hide My WP WordPress plugin to version 6.2.4 or later.

  • What versions of Hide My WP are affected by CVE-2021-36916?

    CVE-2021-36916 affects Hide My WP plugin versions 6.2.3 and earlier.

  • What is the risk of not addressing CVE-2021-36916?

    Not addressing CVE-2021-36916 could allow attackers to execute arbitrary SQL queries, potentially compromising sensitive information.

  • How can I prevent SQL injection vulnerabilities like CVE-2021-36916?

    To prevent SQL injection vulnerabilities like CVE-2021-36916, always sanitize and validate user inputs before using them in SQL queries.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203