critical CVSS 9.8

CVE-2024-13824·PHP vulnerability

The CiyaShop - Multipurpose WooCommerce Theme theme for WordPress is vulnerable to PHP Object Injection in all versions up to, and including, 4.19.0 via deserialization of untrusted input in the 'add_ciyashop_wishlist' and 'ciyashop_get_compare' functions. This makes it possible for unauthenticated attackers to inject a PHP Object. No known POP chain is present in the vulnerable software, which means this vulnerability has no impact unless another plugin or theme containing a POP chain is installed on the site. If a POP chain is present via an additional plugin or theme installed on the target system, it may allow the attacker to perform actions like delete arbitrary files, retrieve sensitive data, or execute code depending on the POP chain present.

Severity
critical
Software
PHP
Fixed in
4.19.1
Published
2025-03-14

Affected versions

Until: 4.19.1

Fixed in: 4.19.1

How to fix this CVE

Update the CiyaShop WordPress theme to version 4.19.1 or later, which patches unsafe object deserialization in the add_ciyashop_wishlist and ciyashop_get_compare functions. While this vulnerability requires a gadget chain from another plugin or theme to achieve code execution, the risk is eliminated by applying the patch immediately. Verify the update through your WordPress admin dashboard and confirm the theme version in wp-content/themes/ciyashop.

sudo dnf update php php-common php-cli -y

Defensia detects this vulnerability

What an exploitation attempt looks like

Sample log line indicative of exploitation attempts:

POST requests containing serialized PHP objects (strings beginning with 'O:' followed by class name length and object properties) sent to add_ciyashop_wishlist or ciyashop_get_compare endpoints: (?:add_ciyashop_wishlist|ciyashop_get_compare).*O:\d+:"

WAF mitigation (if patching is not yet possible)

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

Block POST requests to WordPress admin-ajax.php containing the action parameters 'add_ciyashop_wishlist' or 'ciyashop_get_compare' if they include URL-encoded serialized object syntax (O:\d+ patterns). Implement input validation to reject requests with PHP serialized data prefixes.

How to check if you are affected

  1. Check the installed CiyaShop theme version by running: grep -r 'Version:' /var/www/html/wp-content/themes/ciyashop/style.css | head -1
  2. Verify if the theme contains the vulnerable functions with: grep -n 'add_ciyashop_wishlist\|ciyashop_get_compare' /var/www/html/wp-content/themes/ciyashop/functions.php
  3. Search access logs for POST requests to endpoints triggering these functions: grep -E 'add_ciyashop_wishlist|ciyashop_get_compare' /var/log/apache2/access.log /var/log/nginx/access.log
  4. Confirm the patch by checking the theme version is 4.19.1 or higher and reviewing the changelog at /var/www/html/wp-content/themes/ciyashop/ for version confirmation

FAQ

What is CVE-2024-13824?

This is a PHP object injection vulnerability in the CiyaShop WordPress theme that allows unauthenticated attackers to deserialize untrusted data through the add_ciyashop_wishlist and ciyashop_get_compare functions. The vulnerability only becomes dangerous when additional plugins or themes with exploitable gadget chains are present on the site.

Is CVE-2024-13824 being actively exploited?

No, this CVE is not listed on the CISA Known Exploited Vulnerabilities (KEV) catalog and no public exploits are currently available. However, the critical CVSS 9.8 score reflects the severity if a suitable gadget chain exists.

What versions of the CiyaShop theme are affected by CVE-2024-13824?

All versions of CiyaShop up to and including version 4.19.0 are vulnerable. The vulnerability was patched in version 4.19.1.

How do I check if my server is vulnerable to CVE-2024-13824?

Check your CiyaShop theme version with: wp theme get ciyashop --field=version. If the version is 4.19.0 or earlier, you are vulnerable and must update immediately.

Does Defensia detect CVE-2024-13824?

Yes — Defensia's CVE advisory scanner compares installed WordPress theme versions against the NVD database. If CiyaShop theme is detected on a monitored server, CVE-2024-13824 will appear in your dashboard with remediation steps when the theme version is 4.19.0 or lower.

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

Get started free