
PEACH
Un cadre d’isolation des locataires
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 resides in the gllr_save_postdata() function, which stores unsanitized array keys from $_POST (specifically the _gallery_order_{post_id} parameter) directly into post meta, which are later used in SQL queries without prepared statements. 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 gllr_save_postdata() function in gallery-plugin.php accepts array keys from the _gallery_order_{post_id} POST parameter without sanitization or escaping, stores them in post meta, and subsequently incorporates them into SQL queries without using WordPress prepared statements. This allows an attacker to inject arbitrary SQL by crafting malicious array keys in the POST request. The vulnerable code paths are visible in the plugin's source at gallery-plugin.php#L1052 and includes/class-gllr-media-table.php#L58 (GitHub Advisory, Wordfence).
Successful exploitation allows an authenticated attacker with Editor-level access or above to append arbitrary SQL queries to existing database queries, enabling extraction of sensitive information from the WordPress database — including user credentials, private content, and configuration data. Depending on database server permissions, the attacker may also be able to modify or delete database contents, potentially leading to site defacement or further compromise. The integrity and availability of the WordPress installation are also at risk (GitHub Advisory, Wordfence).
As of the disclosure date (August 16, 2026), there is no public proof-of-concept exploit and no evidence of active in-the-wild exploitation. The EPSS score is 0.0, indicating a currently low probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires authenticated access at the Editor level or above, which limits the attack surface compared to unauthenticated vulnerabilities (GitHub Advisory, Wordfence).
/wp-content/plugins/gallery-plugin/readme.txt) or using tools like WPScan._gallery_order_{post_id} POST parameter to include SQL injection payloads (e.g., 1 UNION SELECT user_login,user_pass,3 FROM wp_users-- -).gllr_save_postdata() function, which stores the unsanitized array keys into post meta.wp-admin/post.php) containing array keys in _gallery_order_{post_id} parameters with SQL syntax such as UNION, SELECT, --, or encoded equivalents.wp_postmeta table with injected SQL fragments.Update the Gallery by BestWebSoft plugin to a version newer than 4.7.9 as soon as a patched release becomes available; the plugin changeset referenced in the advisory (changeset 3609291) indicates a fix has been committed to the plugin repository (GitHub Advisory). As an interim measure, restrict Editor-level and above WordPress roles to only fully trusted users, and consider temporarily deactivating the plugin if the risk is unacceptable. Implement a Web Application Firewall (WAF) rule to detect and block SQL injection patterns in POST parameters targeting WordPress admin endpoints (Wordfence).
Source: Ce rapport a été généré à l’aide de l’IA
Évaluation gratuite des vulnérabilités
Évaluez vos pratiques de sécurité cloud dans 9 domaines de sécurité pour évaluer votre niveau de risque et identifier les failles dans vos défenses.
Obtenez une démo personnalisée
"La meilleure expérience utilisateur que j’ai jamais vue, offre une visibilité totale sur les workloads cloud."
"Wiz fournit une interface unique pour voir ce qui se passe dans nos environnements cloud."
"Nous savons que si Wiz identifie quelque chose comme critique, c’est qu’il l’est réellement."