
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-2497 is a SQL Injection vulnerability in the Gallery by BestWebSoft plugin for WordPress, affecting all versions up to and including 4.7.9. The flaw allows authenticated attackers with Editor-level access or above to append arbitrary SQL queries to existing database queries, enabling extraction of sensitive information. It was published on August 16, 2026, and carries a CVSS v3.1 base score of 7.2 (High) (GitHub Advisory, Wordfence).
The root cause is classified as CWE-89 (Improper Neutralization of Special Elements used in an SQL Command). The vulnerable gllr_save_postdata() function stores unsanitized array keys from $_POST — specifically the _gallery_order_{post_id} parameter — directly into WordPress post meta without proper escaping or sanitization. These stored values are later incorporated into SQL queries without the use of prepared statements, allowing an attacker to inject arbitrary SQL. Exploitation requires network access and authenticated Editor-level (or higher) WordPress credentials (GitHub Advisory, Wordfence).
Successful exploitation allows an authenticated attacker to extract sensitive information from the WordPress database, including user credentials, personal data, and site configuration. Depending on database permissions, attackers may also be able to modify or delete database contents, potentially compromising site integrity and availability. The technical impact is rated as total by NVD SSVC analysis, covering confidentiality, integrity, and availability (GitHub Advisory, Wordfence).
There is no known public proof-of-concept exploit and no evidence of active in-the-wild exploitation as of the time of disclosure. The NVD SSVC assessment classifies exploitation as "none" and the attack as non-automatable, given the requirement for high-privilege (Editor-level) authenticated access. The EPSS score is approximately 0.315%, placing it in the 23rd percentile for exploitation likelihood. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog (GitHub Advisory, Wordfence).
/wp-content/plugins/gallery-plugin/readme.txt.gllr_save_postdata() function on save._gallery_order_{post_id} parameter to include SQL injection payloads (e.g., _gallery_order_1[1 UNION SELECT user_login,user_pass,3 FROM wp_users-- -])./wp-admin/post.php) from authenticated Editor-level accounts, particularly with abnormally long or structured parameter names in the _gallery_order_{post_id} field.UNION, SELECT, FROM, --) encoded within _gallery_order_ parameter array keys; database error logs indicating malformed SQL queries originating from the gallery plugin.wp_postmeta table reads followed by anomalous UNION SELECT or subquery patterns; unauthorized reads of wp_users or other sensitive tables./wp-content/plugins/gallery-plugin/ that may indicate plugin tampering post-exploitation.Users should update the Gallery by BestWebSoft plugin to a version newer than 4.7.9, which addresses the SQL injection by implementing proper input sanitization and prepared statements. The patch changeset is available in the WordPress plugin repository (WordPress Changeset). As interim mitigations, restrict Editor-level and above WordPress access to trusted users only, and consider disabling the plugin if an update cannot be applied immediately. Implementing a Web Application Firewall (WAF) with SQL injection rules can provide additional defense-in-depth (Wordfence).
Wordfence, which discovered and reported the vulnerability, included it in their weekly WordPress vulnerability report for August 10–16, 2026 (Wordfence Blog). RedPacketSecurity noted the vulnerability on Mastodon shortly after disclosure. Overall community reaction has been limited, consistent with the relatively constrained exploitability (requiring Editor-level authentication) and absence of public exploit code.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."