CVE-2026-9829
Description
Time-based SQL Injection in Photo Gallery by 10Web plugin allows authenticated attackers to extract sensitive database information.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Time-based SQL Injection in Photo Gallery by 10Web plugin allows authenticated attackers to extract sensitive database information.
Vulnerability
The Photo Gallery by 10Web WordPress plugin versions up to and including 1.8.41 are vulnerable to time-based SQL Injection. This vulnerability exists due to insufficient escaping of the compact_album_order_by shortcode parameter and inadequate preparation of the SQL query. The vulnerability is triggered via the bwg_frontend_data AJAX handler, which can be called by unauthenticated users, but requires an attacker to first save a malicious shortcode using the shortcode_bwg AJAX handler, which is accessible to authenticated users with Contributor-level access or higher.
Exploitation
An attacker with Contributor-level access or higher can exploit this vulnerability. The attacker first crafts a malicious shortcode containing a time-based SQL injection payload in the compact_album_order_by parameter. This shortcode is then saved via the shortcode_bwg AJAX handler. Subsequently, an unauthenticated user can trigger the malicious payload by accessing the bwg_frontend_data AJAX handler, which processes the saved shortcode and executes the injected SQL query.
Impact
Successful exploitation allows an authenticated attacker with Contributor-level access to extract sensitive information from the WordPress database. The time-based nature of the SQL injection means that the attacker can infer data by measuring the time it takes for the database to respond, potentially leading to the disclosure of user credentials, personal information, or other sensitive site data.
Mitigation
The vulnerability was fixed in version 1.8.42 of the Photo Gallery by 10Web plugin, released on 2026-05-29. Users are strongly advised to update to version 1.8.42 or later to mitigate this vulnerability. No workarounds are available for older versions. [3]
AI Insight generated on Jun 6, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
2- Range: <=1.8.41
- Range: <=1.8.41
Patches
1r3553847Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
12- plugins.trac.wordpress.org/browser/photo-gallery/tags/1.8.40/admin/controllers/Shortcode.phpnvd
- plugins.trac.wordpress.org/browser/photo-gallery/tags/1.8.40/framework/WDWLibrary.phpnvd
- plugins.trac.wordpress.org/browser/photo-gallery/tags/1.8.40/frontend/models/model.phpnvd
- plugins.trac.wordpress.org/browser/photo-gallery/tags/1.8.40/frontend/models/model.phpnvd
- plugins.trac.wordpress.org/browser/photo-gallery/tags/1.8.40/photo-gallery.phpnvd
- plugins.trac.wordpress.org/browser/photo-gallery/tags/1.8.41/admin/controllers/Shortcode.phpnvd
- plugins.trac.wordpress.org/browser/photo-gallery/tags/1.8.41/framework/WDWLibrary.phpnvd
- plugins.trac.wordpress.org/browser/photo-gallery/tags/1.8.41/frontend/models/model.phpnvd
- plugins.trac.wordpress.org/browser/photo-gallery/tags/1.8.41/frontend/models/model.phpnvd
- plugins.trac.wordpress.org/browser/photo-gallery/tags/1.8.41/photo-gallery.phpnvd
- plugins.trac.wordpress.org/changeset/3553847nvd
- www.wordfence.com/threat-intel/vulnerabilities/id/cae7dabd-ce43-43e3-9f67-b2de55bd720bnvd
News mentions
0No linked articles in our index yet.