Description
The Photo Gallery by 10Web – Mobile-Friendly Image Gallery plugin for WordPress is vulnerable to time-based blind SQL Injection via the 'order_by' parameter in all versions up to, and including, 1.8.40 due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for authenticated attackers, with contributor-level access and above, to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database. This is exploitable by embedding a malicious shortcode in a post or draft, allowing the injected SQL to execute when the shortcode is rendered.
Published: 2026-05-28
Score: 6.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability is a time‑based blind SQL injection that occurs through the 'order_by' attribute of the plugin’s shortcode. By injecting malicious SQL into the attribute, an attacker can append queries to the existing statement, allowing extraction of sensitive database content. This flaw arises from insufficient input escaping and lack of prepared statements. The impact is the potential disclosure of confidential data stored in the WordPress database.

Affected Systems

The defect affects the 10web Photo Gallery by 10Web – Mobile-Friendly Image Gallery plugin for WordPress. All releases up to and including version 1.8.40 are susceptible. Any site that has installed these versions and has users with contributor-level or higher privileges is at risk.

Risk and Exploitability

The CVSS score of 6.5 indicates moderate severity. The EPSS score is unavailable, and the vulnerability is not listed in the CISA KEV catalog, suggesting no documented widespread exploitation. The likely attack vector is a logical path where an authenticated contributor crafts a post or draft containing a malicious shortcode; when the page renders, the injected SQL executes. Successful exploitation requires the ability to create or modify content and the presence of the vulnerable plugin version.

Generated by OpenCVE AI on May 28, 2026 at 09:22 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the Photo Gallery by 10Web plugin to version 1.8.41 or later, which removes the vulnerable code.
  • If an upgrade is not immediately possible, limit contributor permissions so that only trusted users can create or edit posts and shortcodes.
  • Implement input validation that sanitizes or restricts the 'order_by' shortcode attribute to expected values only.

Generated by OpenCVE AI on May 28, 2026 at 09:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 28 May 2026 11:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 28 May 2026 08:45:00 +0000

Type Values Removed Values Added
Description The Photo Gallery by 10Web – Mobile-Friendly Image Gallery plugin for WordPress is vulnerable to time-based blind SQL Injection via the 'order_by' parameter in all versions up to, and including, 1.8.40 due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for authenticated attackers, with contributor-level access and above, to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database. This is exploitable by embedding a malicious shortcode in a post or draft, allowing the injected SQL to execute when the shortcode is rendered.
Title Photo Gallery by 10Web <= 1.8.40 - Authenticated (Contributor+) SQL Injection via 'order_by' Shortcode Attribute
Weaknesses CWE-89
References
Metrics cvssV3_1

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


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: Wordfence

Published:

Updated: 2026-05-28T10:32:39.004Z

Reserved: 2026-04-25T17:31:21.734Z

Link: CVE-2026-7048

cve-icon Vulnrichment

Updated: 2026-05-28T10:32:34.425Z

cve-icon NVD

Status : Deferred

Published: 2026-05-28T09:16:48.433

Modified: 2026-05-28T13:45:25.260

Link: CVE-2026-7048

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-05-28T09:30:06Z

Weaknesses