CVE-2024-4258·PHP vulnerability
The Video Gallery – YouTube Playlist, Channel Gallery by YotuWP plugin for WordPress is vulnerable to Local File Inclusion in all versions up to, and including, 1.3.13 via the settings parameter. This makes it possible for unauthenticated attackers to include and execute arbitrary files on the server, allowing the execution of any PHP code in those files. This can be used to bypass access controls, obtain sensitive data, or achieve code execution in cases where images and other “safe” file types can be uploaded and included.
- Severity
- critical
- Software
- PHP
- Fixed in
- 1.3.14
- Published
- 2024-06-15
Affected versions
Until: 1.3.14
Fixed in: 1.3.14
How to fix this CVE
The YotuWP Easy YouTube Embed WordPress plugin contains a local file inclusion vulnerability that allows unauthenticated attackers to execute arbitrary PHP code. Immediately update the plugin to version 1.3.14 or later, which patches the insecure settings parameter handling. If you cannot update immediately, disable the plugin until the patch is applied.
sudo dnf upgrade phpDefensia detects this vulnerability
What an exploitation attempt looks like
Sample log line indicative of exploitation attempts:
POST|GET requests to wp-admin or plugin configuration endpoints containing 'yotuwp.*settings' parameters with file path traversal sequences (../, ..\, or encoded variants); PHP error logs showing 'include' or 'require' statements with user-controlled paths; requests containing patterns like 'settings=../../../../etc/passwd' or similar LFI payloadsWAF mitigation (if patching is not yet possible)
Add this rule to your WAF to block exploitation attempts while you schedule the patch.
Block or rate-limit requests to the YotuWP plugin settings endpoint that contain path traversal characters (../, ..\ , %2e%2e%2f) in the 'settings' parameter; implement input validation rules that restrict settings parameter to whitelisted alphanumeric values onlyHow to check if you are affected
- Check installed PHP version: php -v
- List installed WordPress plugins: wp plugin list --allow-root (if wp-cli is available) or check /wp-content/plugins/ directory for 'yotuwp-easy-youtube-embed' folder
- Verify plugin version: grep -r 'Version:' /wp-content/plugins/yotuwp-easy-youtube-embed/ | head -1
- Confirm patch applied: Verify plugin version is 1.3.14 or higher and check file modification times of yotuwp.php around line 731 match recent updates
FAQ
What is CVE-2024-4258?
CVE-2024-4258 is a critical local file inclusion vulnerability in the YotuWP Easy YouTube Embed WordPress plugin that permits unauthenticated attackers to include and execute arbitrary PHP files from the server through an improperly validated settings parameter.
Is CVE-2024-4258 being actively exploited?
According to CISA's Known Exploited Vulnerabilities catalog, this CVE is not currently listed as actively exploited in the wild, and no public exploits have been released, though the critical severity warrants immediate patching.
What versions of the YotuWP plugin are affected by CVE-2024-4258?
All versions up to and including 1.3.13 are vulnerable; version 1.3.14 and later contain the fix.
How do I check if my WordPress site is vulnerable to CVE-2024-4258?
Run: wp plugin list --allow-root | grep yotuwp to verify if the plugin is installed, then check its version number is below 1.3.14.
Does Defensia detect CVE-2024-4258?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the YotuWP Easy YouTube Embed plugin is installed on a monitored WordPress site, CVE-2024-4258 will appear in your dashboard with remediation steps.
Related PHP CVEs
References
- https://plugins.trac.wordpress.org/browser/yotuwp-easy-youtube-embed/trunk/yotuwp.php#L731
- https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&old=3106918%40yotuwp-easy-youtube-embed&new=3106918%40yotuwp-easy-youtube-embed&sfp_email=&sfph_mail=
- https://www.wordfence.com/threat-intel/vulnerabilities/id/6feae1c4-3735-4a33-85a5-867d458d2e8a?source=cve
- https://plugins.trac.wordpress.org/browser/yotuwp-easy-youtube-embed/trunk/yotuwp.php#L731
- https://www.wordfence.com/threat-intel/vulnerabilities/id/6feae1c4-3735-4a33-85a5-867d458d2e8a?source=cve
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-4258. Free for 1 server.
Get started free