Gallery by BestWebSoft – Customizable Image and Photo Galleries for WordPress <= 4.7.3 - Authenticated (Administrator+) PHP Object Injection

7.2
Deserialization of Untrusted Data
CVE CVE-2024-13906
CVSS 7.2 (High)
Publicly Published March 6, 2025
Last Updated March 7, 2025
Researcher Hoang Phuc Vo (HrxKnight)

Description

The Gallery by BestWebSoft – Customizable Image and Photo Galleries for WordPress plugin for WordPress is vulnerable to PHP Object Injection in all versions up to, and including, 4.7.3 via deserialization of untrusted input in the 'import_gallery_from_csv' function. This makes it possible for authenticated attackers, with Administrator-level access and above, to inject a PHP Object. No known POP chain is present in the vulnerable software, which means this vulnerability has no impact unless another plugin or theme containing a POP chain is installed on the site. If a POP chain is present via an additional plugin or theme installed on the target system, it may allow the attacker to perform actions like delete arbitrary files, retrieve sensitive data, or execute code depending on the POP chain present.

References

Share

Vulnerability Details for Gallery by BestWebSoft – Customizable Image and Photo Galleries for WordPress

Software Type Plugin
Software Slug gallery-plugin (view on wordpress.org)
Patched? Yes
Remediation Update to version 4.7.4, or a newer patched version
Affected Version
  • <= 4.7.3
Patched Version
  • 4.7.4

Recent vulnerabilities in Gallery by BestWebSoft – Customizable Image and Photo Galleries for WordPress

# Title CVE ID CVSS Researchers Date
1 Gallery by BestWebSoft <= 4.7.9 - Authenticated (Editor+) SQL Injection via Gallery Image Order Array Keys CVE-2026-2497 7.2 Farrukh Ziyaev August 15, 2026
2 Gallery by BestWebSoft – Customizable Image and Photo Galleries for WordPress <= 4.7.8 - Authenticated (Contributor+) SQL Injection CVE-2026-57642 6.5 dodoh4t June 26, 2026
3 Gallery by BestWebSoft <= 4.6.9 - Authenticated (Author+) Stored Cross-Site Scripting CVE-2023-0764 6.4 dc11 March 27, 2023
4 Gallery by BestWebSoft <= 4.6.9 - Authenticated (Author+) SQL Injection CVE-2023-0765 8.8 dc11 March 27, 2023
5 Gallery by BestWebSoft – Customizable Image and Photo Galleries for WordPress <= 4.6.9 - Authenticated (Administrator+) Stored Cross-Site Scripting 4.4 March 23, 2023
6 Gallery by BestWebSoft – Customizable Image and Photo Galleries for WordPress < 4.5.0 - Reflected Cross-Site Scripting 6.1 Neven Birusk April 12, 2017

Did you know Wordfence Intelligence provides free personal and commercial API access to our comprehensive WordPress vulnerability database, along with a free webhook integration to stay on top of the latest vulnerabilities added and updated in the database? Get started today!

Learn more

Want to get notified of the latest vulnerabilities that may affect your WordPress site?
Install Wordfence on your site today to get notified immediately if your site is affected by a vulnerability that has been added to our database.

Get Wordfence

The Wordfence Intelligence WordPress vulnerability database is completely free to access and query via API. Please review the documentation on how to access and consume the vulnerability data via API.

Documentation