CVE-2026-12923: CWE-98 Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') in emarket-design Video Gallery – YouTube Gallery, Playlist & Video Grid
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.
AI Analysis
Technical Summary
CVE-2026-12923 is a high-severity vulnerability in the emarket-design Video Gallery – YouTube Gallery, Playlist & Video Grid WordPress plugin. The issue arises from improper control of the filename for an include/require statement, specifically an arbitrary function call via the 'path' parameter in the emd_delete_file() AJAX handler. The parameter is sanitized with sanitize_text_field() and partially stripped, but then used as a PHP function name without arguments. The handler is only protected by a nonce and lacks a current_user_can() capability check, allowing authenticated users with low privileges (Subscriber and above) to execute arbitrary zero-argument PHP functions such as phpinfo(), leading to information disclosure and potential further impact.
Potential Impact
An attacker with Subscriber-level access or higher can invoke arbitrary zero-argument PHP functions on the server, which may disclose sensitive information such as PHP configuration, environment variables, or error details. This can facilitate further attacks or compromise of the affected system. The vulnerability affects confidentiality, integrity, and availability as indicated by the CVSS vector.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, restrict user roles that can access forms rendering the vulnerable shortcode, and monitor for suspicious AJAX requests involving the 'path' parameter. Implement additional access control checks (e.g., current_user_can()) in the AJAX handler to limit function invocation to trusted users.
CVE-2026-12923: CWE-98 Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') in emarket-design Video Gallery – YouTube Gallery, Playlist & Video Grid
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.
CVSS v3.1
Score 7.5high
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-12923 is a high-severity vulnerability in the emarket-design Video Gallery – YouTube Gallery, Playlist & Video Grid WordPress plugin. The issue arises from improper control of the filename for an include/require statement, specifically an arbitrary function call via the 'path' parameter in the emd_delete_file() AJAX handler. The parameter is sanitized with sanitize_text_field() and partially stripped, but then used as a PHP function name without arguments. The handler is only protected by a nonce and lacks a current_user_can() capability check, allowing authenticated users with low privileges (Subscriber and above) to execute arbitrary zero-argument PHP functions such as phpinfo(), leading to information disclosure and potential further impact.
Potential Impact
An attacker with Subscriber-level access or higher can invoke arbitrary zero-argument PHP functions on the server, which may disclose sensitive information such as PHP configuration, environment variables, or error details. This can facilitate further attacks or compromise of the affected system. The vulnerability affects confidentiality, integrity, and availability as indicated by the CVSS vector.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, restrict user roles that can access forms rendering the vulnerable shortcode, and monitor for suspicious AJAX requests involving the 'path' parameter. Implement additional access control checks (e.g., current_user_can()) in the AJAX handler to limit function invocation to trusted users.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Wordfence
- Date Reserved
- 2026-06-22T16:48:46.550Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a44a07827e9c79719fbd57b
Added to database: 07/01/2026, 05:07:04 UTC
Last enriched: 07/01/2026, 05:23:45 UTC
Last updated: 07/02/2026, 00:07:59 UTC
Views: 7
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.