high CVSS 7.5

CVE-2024-4887·PHP vulnerability

The Qi Addons For Elementor plugin for WordPress is vulnerable to Local File Inclusion in all versions up to, and including, 1.7.2 via the 'behavior' attributes found in the qi_addons_for_elementor_blog_list shortcode. This makes it possible for authenticated attackers, with Contributor-level access and above, to include and execute arbitrary .php 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 .php file types can be uploaded and included. Please note that this requires an attacker to create a non-existent directory or target an instance where file_exists won't return false with a non-existent directory in the path, in order to successfully exploit.

Severity
high
Software
PHP
Fixed in
1.7.3
Published
2024-06-07

Affected versions

Until: 1.7.3

Fixed in: 1.7.3

How to fix this CVE

Update the Qi Addons For Elementor WordPress plugin to version 1.7.3 or later to patch the Local File Inclusion vulnerability in the qi_addons_for_elementor_blog_list shortcode. This vulnerability allows authenticated contributors and above to include and execute arbitrary PHP files, potentially leading to unauthorized code execution. Immediately audit your WordPress installation for any suspicious file uploads or plugin activity prior to patching.

sudo dnf update php

Defensia detects this vulnerability

What an exploitation attempt looks like

Sample log line indicative of exploitation attempts:

POST|GET requests containing qi_addons_for_elementor_blog_list shortcode with 'behavior' parameter followed by path traversal sequences (../, ..\, or absolute paths to .php files); example pattern: (?i)qi_addons_for_elementor_blog_list.*behavior['"]?\s*(?:=>|=)\s*['"]?(?:\.\./|\.\.\\|/[a-z0-9_/-]+\.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 qi_addons_for_elementor_blog_list shortcode paired with 'behavior' parameters that include path traversal sequences or absolute file paths. Additionally, restrict POST requests to wp-admin with Contributor-level privileges attempting to render shortcodes with file inclusion patterns.

How to check if you are affected

  1. Step 1: Check the Qi Addons For Elementor plugin version by running: wp plugin list --search=qi-addons-for-elementor in your WordPress root directory
  2. Step 2: Verify if the vulnerable shortcode is actively used by searching your WordPress database: mysql -u {user} -p {db_name} -e "SELECT * FROM wp_posts WHERE post_content LIKE '%qi_addons_for_elementor_blog_list%'"
  3. Step 3: Review web server logs for suspicious requests targeting the blog_list shortcode with unusual 'behavior' parameters: grep -i 'qi_addons_for_elementor_blog_list.*behavior' /var/log/apache2/access.log
  4. Step 4: Confirm the patch by running: wp plugin list --search=qi-addons-for-elementor and verify the version is 1.7.3 or higher

FAQ

What is CVE-2024-4887?

CVE-2024-4887 is a Local File Inclusion (LFI) vulnerability in the Qi Addons For Elementor WordPress plugin that allows authenticated users with Contributor-level permissions to include and execute arbitrary PHP files on the server through the 'behavior' parameter of the qi_addons_for_elementor_blog_list shortcode.

Is CVE-2024-4887 being actively exploited?

No, CVE-2024-4887 is not currently listed on the CISA Known Exploited Vulnerabilities (KEV) catalog and no public exploits are available, though the vulnerability should still be treated as high priority given its CVSS 7.5 severity score and ease of exploitation for authenticated attackers.

What versions of the Qi Addons For Elementor plugin are affected by CVE-2024-4887?

All versions up to and including 1.7.2 are vulnerable. Version 1.7.3 and later contain the security fix.

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

Run the command: wp plugin list --search=qi-addons-for-elementor in your WordPress directory and check the version number. If it shows 1.7.2 or lower, your site is vulnerable.

Does Defensia detect CVE-2024-4887?

Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Qi Addons For Elementor plugin is active on a monitored WordPress installation, CVE-2024-4887 will appear in your dashboard with remediation steps.

Related PHP CVEs

CVE-2025-47916CVSS 10Invision Community 5.0.0 before 5.0.7 allows remote code execution via crafted template strings to themeeditor.php. The issue lies within the themeeditor controller (file: /applications/core/modules/front/system/themeeditor.php), where a protected method named customCss can be invoked by unauthenticated users. This method passes the value of the content parameter to the Theme::makeProcessFunction() method; hence it is evaluated by the template engine. Accordingly, this can be exploited by unauthenticated attackers to inject and execute arbitrary PHP code by providing crafted template strings.
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-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-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.

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-4887. Free for 1 server.

Get started free