Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Lifecycle Timeline
2DescriptionCVE.org
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.
AnalysisAI
Time-based blind SQL injection in the Photo Gallery by 10Web WordPress plugin (all versions through 1.8.40) allows authenticated attackers holding contributor-level access or above to exfiltrate sensitive database contents by embedding a crafted shortcode in a post or draft. The order_by parameter is passed unsanitized into existing SQL queries, and the injected payload executes when the shortcode is rendered - targeting WordPress databases containing credentials, user PII, and site configuration. No public exploit code or CISA KEV listing has been identified at time of analysis, though the high confidentiality impact and low attack complexity make this a meaningful risk on any site with non-administrative contributors.
Technical ContextAI
The vulnerability originates in two files of the plugin's framework layer: framework/WDWLibrary.php (lines 1351 and 2112) and frontend/controllers/controller.php (line 354), as confirmed by multiple WordPress Trac source browser references. The order_by shortcode parameter is insufficiently escaped before concatenation into raw SQL queries - the root cause class is CWE-89 (Improper Neutralization of Special Elements used in an SQL Command). The exploitation pathway is distinctively indirect: the malicious SQL payload is dormant inside a shortcode attribute until a page rendering event triggers execution server-side, bypassing some naive input-validation approaches that only inspect form submissions. The time-based blind technique (using conditional delay functions such as MySQL's SLEEP() or BENCHMARK()) infers database content bit-by-bit through measured response latency, requiring no direct query output channel. The affected CPE is cpe:2.3:a:10web:photo_gallery_by_10web_-_mobile-friendly_image_gallery:*:*:*:*:*:*:*:*, covering all versions up to and including 1.8.40.
RemediationAI
An upstream fix has been committed to the plugin's trunk repository, as evidenced by the WordPress Trac changeset at https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&old=3532364%40photo-gallery&new=3532364%40photo-gallery; however, a specific patched release version number is not independently confirmed from the available data - the described fix targets versions beyond 1.8.40. Administrators should immediately update the Photo Gallery by 10Web plugin to the latest available release via the WordPress dashboard and confirm the installed version exceeds 1.8.40. As a compensating control during the patching window, restrict contributor-role access to only fully trusted individuals, since contributor-level is the minimum privilege required for exploitation. If the plugin is not essential to site operations, temporarily deactivating it is a viable zero-risk mitigation, with the trade-off that all rendered photo galleries will be removed from the frontend until the plugin is updated and re-enabled. Do not rely on WAF rules alone as the primary control for blind SQLi without testing for bypass.
The isMail transport in PHPMailer before 5.2.20 might allow remote attackers to pass extra parameters to the mail comman
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
The Hash Form - Drag & Drop Form Builder plugin for WordPress is vulnerable to arbitrary file uploads due to missing fil
The GiveWP - Donation Plugin and Fundraising Platform plugin for WordPress is vulnerable to PHP Object Injection in all
The Simple File List plugin for WordPress through version 4.2.2 contains an unauthenticated remote code execution vulner
The AI Engine WordPress plugin through version 3.1.3 exposes Bearer Token values through the /mcp/v1/ REST API endpoint
The Ninja Forms plugin before 2.9.42.1 for WordPress allows remote attackers to conduct PHP object injection attacks via
The Business Directory Plugin - Easy Listing Directories for WordPress plugin for WordPress is vulnerable to time-based
SQL injection in the NotificationX WordPress plugin (versions up to and including 2.8.2) allows unauthenticated remote a
The POST SMTP Mailer - Email log, Delivery Failure Notifications and Best Mail SMTP for WordPress plugin for WordPress i
The MasterStudy LMS WordPress Plugin - for Online Courses and Education plugin for WordPress is vulnerable to union base
The Country State City Dropdown CF7 plugin for WordPress is vulnerable to SQL Injection via the ‘cnt’ and 'sid' paramete
Same weakness CWE-89 – SQL Injection
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-32744
GHSA-5v9v-f8v4-w6g4