Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify site running Gmedia Photo Gallery
-
DeliverySend crafted request to vulnerable parameter
-
ExploitInject SQL into database query
-
ExecutionExtract user hashes and secrets
-
ImpactCrack or reuse credentials for admin takeover
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 only that a reachable WordPress site have the Gmedia Photo Gallery plugin (version 1.25.1 or earlier) installed and active; the vector is AV:N/AC:L/PR:N/UI:N, so no authentication, no privileged account, and no victim interaction are needed against a default installation. The primary limiting factors are therefore deployment-based rather than configuration-based: the target must run an affected plugin version that has not been updated past 1.25.1, and the vulnerable endpoint must be network-reachable (not blocked by a WAF or access restriction). The exact request parameter is not specified in the provided data, so the specific triggering feature of the plugin should be confirmed from the Patchstack advisory. |
| Impact | This is a genuine high-priority issue, not a CVSS-inflated one. The vendor (Patchstack) CVSS:3.1 vector AV:N/AC:L/PR:N/UI:N confirms a network-reachable, low-complexity, unauthenticated flaw - the most dangerous profile for a WordPress plugin, since any internet-facing site running the plugin can be attacked directly. CWE-89 (SQL Injection) with C:H means full read access to the WordPress database, which typically exposes user password hashes, session/auth tokens, and secrets, making account takeover a realistic downstream outcome. The vendor also set S:C (scope change) and A:L, consistent with an injection that can reach beyond the plugin's own data into the shared database and cause limited availability disruption. No EPSS score, CISA KEV listing, SSVC decision data, or public POC was provided in the input, so exploitation probability cannot be quantified from the data at hand; absence of KEV/POC is NOT evidence of safety, because unauthenticated SQLi in WordPress plugins is a heavily automated, mass-scanned bug class and Patchstack-reported plugin SQLi frequently sees opportunistic exploitation shortly after disclosure. One signal to note: the vendor marked I:N (no integrity impact), which is unusual for SQLi - many SQLi flaws also permit data modification - so the actual integrity exposure should be verified against the Patchstack advisory rather than assumed to be read-only. |
| Exploit ScenarioDerived | An unauthenticated attacker sends a crafted HTTP request to a vulnerable plugin endpoint on a public WordPress site, injecting SQL into an unsanitized parameter. Because no authentication or user interaction is required (PR:N/UI:N), the attacker extracts database contents - including WordPress user records and password hashes - enabling follow-on administrator account compromise. No public exploit identified at time of analysis, so exploitation currently requires the attacker to craft the injection independently. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 06, 2026
Unauthenticated SQL injection in the WordPress plugin Gmedia Photo Gallery (versions 1.25.1 and earlier) allows remote attackers to inject arbitrary SQL into database queries and read data the application can access, which the assessment rates as high confidentiality impact with no integrity or availability impact. Any WordPress site with the plugin installed and active is potentially exposed because exploitation requires no account, no privileges, and no victim interaction (AV:N/AC:L/PR:N/UI:N); the practical gate is deployment - the site must run an unpatched version and expose the vulnerable endpoint to the network. No public exploit code has been identified at time of analysis and the issue is not in CISA KEV, but the reporter's 9.3 score and the zero-prerequisite vector make it a high-priority item for inventory and patching rather than a CVSS-inflated finding.
RemediationAI
No fixed version is cited in the available advisory data; Patchstack's advisory page (https://patchstack.com/database/wordpress/plugin/grand-media/vulnerability/wordpress-gmedia-photo-gallery-plugin-1-25-1-sql-injection-vulnerability?_s_id=cve) should be checked for the first patched plugin release, and once published the plugin must be updated to that version via the WordPress plugin updater - patch status is best described as 'no vendor-released patch identified at time of analysis'. Until a fix is available, the highest-fidelity option is to deactivate and, if the gallery is not business-critical, uninstall the plugin, accepting the loss of gallery functionality; if galleries are required, keep the plugin active only behind a WAF rule set that blocks SQL metacharacters and UNION/boolean/error-based patterns on the plugin's AJAX and REST routes, understanding that WAF evasion is possible and that aggressive rules will cause false positives on legitimate gallery queries. Additional compensating controls: restrict access to the WordPress AJAX and REST endpoints that serve the plugin to known client ranges if the audience permits it, run the site's database account with least privilege (no FILE, no stacked queries, and ideally a non-superuser MySQL/MariaDB account) so a successful injection cannot escalate to file read/write, monitor database and web logs for anomalous queries against gallery-related tables, and validate whether the vulnerable parameter described in the Patchstack advisory is actually reachable before assuming the WAF coverage is complete. Re-enable full plugin functionality only after the patched release is installed and verified.
Affected VersionsENISA
Affected Packages
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
Gmedia Photo Gallery (WordPress.org slug 'grand-media', CPE cpe:2.3:a:serhii_pasyuk:gmedia_photo_gallery) is a WordPress plugin by Serhii Pasyuk that provides media/gallery management and exposes front-end and AJAX/REST query handlers. The flaw is CWE-89 (improper neutralization of special elements used in an SQL command), meaning a request-supplied value is concatenated into a SQL statement instead of being passed through $wpdb->prepare() or an equivalent parameterized query, letting an attacker alter the statement's logic and use the response as a read oracle. Both the reporter's vector and our independent assessment agree on network reachability, low attack complexity, no required privileges (PR:N) and no user interaction (UI:N); they differ on scope and secondary impact, with the reporter claiming S:C/C:H/I:N/A:L while our assessment settles on S:U/C:H/I:N/A:N, i.e. an information-disclosure-only SQL injection whose blast radius stays within the WordPress application and its database. The precise request parameter and endpoint are not enumerated in the supplied data, so the exact triggering feature (front-end gallery query, AJAX action, or shortcode handler) should be confirmed against the Patchstack advisory before building detection signatures.
Know when Gmedia Photo Gallery 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
AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:L
Unauthenticated network-reachable SQLi gives AV:N/AC:L/PR:N/UI:N and C:H for full DB read; I:N/A:N per vendor and no evidence the injection modifies data or affects a separate system, so S:U.
Primary rating from Vendor (Patchstack).
CVSS VectorVendor: Patchstack
DescriptionCVE.org
Unauthenticated SQL Injection in Gmedia Photo Gallery <= 1.25.1 versions.
Executive ViewAI
The Gmedia Photo Gallery plugin for WordPress is affected by a critical, unauthenticated SQL injection (CVE-2026-39785) in versions 1.25.1 and earlier, and no vendor patch is currently available. Any external attacker can reach the plugin's vulnerable endpoint without credentials and extract database contents the application can read, which may include WordPress user records, hashed credentials, and other business data. Because remediation depends on deactivating or replacing the plugin across every affected site, leadership should care about this as an inventory and exposure-management problem rather than a single-device fix - every forgotten or unmanaged WordPress instance running this plugin is a potential data-breach vector today.
No vendor-released patch identified at time of analysis. Interim mitigations: deactivate or uninstall the Gmedia Photo Gallery plugin (versions 1.25.1 and earlier) on all affected WordPress sites; where the plugin must remain active, apply WAF or virtual-patching rules targeting SQL injection against the plugin's endpoints and admin-ajax.php, restrict network access to those sites, and monitor database and web logs for unauthorized query activity until a vendor fix or replacement plugin is in place.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
EUVD-2026-93031
GHSA-2r8p-hw5f-xgff
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB