Gallery by BestWebSoft <= 4.7.9 - Authenticated (Editor+) SQL Injection via Gallery Image Order Array Keys
Key facts
- Attack vector
- Network
- Privileges required
- High
- User interaction
- None
- Attack complexity
- Low
- Impact type
- SQL injection
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- No fix listed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-89.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| BestWebSoft | Gallery by BestWebSoft – Customizable Image and Photo Galleries for WordPress | up to 4.7.9 | — | No fix listed | CNA |
- Gallery by BestWebSoft – Customizable Image and Photo Galleries for WordPress VendorBestWebSoft Affected up to 4.7.9 Fixed in — No fix listed CNA
Remediation
No fixed version listed by the sources yet.
Timeline
- 2026-10-02 Threatist record created from CVE-2026-2497
- 2026-10-03 Alias added: GHSA-p9qr-8pg6-7hvc
References
Other 6
- https://www.wordfence.com/threat-intel/vulnerabilities/id/884b97b7-d023-4752-81b1-086ab022f85e?source=cve
- https://plugins.trac.wordpress.org/browser/gallery-plugin/trunk/gallery-plugin.php#L1052
- https://plugins.trac.wordpress.org/browser/gallery-plugin/tags/4.7.6/gallery-plugin.php#L1052
- https://plugins.trac.wordpress.org/browser/gallery-plugin/trunk/includes/class-gllr-media-table.php#L58
- https://plugins.trac.wordpress.org/browser/gallery-plugin/tags/4.7.6/includes/class-gllr-media-table.php#L58
- https://plugins.trac.wordpress.org/changeset?reponame=&old=3609291%40gallery-plugin&new=3609291%40gallery-plugin
More BestWebSoft vulnerabilities
- TI-2022-03136 Post to CSV by BestWebSoft <= 1.4.0 - Author+ CSV Injection CVSS 3.1CRITICAL 9.8
- TI-2023-00778 User Role by BestWebSoft < 1.6.7 - Privilege Escalation via CSRF CVSS 3.1HIGH 8.8
- TI-2023-00725 Gallery by BestWebSoft < 4.7.0 - Author+ SQL Injection CVSS 3.1HIGH 8.8
- TI-2023-00724 Gallery by BestWebSoft < 4.7.0 - Author+ Stored Cross-Site Scripting CVSS 3.1MEDIUM 5.4
- TI-2017-14121 BestWebSoft Contact Form Plugin Stored cross site scriting CVSS 3.1MEDIUM 5.4
- TI-2024-02914 Quotes and Tips < 1.45 - Admin+ Arbitrary File Upload CVSS 3.1MEDIUM 4.9
Sources
- CVE-2026-2497 · CVE Program
- CVE-2026-2497 · NVD
- FIRST EPSS
- GHSA-p9qr-8pg6-7hvc · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences