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 -yDefensia 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
- Check the installed CiyaShop theme version by running: grep -r 'Version:' /var/www/html/wp-content/themes/ciyashop/style.css | head -1
- 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
- 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
- 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
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