CVE-2026-57642: BestWebSoft Gallery SQL injection in WordPress plugin

CVE-2026-57642 · Severity: high · CVSS 8.5 · Published 2026-06-26

The Gallery plugin for WordPress, which is used to manage and display image galleries on websites, contains a security vulnerability. An attacker with basic contributor-level access to the site could manipulate database queries to steal sensitive information or disrupt site operations. This could lead to unauthorized data access or a partial loss of service.

Vendors: BestWebSoft.

Quick answers

Is CVE-2026-57642 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-57642 being exploited in the wild.
How severe is CVE-2026-57642?
High severity, with a CVSS score of 8.5, published 26 June 2026.
Which products and versions are affected?
BestWebSoft Gallery <= 4.7.8.
Is there a fix for CVE-2026-57642?
A patch was published on 2026-06-26: Version 4.7.9 released to address the issue Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-57642 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2026-57642?
Check whether you run BestWebSoft Gallery at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Technical details

A SQL injection vulnerability exists in the BestWebSoft Gallery plugin for WordPress (versions <= 4.7.8) due to improper neutralization of special elements used in SQL commands (CWE-89). The vulnerability requires 'Contributor' level authentication (PR:L) and can be exploited over the network without user interaction. An attacker can leverage this flaw to execute arbitrary SQL queries against the underlying database, potentially leading to sensitive data exfiltration or unauthorized modifications. The issue is addressed in version 4.7.9.

Affected products

  • BestWebSoft Gallery <= 4.7.8

Timeline

  • 2026-05-13: disclosed: Reported by dodoh4t
  • 2026-06-26: advisory: Published by Patchstack and NVD
  • 2026-06-26: patched: Version 4.7.9 released to address the issue

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.