Medium severity · published Jun 6, 2026
CVE-2026-9829
Photo Gallery by 10Web <= 1.8.41 - Authenticated (Contributor+) SQL Injection via 'compact_album_order_by' Shortcode Parameter
6.5
CVSS
0.5%
EPSS
No
On KEV
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 vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Attack vector
Network
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
High
Integrity
None
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.5% · higher than 40% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
PG
Photo Gallery by 10Web – Mobile-Friendly Image Gallery · 10web
through 1.8.41 · source: vendor
Affected product
PG
Photo Gallery by 10Web – Mobile-Friendly Image Gallery
10web
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-9829
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-9829
plugins.trac.wordpress.org
https://plugins.trac.wordpress.org/browser/photo-gallery/tags/1.8.40/admin/controllers/Shortcode.php#L59
plugins.trac.wordpress.org
https://plugins.trac.wordpress.org/browser/photo-gallery/tags/1.8.40/framework/WDWLibrary.php#L2281
plugins.trac.wordpress.org
https://plugins.trac.wordpress.org/browser/photo-gallery/tags/1.8.40/frontend/models/model.php#L113
plugins.trac.wordpress.org
https://plugins.trac.wordpress.org/browser/photo-gallery/tags/1.8.40/frontend/models/model.php#L162
plugins.trac.wordpress.org
https://plugins.trac.wordpress.org/browser/photo-gallery/tags/1.8.40/photo-gallery.php#L717
plugins.trac.wordpress.org
https://plugins.trac.wordpress.org/browser/photo-gallery/tags/1.8.41/admin/controllers/Shortcode.php#L59
More from Photo Gallery by 10Web – Mobile-Friendly Image Gallery
8.8
CVE-2024-5481
Photo Gallery by 10Web – Mobile-Friendly Image Gallery <= 1.8.23 - Authenticated (Contributor+) Path Traversal via esc_dir Function
7.2
CVE-2024-0221
Photo Gallery by 10Web - Mobile-Friendly Image Gallery <= 1.8.19 - Directory Traversal to Arbitrary File Rename
6.5
CVE-2026-85652
Photo Gallery by 10Web <= 1.8.44 - Authenticated (Author+) SQL Injection via 'album_id' Shortcode Attribute
6.5
CVE-2026-7048
Photo Gallery by 10Web <= 1.8.40 - Authenticated (Contributor+) SQL Injection via 'order_by' Shortcode Attribute
6.4
CVE-2026-86311
Photo Gallery by 10Web – Mobile-Friendly Image Gallery <= 1.8.44 - Authenticated (Contributor+) Stored Cross-Site Scripting via Shortcode Attributes
