CVE-2026-2497: Gallery by BestWebSoft <= 4.7.9 - Authenticated (Editor+) SQL Injection via Gallery Image Order Array Keys
The Gallery by BestWebSoft plugin for WordPress is vulnerable to SQL Injection via the 'galleryorder{postid}' 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 gllrsavepostdata() 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.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2026-2497?
The severity of CVE-2026-2497 is rated as high with a score of 7.2.
What type of vulnerability is CVE-2026-2497?
CVE-2026-2497 is an SQL Injection vulnerability affecting the Gallery by BestWebSoft plugin.
How do I fix CVE-2026-2497?
To fix CVE-2026-2497, update the Gallery by BestWebSoft plugin to a version beyond 4.7.9.
Who is affected by CVE-2026-2497?
CVE-2026-2497 affects users of the Gallery by BestWebSoft plugin for WordPress up to version 4.7.9.
What is the impact of CVE-2026-2497?
The impact of CVE-2026-2497 includes potential unauthorized access to the database due to SQL Injection.