Skip to main content

Gallery Plugin EUVDEUVD-2026-39757

| CVE-2026-57642 HIGH
SQL Injection (CWE-89)
2026-06-26 audit@patchstack.com GHSA-pj5w-v4fq-q95p
8.5
CVSS 3.1 · Vendor: patchstack
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain Contributor account on target
  2. Delivery
    Access vulnerable gallery endpoint
  3. Exploit
    Submit crafted SQL injection parameter
  4. Execution
    Database executes manipulated query
  5. Impact
    Exfiltrate sensitive WordPress data

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Persistence

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires an authenticated WordPress account at the Contributor role or higher (CVSS PR:L), so the attacker must be able to register or be granted contributor access - sites with open registration or many guest authors are realistically exposed, while single-admin sites are not. No user interaction is needed (UI:N) and the attack is fully network-reachable (AV:N) against the plugin's gallery handling in Gallery <= 4.7.8. The limiting factors are the required contributor-level credential and the presence/version of the gallery-plugin; the specific vulnerable parameter or endpoint was not detailed in the provided data and should be confirmed from the Patchstack advisory.

Impact

The supplied CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:L, 8.5) indicates a network-reachable, low-complexity attack requiring low privileges and no user interaction, with high confidentiality impact and a scope change. The most important mitigating signal is PR:L: this is NOT an unauthenticated flaw - the attacker must already hold a Contributor (or higher) account, which substantially narrows the exploit population to sites permitting open registration or hosting many semi-trusted authors. No EPSS score was provided, and the vulnerability is not in CISA KEV, so there is no evidence of active exploitation; likewise no POC was referenced, so this is best treated as a credible but not-yet-weaponized issue. One inconsistency worth verifying: the CVSS vector asserts S:C (scope change) and I:N/A:L, which is an unusual impact profile for SQL injection - typical SQLi yields direct integrity impact (data modification) rather than none, so the vendor's scoring should be confirmed against the actual sink. Priority is moderate-to-high for multi-author WordPress sites running this plugin, and lower for single-admin sites where untrusted contributor accounts do not exist.

Exploit ScenarioDerived

An attacker registers or obtains a Contributor account on a WordPress site running Gallery <= 4.7.8, then submits a crafted request to a vulnerable gallery parameter that breaks out of the intended SQL query. The injected query reads sensitive database contents such as password hashes, secret keys, or other users' data, all without any interaction from an administrator. No public POC was referenced in the source data, but the low attack complexity makes manual exploitation straightforward for an authenticated user.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 26, 2026

SQL injection in the WordPress 'Gallery' plugin (gallery-plugin) through version 4.7.8 lets authenticated low-privilege users (Contributor role and above) inject crafted SQL via plugin-handled parameters, exposing the WordPress database. Tracked as CVE-2026-57642 (CWE-89) and reported by Patchstack, the flaw carries a CVSS 3.1 base score of 8.5; there is no public exploit identified at time of analysis and it is not listed in CISA KEV. A Contributor account is required, which limits exploitation to sites that allow self-registration or otherwise provision contributor-level access.

RemediationAI

