CVE-2021-25114 Paid Memberships Pro < 2.6.7 - Unauthenticated Blind SQL Injection

Critical 9.8 Published Updated

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.

Sources

Also known as GHSA-hx6g-9577-37jq.

Is CVE-2021-25114 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free