Video Gallery <= 4.0.3 - Authenticated (Subscriber+) Arbitrary Function Call via 'path' Parameter
Strategic Overview
- Status
- Patched in 4.0.4
- Affected Plugin
- Video Gallery – YouTube Gallery, Playlist & Video Grid
- Affected Version
<= 4.0.3- CVSS
- 7.5High
- Weakness type
- CWE-98 · Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion')
- CVE
CVE-2026-12923
At a glance
CVE-2026-12923 is a high-severity Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in the Video Gallery WordPress plugin, affecting versions <= 4.0.3. It carries a CVSS score of 7.5 (reachable over the network; high confidentiality, integrity, availability impact). Exploitation requires an authenticated account at Subscriber level or above. The issue is fixed in version 4.0.4; sites on affected versions should update now. Disclosed June 2026, reported by Wordfence PRISM.
Vulnerability Overview
The Youtube Showcase plugin for WordPress is vulnerable to Arbitrary Function Call in versions up to and including 4.0.3. This is due to insufficient validation of the 'path' parameter in the emd_delete_file() AJAX handler in includes/common-functions.php. The user-supplied value is passed through sanitize_text_field(), has its trailing '_PLUGIN_DIR' substring stripped, and is then invoked as a PHP function name with no arguments via `$sess_name()`. The handler is gated only by a nonce — no current_user_can() check is present — and the nonce is emitted on any front-end page that renders a form shortcode containing file fields. This makes it possible for authenticated attackers, with Subscriber-level access and above, to invoke arbitrary zero-argument PHP functions (such as phpinfo, phpversion, get_defined_vars, error_get_last), resulting in sensitive information disclosure and potential further compromise depending on the functions available in the environment.
Technical Analysis
The vector marks this flaw as remotely reachable over the network, and no interaction from a victim user. A successful exploit has high impact on confidentiality, integrity, availability — full site compromise territory.
CWE-98: Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion')
Video Gallery <= 4.0.3 carries this weakness at path, and reaching it takes an account at Subscriber level or above. PHP file inclusion means a path used by include or require is built from request data, so the file that gets executed is under the caller's influence.
Including an attacker-influenced file executes its contents, which is why this class is routinely chained with an upload or log-poisoning step to reach code execution. For Video Gallery the fix is 4.0.4: builds <= 4.0.3 are affected, anything from 4.0.4 onward is not.
Remediation
Update to version 4.0.4, or a newer patched version
How does WordSec protect against this?
An attacker needs Subscriber access first, so the firewall sees the attempt as traffic from a logged-in account: WordSec's web application firewall inspects request payloads before WordPress loads them. Classes like this one can leave something behind, so the staged malware scanner is the second half: it looks for dropped files and modified code rather than for the request that created them. None of that substitutes for the fix: Video Gallery 4.0.4 closes this, and updating the plugin is the step that ends it.
- Firewall
- Scanner
- Alerts
External References
Related records
Other vulnerabilities in Video Gallery – YouTube Gallery, Playlist & Video Grid
- 8.1CVE-2025-54731: YouTube Showcase <= 3.5.1 PHP Object Injection
CVE-2025-54731 - 8.1CVE-2025-8420: Multiple Plugins by emarket-design <=… Limited RCE
CVE-2025-8420 - 6.4CVE-2025-15636: Video Gallery Stored XSS
CVE-2025-15636 - 6.4CVE-2025-58915: Multiple Plugins by eMarket Design <=… Stored XSS
CVE-2025-58915 - 5.3CVE-2024-3268: YouTube Video Gallery… Arbitrary Post/Page Creation
CVE-2024-3268 - 4.3CVE-2023-40558: Video Gallery & Management <= 3.3.5 CSRF
CVE-2023-40558
Vulnerability data © Defiant, Inc., provided under the Wordfence Intelligence T&C