Video Gallery <= 4.0.3 - Authenticated (Subscriber+) Arbitrary Function Call via 'path' Parameter

7.5
Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion')
CVE CVE-2026-12923
CVSS 7.5 (High)
Publicly Published June 30, 2026
Last Updated July 1, 2026
Researcher Wordfence PRISM - Wordfence

Description

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.

References

Share

Vulnerability Details for Video Gallery – YouTube Gallery, Playlist & Video Grid

Software Type Plugin
Software Slug youtube-showcase (view on wordpress.org)
Patched? Yes
Remediation Update to version 4.0.4, or a newer patched version
Affected Version
  • <= 4.0.3
Patched Version
  • 4.0.4

Recent vulnerabilities in Video Gallery – YouTube Gallery, Playlist & Video Grid

# Title CVE ID CVSS Researchers Date
1 Video Gallery – YouTube Gallery & Responsive Video Playlist <= 3.5.1 - Authenticated (Contributor+) Stored Cross-Site Scripting CVE-2025-15636 6.4 Muhammad Yudha - DJ April 15, 2026
2 Multiple Plugins by eMarket Design <= Various Versions - Authenticated (Contributor+) Stored Cross-Site Scripting CVE-2025-58915 6.4 Muhammad Yudha - DJ September 23, 2025
3 YouTube Showcase <= 3.5.1 - Unauthenticated PHP Object Injection CVE-2025-54731 8.1 Martino Spagnuolo August 25, 2025
4 Multiple Plugins by emarket-design <= Multiple Versions - Unauthenticated Limited Remote Code Execution CVE-2025-8420 8.1 mikemyers, theviper17y August 5, 2025
5 YouTube Video Gallery by YouTube Showcase – Video Gallery Plugin for WordPress <= 3.3.6 - Missing Authorization to Arbitrary Post/Page Creation CVE-2024-3268 5.3 Lucio Sá May 20, 2024
6 Video Gallery & Management <= 3.3.5 - Cross-Site Request Forgery CVE-2023-40558 4.3 thiennv August 16, 2023

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