high CVSS 7.5

CVE-2024-13409·PHP vulnerability

The Post Grid, Slider & Carousel Ultimate – with Shortcode, Gutenberg Block & Elementor Widget plugin for WordPress is vulnerable to Local File Inclusion in all versions up to, and including, 1.6.10 via the 'theme' parameter of the post_type_ajax_handler() function. This makes it possible for authenticated attackers, with Contributor-level access and above, 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
high
Software
PHP
Fixed in
1.7
Published
2025-01-24

Affected versions

Until: 1.7

Fixed in: 1.7

How to fix this CVE

Update the Post Grid, Slider & Carousel Ultimate WordPress plugin to version 1.7 or later to patch the Local File Inclusion vulnerability in the theme parameter handler. If you cannot immediately update, restrict Contributor-level and above user access until the patch is applied. Verify that no unauthorized file uploads occurred during the vulnerability window, as attackers could have leveraged this to execute malicious PHP code through included files.

sudo dnf update php php-common php-cli

Defensia detects this vulnerability

What an exploitation attempt looks like

Sample log line indicative of exploitation attempts:

POST /wp-admin/admin-ajax.php?action=post_type_ajax_handler&theme=../../../../../../../etc/passwd%00 OR POST requests to admin-ajax.php containing 'post_type_ajax_handler' action with 'theme' parameter containing path traversal sequences (../, ..\\ , %2e%2e%2f, or null bytes %00)

WAF mitigation (if patching is not yet possible)

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

Implement a ModSecurity or WAF rule to block POST requests to wp-admin/admin-ajax.php with action=post_type_ajax_handler when the theme parameter contains path traversal patterns (../), encoded variants (%2e%2e%2f, %252e), or null bytes (%00). Example: SecRule ARGS:theme "@rx (?:\.\.|%2e%2e|%252e|%00)" "id:1000,deny,status:403"

How to check if you are affected

  1. Check the Post Grid, Slider & Carousel Ultimate plugin version by running: grep -r 'Version:' /path/to/wordpress/wp-content/plugins/post-grid-carousel-ultimate/post-grid-carousel-ultimate.php | head -1
  2. Verify if the plugin is active by checking wp_options table: mysql -u wordpress_user -p wordpress_db -e "SELECT option_value FROM wp_options WHERE option_name='active_plugins';"
  3. Search web server logs for requests containing 'theme=' parameter in post_type_ajax_handler calls: grep -i 'post_type_ajax_handler.*theme=' /var/log/apache2/access.log /var/log/nginx/access.log
  4. Confirm the patch is applied by verifying plugin version is 1.7 or later and checking the AJAX handler code contains proper file inclusion validation in /includes/classes/ajax.php

FAQ

What is CVE-2024-13409?

CVE-2024-13409 is a Local File Inclusion vulnerability in the Post Grid, Slider & Carousel Ultimate WordPress plugin that allows authenticated users with Contributor access or higher to include and execute arbitrary PHP files from the server through the theme parameter, potentially leading to unauthorized code execution.

Is CVE-2024-13409 being actively exploited?

No, CVE-2024-13409 is not currently listed in CISA's Known Exploited Vulnerabilities catalog, and no public exploits are widely available, though the vulnerability is exploitable by any authenticated contributor-level user.

What versions of the Post Grid plugin are affected by CVE-2024-13409?

All versions up to and including 1.6.10 are vulnerable; version 1.7 and later contain the fix.

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

Log into your WordPress admin panel, navigate to Plugins, and check the Post Grid, Slider & Carousel Ultimate plugin version number; if it is 1.6.10 or earlier, your site is vulnerable.

Does Defensia detect CVE-2024-13409?

Yes — Defensia's CVE advisory scanner compares installed plugin versions against the NVD database. If the Post Grid, Slider & Carousel Ultimate plugin is installed on a monitored WordPress site, CVE-2024-13409 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-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-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.
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.

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

Get started free