CVE-2021-24731 Pie Register < 3.7.1.6 - Unauthenticated SQL Injection

Critical 9.8 Published Updated

Unauthenticated attackers can execute arbitrary SQL commands via the login REST API endpoint in the Pie Register WordPress plugin.

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-24731?

CVE-2021-24731 is a critical SQL injection vulnerability in Unknown Registration Forms – User profile, Content Restriction, Spam Protection, Payment Gateways, Invitation Codes, published on 8 Nov 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The Registration Forms – User profile, Content Restriction, Spam Protection, Payment Gateways, Invitation Codes WordPress plugin before 3.7.1.6 does not properly escape user data before using it in a SQL statement in the wp-json/pie/v1/login REST API endpoint, leading to an SQL injection.

Weakness: CWE-89

Which versions are affected by CVE-2021-24731?

It affects 1 product.

Products include Genetechsolutions Pie Register.

How do I fix CVE-2021-24731?

No fix has been published for CVE-2021-24731 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-24731 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-24731 exists.

Public exploit code: 1 Nuclei template.

Sources

Also known as GHSA-3m93-8pm8-gqxj.

Is CVE-2021-24731 in your software?

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

Check your SBOMs for free