Upgrade the Gallery plugin to a release later than 4.7.8 as soon as the vendor publishes a fixed version; the input data does not contain an exact patched version number, so confirm the fixed release directly via the Patchstack advisory (https://patchstack.com/database/wordpress/plugin/gallery-plugin/vulnerability/wordpress-gallery-plugin-4-7-8-sql-injection-vulnerability?_s_id=cve) - patch status is best described as no specific vendor-released fix version identified in the available data. Because exploitation requires a Contributor account, the most effective compensating controls are to disable open user registration (Settings > General > 'Anyone can register') or lower the default new-user role below Contributor, and to audit existing Contributor/Author accounts for untrusted users; the trade-off is reduced ability for legitimate guest authors to self-register. As an additional layer, deploy a WordPress WAF (for example Patchstack's virtual patch or equivalent ruleset) to block SQL injection patterns against the plugin endpoints, accepting the usual risk of false positives on legitimate gallery requests. If the plugin is not essential, deactivating and removing it eliminates the exposure entirely.

Affected VersionsENISA

Gallery n/a ≤4.7.8

Affected Packages

euvd gallery no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The affected component is the BestWebSoft-style 'Gallery' plugin for WordPress, a PHP-based extension that manages image galleries through the WordPress admin and database layer. The root cause is CWE-89 (improper neutralization of special elements in an SQL command): user-controllable input reaches a database query without proper parameterization/escaping, allowing the attacker to alter query structure. WordPress plugins typically build queries against the shared MySQL/MariaDB backend using $wpdb; when developer code concatenates request parameters instead of using $wpdb->prepare(), an attacker with access to the vulnerable gallery endpoint can manipulate the resulting query. No CPE strings were supplied in the input, so the precise affected configuration is identified only by the plugin slug 'gallery-plugin' and the version ceiling of 4.7.8.

Know when Wordpress Plugin gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (patchstack) PRIMARY 8.5 HIGH
AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:L
vuln.today AI 7.1 HIGH

Contributor account required so PR:L; network, low-complexity, no interaction; SQLi reads database (C:H) with limited write potential (I:L) and no availability impact.

3.1 AV:N/AC:L/PR:L/UI:N/S:N/C:H/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (patchstack).

CVSS VectorVendor: patchstack

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
None
Availability
Low

DescriptionCVE.org

Contributor SQL Injection in Gallery <= 4.7.8 versions.

Executive ViewAI

Why It Matters

A SQL injection vulnerability in WordPress Gallery plugin v4.7.8 and earlier allows authenticated contributors to access the WordPress database directly, potentially exposing sensitive data including customer information and system credentials. This affects organizations using WordPress with contributor-level accounts or self-registration enabled, creating an immediate data breach risk for any site where internal users or public contributors are provisioned.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict or remove contributor role assignments; (2) Disable WordPress self-registration; (3) Implement database query logging and alerting for suspicious SQL patterns; (4) Deploy WAF rules blocking SQL injection patterns in plugin parameters; (5) Enforce principle of least privilege for database user running WordPress; (6) Consider disabling the Gallery plugin entirely until patched.

Threat Intelligence Overview

EPSS Score
0.2%
Top 89% exploitable
Prevalence
Medium
common WordPress gallery plugin, sizable but not universal install base
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

42
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +42
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

CVE-2024-5084 CRITICAL POC
9.8 May 23

The Hash Form - Drag & Drop Form Builder plugin for WordPress is vulnerable to arbitrary file uploads due to missing fil

CVE-2024-44000 CRITICAL POC
9.8 Oct 20

Authentication bypass in the LiteSpeed Cache WordPress plugin (versions prior to 6.5.0.1) allows unauthenticated remote

CVE-2020-36847 CRITICAL POC
9.8 Jul 12

The Simple File List plugin for WordPress through version 4.2.2 contains an unauthenticated remote code execution vulner

CVE-2025-11749 CRITICAL POC
9.8 Nov 05

The AI Engine WordPress plugin through version 3.1.3 exposes Bearer Token values through the /mcp/v1/ REST API endpoint

CVE-2025-27007 CRITICAL POC
9.8 May 01

The SureTriggers WordPress plugin through version 1.0.82 contains a privilege escalation vulnerability that allows unaut

CVE-2016-1209 CRITICAL POC
9.8 May 14

The Ninja Forms plugin before 2.9.42.1 for WordPress allows remote attackers to conduct PHP object injection attacks via

CVE-2024-4443 CRITICAL POC
9.8 May 22

The Business Directory Plugin - Easy Listing Directories for WordPress plugin for WordPress is vulnerable to time-based

CVE-2024-1698 CRITICAL POC
9.8 Feb 27

SQL injection in the NotificationX WordPress plugin (versions up to and including 2.8.2) allows unauthenticated remote a

CVE-2023-6875 CRITICAL POC
9.8 Jan 11

The POST SMTP Mailer - Email log, Delivery Failure Notifications and Best Mail SMTP for WordPress plugin for WordPress i

CVE-2024-1512 CRITICAL POC
9.8 Feb 17

The MasterStudy LMS WordPress Plugin - for Online Courses and Education plugin for WordPress is vulnerable to union base

CVE-2024-4295 CRITICAL POC
9.8 Jun 05

The Email Subscribers by Icegram Express plugin for WordPress is vulnerable to SQL Injection via the ‘hash’ parameter in

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy