Photo Gallery by 10Web <= 1.8.40 - Authenticated (Contributor+) SQL Injection via 'order_by' Shortcode Attribute

6.5
Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
CVE CVE-2026-7048
CVSS 6.5 (Medium)
Publicly Published May 27, 2026
Last Updated May 28, 2026
Researcher Or Benit - MadSec

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.

Learn more about SQL Injection vulnerabilities and how to prevent them.

References

Share

Vulnerability Details for Photo Gallery by 10Web – Mobile-Friendly Image Gallery

Software Type Plugin
Software Slug photo-gallery (view on wordpress.org)
Patched? Yes
Remediation Update to version 1.8.41, or a newer patched version
Affected Version
  • <= 1.8.40
Patched Version
  • 1.8.41

Recent vulnerabilities in Photo Gallery by 10Web – Mobile-Friendly Image Gallery

# Title CVE ID CVSS Researchers Date
1 Photo Gallery by 10Web <= 1.8.41 - Authenticated (Contributor+) SQL Injection via 'compact_album_order_by' Shortcode Parameter CVE-2026-9829 6.5 Jonah Burgess (CryptoCat) June 5, 2026
2 Photo Gallery by 10Web – Mobile-Friendly Image Gallery <= 1.8.41 - Authenticated (Contributor+) SQL Injection CVE-2026-49771 6.5 daroo June 4, 2026
3 Photo Gallery by 10Web <= 1.8.37 - Cross-Site Request Forgery CVE-2026-32330 4.3 Sandeep V February 8, 2026
4 Photo Gallery by 10Web – Mobile-Friendly Image Gallery <= 1.8.36 - Missing Authorization to Unauthenticated Arbitrary Comment Deletion CVE-2026-1036 5.3 Moose Love January 21, 2026
5 Photo Gallery by 10Web – Mobile-Friendly Image Gallery <= 1.8.38 - Authenticated (Editor+) Stored Cross-Site Scripting CVE-2026-27360 4.4 Tabulra December 25, 2025
6 Photo Gallery by 10Web – Mobile-Friendly Image Gallery <= 1.8.34 Reflected Cross-Site Scripting via 'image_id' Parameter CVE-2025-2269 6.1 Ivan Kuzymchak April 11, 2025
7 Photo Gallery by 10Web <= 1.8.33 - Unauthenticated Stored Cross-Site Scripting CVE-2025-0613 6.1 stealthcopter March 10, 2025
8 Photo Gallery by 10Web – Mobile-Friendly Image Gallery <= 1.8.32 - Authenticated (Admin+) Stored Cross-Site Scripting CVE-2024-13124 4.4 Dmitrii Ignatyev March 2, 2025
9 Photo Gallery by 10Web – Mobile-Friendly Image Gallery <= 1.8.30 - Authenticated (Admin+) Stored Cross-Site Scripting CVE-2024-10704 4.4 Dmitrii Ignatyev November 14, 2024
10 Photo Gallery by 10Web <= 1.8.30 - Authenticated (Administrator+) Stored Cross-Site Scripting CVE-2024-9878 4.4 tmrswrr November 4, 2024

Did you know Wordfence Intelligence provides free personal and commercial API access to our comprehensive WordPress vulnerability database, along with a free webhook integration to stay on top of the latest vulnerabilities added and updated in the database? Get started today!

Learn more

Want to get notified of the latest vulnerabilities that may affect your WordPress site?
Install Wordfence on your site today to get notified immediately if your site is affected by a vulnerability that has been added to our database.

Get Wordfence

The Wordfence Intelligence WordPress vulnerability database is completely free to access and query via API. Please review the documentation on how to access and consume the vulnerability data via API.

Documentation