Cyber Resilience

CVE-2022-1281

CriticalPublic PoC

Published: 02 May 2022

Published
02 May 2022
Modified
21 November 2024
KEV Added
Patch
CVSS Score v3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS Score 0.0601 90.9th percentile
Risk Priority 23 60% EPSS · 20% KEV · 20% CVSS

Summary

CVE-2022-1281 is a critical-severity SQL Injection (CWE-89) vulnerability in 10Web Photo Gallery. Its CVSS base score is 9.8 (Critical).

Operationally, ranked in the top 9.1% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.

Deeper analysis

The vulnerability is an SQL injection flaw (CWE-89) in the Photo Gallery WordPress plugin through version 1.6.3. The root cause is insufficient escaping of the $_POST['filter_tag'] parameter before it is concatenated into an SQL query in the frontend gallery handling code.

An unauthenticated remote attacker can supply a crafted filter_tag value in a POST request to trigger arbitrary SQL commands against the backend database. Successful exploitation yields full read, write, and delete access to database contents, consistent with the CVSS 9.8 rating that reflects no required authentication or user interaction and high impact across confidentiality, integrity, and availability.

The referenced WordPress Trac changesets show a fix committed to BWGModelGalleryBox.php that addresses the missing escaping, and the WPScan entry provides additional technical confirmation of the issue.

The EPSS score rose from a low baseline to a peak of 0.2098 on 2025-12-11 before receding to the current value of 0.0601, indicating that exploitation interest increased after public disclosure.

EU & UK References

Vulnerability details

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.

CWE(s)

Related Threats

No named actor attribution yet. ATT&CK technique mapping in progress for this CVE.

Affected Assets

10web
photo gallery
≤ 1.6.3

Mitigating Controls

Likely Mitigating Controls AI

Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.

addresses: CWE-89

Penetration testing uses SQL injection payloads against database interfaces, identifying and supporting fixes for SQL injection weaknesses.

addresses: CWE-89

Validates query inputs to prevent SQL syntax or command manipulation.

References