CVE-2026-9829
Deferred Deferred - Pending Action
Time-Based SQL Injection in Photo Gallery by 10Web WordPress Plugin

Publication date: 2026-06-06

Last updated on: 2026-06-08

Assigner: Wordfence

Description
The Photo Gallery by 10Web – Mobile-Friendly Image Gallery plugin for WordPress is vulnerable to time-based SQL Injection via 'compact_album_order_by' Shortcode Parameter in all versions up to, and including, 1.8.41 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. The malicious payload is stored via the 'shortcode_bwg' AJAX handler β€” accessible to Contributor-level users and exploitable without a valid nonce by omitting the 'page' parameter β€” and is subsequently triggered by the unauthenticated 'bwg_frontend_data' AJAX handler, meaning successful exploitation requires only that an attacker has Contributor-level access to save the shortcode.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-06-06
Last Modified
2026-06-08
Generated
2026-06-27
AI Q&A
2026-06-06
EPSS Evaluated
2026-06-25
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
10web photo_gallery to 1.8.41 (inc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-89 The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

The Photo Gallery by 10Web plugin for WordPress has a time-based SQL Injection vulnerability in the 'compact_album_order_by' shortcode parameter. This occurs because the plugin does not properly escape user input and does not sufficiently prepare the SQL query. As a result, authenticated users with contributor-level access or higher can inject additional SQL queries into existing ones.

The malicious payload is stored via the 'shortcode_bwg' AJAX handler, which can be exploited by contributor-level users without requiring a valid nonce by omitting the 'page' parameter. The injected SQL is then triggered by the unauthenticated 'bwg_frontend_data' AJAX handler, meaning an attacker only needs contributor-level access to save the malicious shortcode to exploit this vulnerability.

Impact Analysis

This vulnerability allows an attacker with contributor-level access to extract sensitive information from the database by injecting additional SQL queries. Since the attack is time-based SQL Injection, it can be used to retrieve confidential data that should otherwise be protected.

The impact is significant because it compromises the confidentiality of data stored in the WordPress database without affecting integrity or availability directly.

Compliance Impact

The vulnerability allows authenticated attackers with contributor-level access to perform time-based SQL Injection, potentially extracting sensitive information from the database.

Such unauthorized access and extraction of sensitive data could lead to violations of data protection regulations like GDPR and HIPAA, which require safeguarding personal and sensitive information against unauthorized access.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-9829. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart