CVE-2026-2497: CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') in bestwebsoft Gallery by BestWebSoft – Customizable Image and Photo Galleries for WordPress
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.
AI Analysis
Technical Summary
CVE-2026-2497 describes an SQL Injection vulnerability in the Gallery by BestWebSoft WordPress plugin (<=4.7.9). The vulnerability is due to the gllr_save_postdata() function storing unsanitized array keys from the $_POST superglobal directly into post meta, which are later used in SQL queries without prepared statements or proper escaping. Authenticated attackers with Editor-level privileges can exploit this to append arbitrary SQL commands to existing queries, potentially exposing sensitive data. The CVSS 3.1 base score is 7.2, indicating a high severity with network attack vector, low attack complexity, high privileges required, no user interaction, and impacts on confidentiality, integrity, and availability.
Potential Impact
An attacker with Editor-level or higher privileges can exploit this vulnerability to perform SQL Injection attacks, allowing unauthorized reading and manipulation of the database. This can lead to disclosure of sensitive information, data corruption, or denial of service conditions affecting the WordPress site using the vulnerable plugin.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, restrict Editor-level access to trusted users only and consider disabling or replacing the plugin to mitigate risk. Monitor for vendor updates regarding patches or official fixes.
CVE-2026-2497: CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') in bestwebsoft Gallery by BestWebSoft – Customizable Image and Photo Galleries for WordPress
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.
CVSS v3.1
Score 7.2high
Affected software
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-2497 describes an SQL Injection vulnerability in the Gallery by BestWebSoft WordPress plugin (<=4.7.9). The vulnerability is due to the gllr_save_postdata() function storing unsanitized array keys from the $_POST superglobal directly into post meta, which are later used in SQL queries without prepared statements or proper escaping. Authenticated attackers with Editor-level privileges can exploit this to append arbitrary SQL commands to existing queries, potentially exposing sensitive data. The CVSS 3.1 base score is 7.2, indicating a high severity with network attack vector, low attack complexity, high privileges required, no user interaction, and impacts on confidentiality, integrity, and availability.
Potential Impact
An attacker with Editor-level or higher privileges can exploit this vulnerability to perform SQL Injection attacks, allowing unauthorized reading and manipulation of the database. This can lead to disclosure of sensitive information, data corruption, or denial of service conditions affecting the WordPress site using the vulnerable plugin.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, restrict Editor-level access to trusted users only and consider disabling or replacing the plugin to mitigate risk. Monitor for vendor updates regarding patches or official fixes.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Wordfence
- Date Reserved
- 2026-02-13T21:36:59.704Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a815f2fbf8831d539a5f185
Added to database: 08/16/2026, 06:56:47 UTC
Last enriched: 08/23/2026, 13:23:10 UTC
Last updated: 09/06/2026, 10:52:08 UTC
Views: 69
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.