critical CVSS 9.8

CVE-2024-10571·PHP vulnerability

The Chartify – WordPress Chart Plugin plugin for WordPress is vulnerable to Local File Inclusion in all versions up to, and including, 2.9.5 via the 'source' 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
2.9.6
Published
2024-11-14

Affected versions

Until: 2.9.6

Fixed in: 2.9.6

How to fix this CVE

Update the Chartify – WordPress Chart Plugin to version 2.9.6 or later immediately to patch the Local File Inclusion vulnerability in the 'source' parameter. This vulnerability allows unauthenticated attackers to read and execute arbitrary files on your server without authentication. If you cannot update immediately, disable the plugin and remove it from your WordPress installation until patching is complete.

sudo dnf update php

Defensia detects this vulnerability

What an exploitation attempt looks like

Sample log line indicative of exploitation attempts:

GET|POST.*source=\.\..*\.(php|phtml|php3|php4|php5|phar)|GET.*source=/etc/(passwd|shadow|hosts)|GET.*source=.*wp-config\.php

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 requests containing the 'source' parameter followed by path traversal sequences (../, ..\ ) or references to sensitive file paths (/etc/, /var/www/, wp-config.php). Additionally, whitelist only expected file sources and block any requests attempting to include files outside the intended directory.

How to check if you are affected

  1. Check WordPress plugin version: Connect to your WordPress admin panel, navigate to Plugins, and verify the Chartify – Chart Builder plugin version is 2.9.6 or later
  2. Verify PHP version: Run `php --version` on the server hosting WordPress to confirm PHP is up-to-date
  3. Search web server logs for exploitation patterns: grep -r 'source=' /var/log/apache2/ or /var/log/nginx/ to identify attempts to exploit the 'source' parameter
  4. Confirm remediation: After updating to version 2.9.6, re-check the plugin version in WordPress admin and scan logs for any suspicious activity from the past 30 days

Indicators of compromise

  • HTTP requests with source parameter containing ../ or ..
  • Requests targeting source=/etc/passwd, source=/etc/shadow, or source=wp-config.php
  • POST requests to chart-builder endpoints with unexpected file paths in source parameter
  • Unusual PHP execution or file access patterns in web server logs following exploitation attempts

FAQ

What is CVE-2024-10571?

CVE-2024-10571 is a critical Local File Inclusion (LFI) vulnerability in the Chartify WordPress plugin that allows attackers to access and execute arbitrary files on a server through an unsanitized 'source' parameter, enabling unauthorized code execution without requiring authentication.

Is CVE-2024-10571 being actively exploited?

No, CVE-2024-10571 is not listed on the CISA Known Exploited Vulnerabilities (KEV) catalog and there are no publicly available exploits reported at this time. However, the critical CVSS score of 9.8 means it should be patched urgently.

What versions of the Chartify plugin are affected by CVE-2024-10571?

All versions of the Chartify – Chart Builder plugin up to and including version 2.9.5 are vulnerable. Version 2.9.6 and later contain the fix.

How do I check if my WordPress installation is vulnerable to CVE-2024-10571?

Log into your WordPress admin dashboard, go to Plugins, and check if Chartify – Chart Builder is installed with a version number below 2.9.6. If it is, your site is vulnerable.

Does Defensia detect CVE-2024-10571?

Yes — Defensia's CVE advisory scanner compares installed WordPress plugin versions against the NVD database. If the Chartify plugin is installed on a monitored WordPress site, CVE-2024-10571 will appear in your dashboard with remediation steps.

Related PHP CVEs

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-2025-46348CVSS 10YesWiki is a wiki system written in PHP. Prior to version 4.5.4, the request to commence a site backup can be performed and downloaded without authentication. The archives are created with a predictable filename, so a malicious user could create and download an archive without being authenticated. This could result in a malicious attacker making numerous requests to create archives and fill up the file system, or by downloading the archive which contains sensitive site information. This issue has been patched in version 4.5.4.
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-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-10571. Free for 1 server.

Get started free