CVE-2026-7048 Photo Gallery by 10Web <= 1.8.40 - Authenticated (Contributor+) SQL Injection via 'order_by' Shortcode Attribute
Authenticated contributors can exploit SQL injection in the Photo Gallery plugin to extract sensitive database information via malicious shortcodes.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-7048?
CVE-2026-7048 is a medium-severity SQL injection vulnerability in Photo Gallery by 10Web – Mobile-Friendly Image Gallery, published on 28 May 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Official 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.
Weakness: CWE-89
Which versions are affected by CVE-2026-7048?
How do I fix CVE-2026-7048?
No fix has been published for CVE-2026-7048 yet. Limit exposure of the affected software until one is available.
Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.
Is CVE-2026-7048 being exploited?
There is no known exploitation of CVE-2026-7048 in the wild and no public exploit code.
Sources
Also known as GHSA-5v9v-f8v4-w6g4.