Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

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

Quick assessment

Affected
bestwebsoft Gallery by BestWebSoft – Customizable Image and Photo Galleries for WordPress
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

BestWebSoft Gallery by BestWebSoft – Customizable Image and Photo Galleries for WordPress是乌克兰BestWebSoft公司的一款信息化产品。 WordPress Gallery by BestWebSoft – Customizable Image and Photo Galleries for WordPress 4.7.9及之前版本存在SQL注入漏洞,该漏洞源于对“_gallery_order_{post_id}

CVSS 7.2 · High EPSS 0.56% · P45

Affected Version Matrix 1

Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-2497

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Gallery by BestWebSoft <= 4.7.9 - Authenticated (Editor+) SQL Injection via Gallery Image Order Array Keys
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
SQL命令中使用的特殊元素转义处理不恰当(SQL注入)
Source: CVE Program / CVE List V5
Vulnerability Title
WordPress Gallery by BestWebSoft – Customizable Image and Photo Galleries for WordPress SQL注入漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
BestWebSoft Gallery by BestWebSoft – Customizable Image and Photo Galleries for WordPress是乌克兰BestWebSoft公司的一款信息化产品。 WordPress Gallery by BestWebSoft – Customizable Image and Photo Galleries for WordPress 4.7.9及之前版本存在SQL注入漏洞,该漏洞源于对“_gallery_order_{post_id}
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
bestwebsoft Gallery by BestWebSoft – Customizable Image and Photo Galleries for WordPress 0 ~ 4.7.9 -

II. Public POCs for CVE-2026-2497

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-2497

请登录查看更多情报信息。

Patches & Fixes for CVE-2026-2497 (3)

Vendor Advisories for CVE-2026-2497 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-2497

No comments yet


Leave a comment