← Vulnerability feed

Vulnerability record · CVE-2022-0169 · published 14 March 2022

CVE-2022-0169: Photo Gallery by 10Web WordPress plugin unauthenticated SQL injection

10web · Photo Gallery

The Photo Gallery by 10Web WordPress plugin before 1.6.0 fails to validate and escape the bwg_tag_id_bwg_thumbnails_0 parameter before using it in a SQL statement through the bwg_frontend_data AJAX action. Because that action is reachable without authentication, any remote visitor can inject SQL into the plugin's queries. This is a critical flaw in a widely deployed WordPress plugin.

9.8 CVSS 3.1 Critical EPSS 75% · top 0.5% CWE-89 · SQL injection
9.8CVSS 3.1 base score, v2 7.5
75%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
4References, 2 tagged exploit
17 Jun 2026Last modified by NVD

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

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 18 September 2026. Confidence: high.

critical priorityUnauthenticated network-reachable SQL injection with CVSS 9.8, a public exploit reference and very high EPSS probability makes this an urgent patch.

What it is

The Photo Gallery by 10Web WordPress plugin before 1.6.0 fails to validate and escape the bwg_tag_id_bwg_thumbnails_0 parameter before using it in a SQL statement through the bwg_frontend_data AJAX action. Because that action is reachable without authentication, any remote visitor can inject SQL into the plugin's queries. This is a critical flaw in a widely deployed WordPress plugin.

Impact

An attacker can read, modify or destroy database contents, including WordPress user credentials and site data, and may be able to pivot further depending on database privileges. Full compromise of confidentiality, integrity and availability is possible.

Attack surface

Reached over the network through the plugin's bwg_frontend_data AJAX endpoint, which the description states is available to unauthenticated and authenticated users. No authentication or user interaction is required per the CVSS vector (AV:N/AC:L/PR:N/UI:N).

Exploitation

Not listed in CISA KEV, but EPSS is very high at 0.746 (99.5th percentile) and the WPScan reference is tagged Exploit, indicating public exploit detail exists. No ransomware association is documented.

What to do

  • Update the Photo Gallery by 10Web plugin to version 1.6.0 or later immediately.
  • If patching cannot be done at once, disable or remove the plugin until it can be updated.
  • Deploy a web application firewall rule blocking or sanitizing the bwg_tag_id_bwg_thumbnails_0 parameter on the bwg_frontend_data AJAX action.
  • Review database and WordPress accounts for signs of tampering and rotate credentials if compromise is suspected.
  • Restrict database account privileges used by WordPress to the minimum needed.

Detection

  • Search web server and WAF logs for requests to admin-ajax.php with action=bwg_frontend_data and suspicious bwg_tag_id_bwg_thumbnails_0 values containing SQL syntax.
  • Monitor database query logs for UNION, SLEEP, BENCHMARK or other injection patterns originating from the web application.
  • Alert on unexpected changes to WordPress users, options or plugin tables.
  • Check for outbound connections or new administrative accounts created after suspicious AJAX activity.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2022-0169 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2022-128110web photo gallery sql injection vulnerabilityThe Photo Gallery WordPress plugin through 1.6.3 does not properly escape the $_POST['filter_tag'] parameter, which is appended to an SQL query, maki…EPSS 43%9.8CVE-2021-2413910web photo gallery sql injection vulnerabilityUnvalidated input in the Photo Gallery (10Web Photo Gallery) WordPress plugin, versions before 1.5.55, leads to SQL injection via the frontend/models…EPSS 5.5%9.8CVE-2019-1611910web photo gallery sql injection vulnerabilitySQL injection in the photo-gallery (10Web Photo Gallery) plugin before 1.5.35 for WordPress exists via the admin/controllers/Albumsgalleries.php albu…EPSS 25%9.8CVE-2019-1431310web photo gallery sql injection vulnerabilityA SQL injection vulnerability exists in the 10Web Photo Gallery plugin before 1.5.31 for WordPress. Successful exploitation of this vulnerability wou…EPSS 4.5%8.8CVE-2024-548110web photo gallery path traversal vulnerabilityThe Photo Gallery by 10Web – Mobile-Friendly Image Gallery plugin for WordPress is vulnerable to Path Traversal in all versions up to, and including,…EPSS 0.73%8.8CVE-2015-938010web photo gallery cross-site request forgery vulnerabilityThe photo-gallery plugin before 1.2.42 for WordPress has CSRF.EPSS 0.82%8.8CVE-2014-9312WordPress Photo Gallery plugin unrestricted file uploadPhoto Gallery 1.2.5 (10web) contains an unrestricted file upload flaw (CWE-434) that lets a user upload files without proper type or extension valida…EPSS 45%analysed7.5CVE-2015-105510web photo gallery sql injection vulnerabilitySQL injection vulnerability in the Photo Gallery plugin 1.2.7 for WordPress allows remote attackers to execute arbitrary SQL commands via the order_b…EPSS 2.1%

Source: NIST National Vulnerability Database (record CVE-2022-0169), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.