CVE-2026-2497
Last modified
CVE-2026-2497 is a high-severity vulnerability rated 7.2/10 on the CVSS scale. 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. EPSS estimates a 0.32% chance of exploitation in the next 30 days.
Description
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.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| bestwebsoft | Gallery by BestWebSoft – Customizable Image and Photo Galleries for WordPress | <= 4.7.9 |
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2026-2497?
How severe is CVE-2026-2497?
How do I fix CVE-2026-2497?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-24964Server-Side Request Forgery (SSRF) vulnerability in Wasiliy …6.4
- CVE-2026-24965Missing Authorization vulnerability in Wasiliy Strecker / Co…4.3
- CVE-2026-24966Cross-Site Request Forgery (CSRF) vulnerability in Copyscape…4.3
- CVE-2026-24967Missing Authorization vulnerability in ameliabooking Amelia …5.3
- CVE-2026-24968Incorrect Privilege Assignment vulnerability in Xagio SEO Xa…9.8
- CVE-2026-24969Improper Limitation of a Pathname to a Restricted Directory …7.7
- CVE-2026-24970Improper Limitation of a Pathname to a Restricted Directory …7.7
- CVE-2026-24971Incorrect Privilege Assignment vulnerability in Elated-Theme…9.8
- CVE-2026-24972Missing Authorization vulnerability in Elated-Themes Elated …6.5
- CVE-2026-24973Improper Neutralization of Input During Web Page Generation …7.1
- CVE-2026-24974Deserialization of Untrusted Data vulnerability in NooTheme …8.8
- CVE-2026-24975Improper Neutralization of Input During Web Page Generation …7.1
Are you affected by CVE-2026-2497?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
