The Gallery by BestWebSoft plugin for WordPress is vulnerable to SQL Injection via the '_gallery_order_{post_id}' parameter array keys in all versions up to, and including, 4.7.9. This is due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. The `gllr_save_postdata()` function stores unsanitized array keys from `$_POST` directly into post meta, which are later used in SQL queries without prepared statements. This makes it possible for authenticated attackers, with Editor-level access and above, to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database.
We have discovered 2,041 live websites that are affected by CVE-2026-2497.
| Product | |
| Category | Wordpress Plugins |
| Vulnerable Domains | 2,041 live websites (99% of Gallery for WordPress install base) |
| Vulnerable Versions |
|
| Vulnerable Versions Count | 21 versions ( 91% of all versions) |
| 448 websites | |
| 265 websites | |
| 133 websites | |
| 115 websites | |
| 105 websites | |
| 76 websites | |
| 70 websites | |
| 62 websites | |
| 53 websites | |
| 51 websites |
| .com | 621 websites |
| .de | 181 websites |
| .org | 119 websites |
| .ru | 117 websites |
| .nl | 108 websites |
| .co.uk | 75 websites |
| .net | 54 websites |
| .pl | 49 websites |
| .cz | 47 websites |
| .ch | 45 websites |
| Domain | Country | Rank | Contacts |
|---|---|---|---|
| *********.org | ***,*** | ||
| ****************.org | ***,*** | ||
| *************.com | ***,*** | ||
| **********************.com | ***,*** | ||
| *************.com | ***,*** | ||
| ***********.org | ***,*** | ||
| *****.***.br | *,***,*** | ||
| *************.com | *,***,*** | ||
| ***************.de | *,***,*** | ||
| *******************.org | *,***,*** |
FAQ