CVE-2022-1281
WordPress vulnerability analysis and mitigation

Overview

The Photo Gallery WordPress plugin through version 1.6.3 contains an unauthenticated SQL injection vulnerability identified as CVE-2022-1281. The vulnerability was discovered by ZhongFu Su(JrXnm) of Wuhan University and was publicly disclosed on April 11, 2022. The issue affects the plugin's handling of the $_POST['filter_tag'] parameter, which is not properly escaped when appended to SQL queries (WPScan, CVE Mitre).

Technical details

The vulnerability is classified as an SQL Injection (SQLI) vulnerability with a CVSS score of 8.6 (High). It falls under the OWASP Top 10 category A1: Injection and is identified as CWE-89. The issue occurs in the plugin's GalleryBox functionality where the filter_tag parameter is processed without proper sanitization, allowing malicious SQL queries to be injected through POST requests to wp-admin/admin-ajax.php (WPScan).

Impact

As an unauthenticated SQL injection vulnerability, this issue could allow attackers to execute arbitrary SQL queries against the WordPress database without requiring authentication. This could potentially lead to unauthorized access to sensitive data, manipulation of database contents, or compromise of the WordPress installation (WPScan).

Exploitability

The vulnerability is exploitable through a POST request to wp-admin/admin-ajax.php with a specially crafted filter_tag parameter. A proof of concept exploit has been publicly documented, demonstrating how an attacker can execute SQL queries to extract database information such as the MySQL version (WPScan).

Mitigation and workarounds

The vulnerability has been fixed in version 1.6.3 of the Photo Gallery plugin. The fix includes proper sanitization of the filter_tag parameter using array_map('intval') function to ensure only integer values are processed (WordPress Plugin). Users are advised to update to version 1.6.3 or later to protect against this vulnerability.

Additional resources


SourceThis report was generated using AI

Related WordPress vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-16955NONEN/A
  • ai-engine
NoYesAug 08, 2026
CVE-2026-16953NONEN/A
  • ai-engine
NoYesAug 08, 2026
CVE-2026-16948NONEN/A
  • solace-extra
NoYesAug 08, 2026
CVE-2026-16608NONEN/A
  • download-monitor
NoYesAug 08, 2026
CVE-2026-16595NONEN/A
  • wpdirectorykit
NoYesAug 08, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management