CVE-2024-13906 Deserialization in Gallery by BestWebSoft – Customizable Image and Photo Galleries for WordPress

High 7.2 Published Updated

Authenticated administrators can exploit PHP object injection in the Gallery by BestWebSoft plugin to potentially execute code or access data if a POP chain exists.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2024-13906?

CVE-2024-13906 is a high-severity unsafe deserialization vulnerability in Gallery by BestWebSoft – Customizable Image and Photo Galleries for WordPress, published on 7 Mar 2025. An attacker needs administrator access to exploit it, with no action from the victim.

Official 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.

Weakness: CWE-502

Which versions are affected by CVE-2024-13906?

How do I fix CVE-2024-13906?

No fix has been published for CVE-2024-13906 yet. Limit exposure of the affected software until one is available.

Upgrade, and only deserialise data from trusted sources or with an allow-list of types. More about Unsafe deserialization.

Is CVE-2024-13906 being exploited?

There is no known exploitation of CVE-2024-13906 in the wild and no public exploit code.

Sources

Also known as GHSA-x8qg-rm2q-wp88.

Is CVE-2024-13906 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free