Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.3%top 77%

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

0
High
Published: 08/16/2026 (08/16/2026, 06:38:08 UTC)
Source: CVE Database V5
Vendor/Project: bestwebsoft
Product: 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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
High
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

Affected software

Affected versions
<=4.7.9

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/23/2026, 13:23:10 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses