CVE-2026-7048
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected products
2- Range: <=1.8.40
- Range: <=1.8.40
Patches
Vulnerability mechanics
References
10- plugins.trac.wordpress.org/browser/photo-gallery/tags/1.8.39/framework/WDWLibrary.phpnvd
- plugins.trac.wordpress.org/browser/photo-gallery/tags/1.8.39/framework/WDWLibrary.phpnvd
- plugins.trac.wordpress.org/browser/photo-gallery/tags/1.8.39/frontend/controllers/controller.phpnvd
- plugins.trac.wordpress.org/browser/photo-gallery/tags/1.8.39/photo-gallery.phpnvd
- plugins.trac.wordpress.org/browser/photo-gallery/trunk/framework/WDWLibrary.phpnvd
- plugins.trac.wordpress.org/browser/photo-gallery/trunk/framework/WDWLibrary.phpnvd
- plugins.trac.wordpress.org/browser/photo-gallery/trunk/frontend/controllers/controller.phpnvd
- plugins.trac.wordpress.org/browser/photo-gallery/trunk/photo-gallery.phpnvd
- plugins.trac.wordpress.org/changesetnvd
- www.wordfence.com/threat-intel/vulnerabilities/id/27394b03-3604-4fb0-950f-e1f838cabb05nvd
News mentions
1- Wordfence Intelligence Weekly WordPress Vulnerability Report (May 25, 2026 to May 31, 2026)Wordfence Blog · Jun 4, 2026