high CVSS 7.5

CVE-2024-50435·PHP vulnerability

Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in themehorse Meta News meta-news.This issue affects Meta News: from n/a through <= 1.1.7.

Severity
high
Software
PHP
Fixed in
1.1.8
Published
2024-10-28

Affected versions

Until: 1.1.8

Fixed in: 1.1.8

How to fix this CVE

Update the Meta News WordPress theme to version 1.1.8 or later to eliminate the local file inclusion vulnerability that allows attackers to include arbitrary files through improper filename validation. Ensure your PHP installation is current and all WordPress themes are kept up-to-date through your site's admin dashboard or package manager. If you are unable to update immediately, restrict access to theme directories and monitor for suspicious file inclusion attempts in your web server logs.

sudo dnf check-update php && sudo dnf upgrade php

Defensia detects this vulnerability

What an exploitation attempt looks like

Sample log line indicative of exploitation attempts:

GET request containing query parameters that reference file path traversal sequences (e.g., /../, ..\, %2e%2e%2f) combined with include/require function names in theme template files; regex: (?:include|require)\s*\(\s*\$_(GET|POST|REQUEST).*\.\/

WAF mitigation (if patching is not yet possible)

Add this rule to your WAF to block exploitation attempts while you schedule the patch.

Implement WAF rules to block HTTP requests containing path traversal sequences (../, ..\ , %2e%2e%2f, %252e) in URI parameters and POST bodies targeting WordPress theme directories, and deny requests to theme files that accept dynamic file inclusion parameters.

How to check if you are affected

  1. Check installed PHP version: php -v
  2. Verify Meta News theme version in WordPress by navigating to Appearance > Themes and inspecting the active theme's version number, or use: grep -r 'Version:' /path/to/wp-content/themes/meta-news/style.css
  3. Search web server logs for suspicious include/require patterns: grep -iE '\$_(GET|POST|REQUEST).*include|require' /var/log/apache2/access.log or /var/log/nginx/access.log
  4. Confirm the patch by verifying theme version is >= 1.1.8: curl -s https://api.wordpress.org/themes/info/1.0/meta-news.json | grep version

FAQ

What is CVE-2024-50435?

CVE-2024-50435 is a local file inclusion (LFI) vulnerability in the Meta News WordPress theme that allows attackers to bypass filename validation and include arbitrary local files through improper control of include/require statements in PHP, potentially leading to information disclosure or remote code execution.

Is CVE-2024-50435 being actively exploited?

No, CVE-2024-50435 is not currently listed on CISA's Known Exploited Vulnerabilities (KEV) catalog and no public exploits have been published, though organizations should still prioritize patching as the attack surface remains available.

What versions of Meta News theme are affected by CVE-2024-50435?

All versions of the Meta News theme from the initial release through version 1.1.7 are vulnerable; version 1.1.8 and later contain the security fix.

How do I check if my WordPress site is vulnerable to CVE-2024-50435?

Log into your WordPress admin dashboard, go to Appearance > Themes, and verify the Meta News theme version. If it shows 1.1.7 or earlier, your site is vulnerable and requires an immediate update.

Does Defensia detect CVE-2024-50435?

Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If PHP and WordPress themes are installed on a monitored server, CVE-2024-50435 will appear in your dashboard with remediation steps.

Related PHP CVEs

CVE-2026-28289CVSS 10FreeScout is a free help desk and shared inbox built with PHP's Laravel framework. A patch bypass vulnerability for CVE-2026-27636 in FreeScout 1.8.206 and earlier allows any authenticated user with file upload permissions to achieve Remote Code Execution (RCE) on the server by uploading a malicious .htaccess file using a zero-width space character prefix to bypass the security check. The vulnerability exists in the sanitizeUploadedFileName() function in app/Http/Helper.php. The function contains a Time-of-Check to Time-of-Use (TOCTOU) flaw where the dot-prefix check occurs before sanitization removes invisible characters. This vulnerability is fixed in 1.8.207.
CVE-2026-39337CVSS 10ChurchCRM is an open-source church management system. Prior to 7.1.0, critical pre-authentication remote code execution vulnerability in ChurchCRM's setup wizard allows unauthenticated attackers to inject arbitrary PHP code during the initial installation process, leading to complete server compromise. The "$dbPassword" variable is not sanitized. This vulnerability exists due to an incomplete fix for CVE-2025-62521. This vulnerability is fixed in 7.1.0.
CVE-2025-62521CVSS 10ChurchCRM is an open-source church management system. Prior to version 5.21.0, a pre-authentication remote code execution vulnerability in ChurchCRM's setup wizard allows unauthenticated attackers to inject arbitrary PHP code during the initial installation process, leading to complete server compromise. The vulnerability exists in `setup/routes/setup.php` where user input from the setup form is directly concatenated into a PHP configuration template without any validation or sanitization. Any parameter in the setup form can be used to inject PHP code that gets written to `Include/Config.php`, which is then executed on every page load. This is more severe than typical authenticated RCE vulnerabilities because it requires no credentials and affects the installation process that administrators must complete. Version 5.21.0 patches the issue.
CVE-2025-25174CVSS 10Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in beeteam368 BeeTeam368 Extensions beeteam368-extensions allows PHP Local File Inclusion.This issue affects BeeTeam368 Extensions: from n/a through <= 1.9.4.
CVE-2024-5932CVSS 10The GiveWP – Donation Plugin and Fundraising Platform plugin for WordPress is vulnerable to PHP Object Injection in all versions up to, and including, 3.14.1 via deserialization of untrusted input from the 'give_title' parameter. This makes it possible for unauthenticated attackers to inject a PHP Object. The additional presence of a POP chain allows attackers to execute code remotely, and to delete arbitrary files.

References

Track CVEs across your fleet automatically

Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-50435. Free for 1 server.

Get started free