Description
The Gmedia Photo Gallery plugin for WordPress is vulnerable to time-based SQL Injection via the 'gmedia__in' parameter in all versions up to, and including, 1.25.1 due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for unauthenticated attackers to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database. The unauthenticated mobile app endpoint dispatches the library action without validating the Mobile App feature flag, a nonce, or any WordPress authentication, meaning no account or session of any kind is required to exploit this vulnerability.
Published: 2026-10-14
Score: 7.5 High
EPSS: < 1% Very Low
KEV: No
Impact: Data Breach via Unauthenticated SQL Injection
Action: Patch
AI Analysis

Impact

The vulnerability is a time‑based SQL injection in the 'gmedia__in' parameter of the Gmedia Photo Gallery plugin for WordPress. The input is concatenated directly into an SQL query without adequate escaping or prepared statements, allowing an attacker to append arbitrary SQL statements. Because the endpoint is exposed to unauthenticated users—including a mobile‑app route that does not require a nonce or WordPress authentication—any visitor can exploit this flaw. The consequence is the ability to read or modify data in the database, potentially exposing user credentials, permissions, media metadata, or other sensitive information.

Affected Systems

Affected vendors and products are the Gmedia Photo Gallery plugin released by pasyuk. All released versions up to and including 1.25.1 contain the flaw. Users running private or custom builds may be at risk if they have not upgraded past that version. The plugin is typically installed on WordPress sites that enable the mobile‑app functionality via the library action endpoint.

Risk and Exploitability

With a CVSS score of 7.5 the vulnerability is classified as high severity. The EPSS score of less than 1 % indicates that exploitation is currently unlikely, and the issue is not listed in CISA’s KEV catalog. Nevertheless, because authentication is not required and the flaw allows data extraction, organizations should treat the risk as significant. The attacker requires only the ability to send HTTP requests to the vulnerable endpoint; no elevated privileges are needed to extract database contents.

Generated by OpenCVE AI on October 16, 2026 at 01:31 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Gmedia Photo Gallery to the latest version that removes the insecure parameter handling.
  • If an upgrade is not immediately possible, restrict access to the mobile‑app endpoint by blocking the 'gmedia__in' parameter or via web‑application firewall rules that reject unsanitized SQL injection payloads.
  • Apply generic input validation in the plugin code, ensuring all database requests use prepared statements or properly escaped values; for organizations that maintain customized copies, patch the access.php file to validate user input and enforce authentication for the mobile‑app endpoint.

Generated by OpenCVE AI on October 16, 2026 at 01:31 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 14 Oct 2026 04:00:00 +0000

Type Values Removed Values Added
Description The Gmedia Photo Gallery plugin for WordPress is vulnerable to time-based SQL Injection via the 'gmedia__in' parameter in all versions up to, and including, 1.25.1 due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for unauthenticated attackers to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database. The unauthenticated mobile app endpoint dispatches the library action without validating the Mobile App feature flag, a nonce, or any WordPress authentication, meaning no account or session of any kind is required to exploit this vulnerability.
Title Gmedia Photo Gallery <= 1.25.1 - Unauthenticated SQL Injection via 'gmedia__in' Parameter
Weaknesses CWE-89
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: Wordfence

Published:

Updated: 2026-10-14T17:54:17.887Z

Reserved: 2026-09-23T14:51:20.655Z

Link: CVE-2026-96661

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Deferred

Published: 2026-10-14T04:19:01.350

Modified: 2026-10-14T18:19:47.643

Link: CVE-2026-96661

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-16T01:45:19Z

Weaknesses
  • CWE-89

    Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')