Read the docs
TI-2026-02124 Aliases CVE-2026-2497GHSA-p9qr-8pg6-7hvc

Gallery by BestWebSoft <= 4.7.9 - Authenticated (Editor+) SQL Injection via Gallery Image Order Array Keys

Priority LOW 34CWE-89Published · Updated

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

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00562 46th percentileScored 2026-11-07
Fix No fix listed No fixed version in the sources yet

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

VendorProductAffected versionsFixed inStatusSource
BestWebSoftGallery by BestWebSoft – Customizable Image and Photo Galleries for WordPressup to 4.7.9—No fix listedCNA
  • 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

  1. 2026-10-02 Threatist record created from CVE-2026-2497
  2. 2026-10-03 Alias added: GHSA-p9qr-8pg6-7hvc

References

  • 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
See all 86 →

Sources