CVE-2021-24915 Contest Gallery < 13.1.0.6 - Missing Access Controls to Unauthenticated SQL injection / Email Address Disclosure

Critical 9.8 Published Updated

Unauthenticated attackers can perform SQL injection to extract user data and potentially execute code via the Contest Gallery 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-24915?

CVE-2021-24915 is a critical SQL injection vulnerability in Unknown Contest Gallery – Photo Contest Plugin for WordPress, published on 29 Nov 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The Contest Gallery WordPress plugin before 13.1.0.6 does not have capability checks and does not sanitise or escape the cg-search-user-name-original parameter before using it in a SQL statement when exporting users from a gallery, which could allow unauthenticated to perform SQL injections attacks, as well as get the list of all users registered on the blog, including their username and email address

Weakness: CWE-89

Which versions are affected by CVE-2021-24915?

It affects 1 product.

Products include Contest Gallery Contest Gallery.

How do I fix CVE-2021-24915?

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

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

Public exploit code: 1 Nuclei template.

Sources

Also known as GHSA-986q-37xh-j7h2.

Is CVE-2021-24915 in your software?

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

Check your SBOMs for free