CVE-2021-25114 Paid Memberships Pro < 2.6.7 - Unauthenticated Blind SQL Injection
Unauthenticated attackers can execute arbitrary SQL commands via the discount_code parameter in the REST API, potentially accessing or modifying database contents.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2021-25114?
CVE-2021-25114 is a critical SQL injection vulnerability in Unknown Paid Memberships Pro, published on 7 Feb 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
The Paid Memberships Pro WordPress plugin before 2.6.7 does not escape the discount_code in one of its REST route (available to unauthenticated users) before using it in a SQL statement, leading to a SQL injection
Weakness: CWE-89
Which versions are affected by CVE-2021-25114?
It affects 1 product.
Products include Strangerstudios Paid Memberships Pro.
How do I fix CVE-2021-25114?
No fix has been published for CVE-2021-25114 yet. Limit exposure of the affected software until one is available.
Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.
Is CVE-2021-25114 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-25114 exists.
Public exploit code: 1 Nuclei template.
Other vulnerabilities in Unknown Paid Memberships Pro
- CVE-2023-23488 SQL injection in Paid Memberships Pro WordPress Plugin
- CVE-2023-0631 Paid Memberships Pro < 2.9.12 - Subscriber+ SQL Injection
- CVE-2021-20678 SQL injection in Paid Memberships Pro
- CVE-2024-37486 WordPress Paid Memberships Pro plugin <= 3.0.5 - Authenticated SQL Injection vulnerability
- CVE-2024-37277 WordPress Paid Memberships Pro plugin <= 3.0.4 - Insecure Direct Object References (IDOR) vulnerability
Sources
Also known as GHSA-hx6g-9577-37jq.