CVE-2025-9321: CWE-94 Improper Control of Generation of Code ('Code Injection') in wpsight WPCasa
The WPCasa plugin for WordPress is vulnerable to Code Injection in all versions up to, and including, 1.4.1. This is due to insufficient input validation and restriction on the 'api_requests' function. This makes it possible for unauthenticated attackers to call arbitrary functions and execute code.
AI Analysis
Technical Summary
CVE-2025-9321 is a critical security vulnerability classified under CWE-94 (Improper Control of Generation of Code), affecting the WPCasa plugin for WordPress in all versions up to and including 1.4.1. The root cause is insufficient input validation and lack of restrictions in the 'api_requests' function, which processes incoming API calls. This flaw allows unauthenticated attackers to invoke arbitrary functions within the plugin, effectively enabling remote code execution (RCE) on the hosting server. The vulnerability is remotely exploitable over the network without requiring any authentication or user interaction, as indicated by its CVSS vector (AV:N/AC:L/PR:N/UI:N). The impact on confidentiality, integrity, and availability is severe, as attackers can execute arbitrary code, potentially leading to full system compromise, data theft, defacement, or deployment of malware. Although no patches have been released yet and no known exploits have been detected in the wild, the critical CVSS score of 9.8 highlights the urgent need for mitigation. The vulnerability affects all deployments of the WPCasa plugin, which is commonly used for managing real estate listings on WordPress sites. Given WordPress's widespread adoption globally, this vulnerability poses a significant risk to many organizations relying on this plugin for their web presence.
Potential Impact
The impact of CVE-2025-9321 is substantial for organizations using the WPCasa plugin. Successful exploitation enables attackers to execute arbitrary code remotely without authentication, potentially leading to complete server takeover. This can result in unauthorized access to sensitive data, website defacement, insertion of backdoors or malware, and disruption of services. For businesses relying on WPCasa for real estate listings, this could mean loss of customer trust, regulatory penalties due to data breaches, and financial losses. The vulnerability's ease of exploitation and high severity make it attractive for attackers, including cybercriminals and nation-state actors targeting real estate platforms or WordPress infrastructure. The absence of a patch increases the window of exposure, raising the risk of future exploitation. Additionally, compromised sites could be used as launchpads for further attacks within an organization's network or to distribute malware to visitors.
Mitigation Recommendations
1. Immediately disable or uninstall the WPCasa plugin until a security patch is released. 2. If disabling the plugin is not feasible, restrict access to the 'api_requests' endpoint by implementing IP whitelisting or web application firewall (WAF) rules to block unauthorized requests. 3. Monitor web server and application logs for suspicious API calls or unexpected function invocations related to WPCasa. 4. Employ network segmentation to limit the exposure of WordPress servers to the internet. 5. Keep WordPress core and all other plugins updated to reduce the attack surface. 6. Prepare for incident response by backing up website data and configurations regularly. 7. Once a patch is available, apply it immediately and verify the vulnerability is remediated through testing. 8. Consider deploying runtime application self-protection (RASP) or endpoint detection and response (EDR) solutions to detect and block exploitation attempts in real time.
Affected Countries
United States, Germany, United Kingdom, Canada, Australia, France, Netherlands, Spain, Italy, Brazil
CVE-2025-9321: CWE-94 Improper Control of Generation of Code ('Code Injection') in wpsight WPCasa
Description
The WPCasa plugin for WordPress is vulnerable to Code Injection in all versions up to, and including, 1.4.1. This is due to insufficient input validation and restriction on the 'api_requests' function. This makes it possible for unauthenticated attackers to call arbitrary functions and execute code.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2025-9321 is a critical security vulnerability classified under CWE-94 (Improper Control of Generation of Code), affecting the WPCasa plugin for WordPress in all versions up to and including 1.4.1. The root cause is insufficient input validation and lack of restrictions in the 'api_requests' function, which processes incoming API calls. This flaw allows unauthenticated attackers to invoke arbitrary functions within the plugin, effectively enabling remote code execution (RCE) on the hosting server. The vulnerability is remotely exploitable over the network without requiring any authentication or user interaction, as indicated by its CVSS vector (AV:N/AC:L/PR:N/UI:N). The impact on confidentiality, integrity, and availability is severe, as attackers can execute arbitrary code, potentially leading to full system compromise, data theft, defacement, or deployment of malware. Although no patches have been released yet and no known exploits have been detected in the wild, the critical CVSS score of 9.8 highlights the urgent need for mitigation. The vulnerability affects all deployments of the WPCasa plugin, which is commonly used for managing real estate listings on WordPress sites. Given WordPress's widespread adoption globally, this vulnerability poses a significant risk to many organizations relying on this plugin for their web presence.
Potential Impact
The impact of CVE-2025-9321 is substantial for organizations using the WPCasa plugin. Successful exploitation enables attackers to execute arbitrary code remotely without authentication, potentially leading to complete server takeover. This can result in unauthorized access to sensitive data, website defacement, insertion of backdoors or malware, and disruption of services. For businesses relying on WPCasa for real estate listings, this could mean loss of customer trust, regulatory penalties due to data breaches, and financial losses. The vulnerability's ease of exploitation and high severity make it attractive for attackers, including cybercriminals and nation-state actors targeting real estate platforms or WordPress infrastructure. The absence of a patch increases the window of exposure, raising the risk of future exploitation. Additionally, compromised sites could be used as launchpads for further attacks within an organization's network or to distribute malware to visitors.
Mitigation Recommendations
1. Immediately disable or uninstall the WPCasa plugin until a security patch is released. 2. If disabling the plugin is not feasible, restrict access to the 'api_requests' endpoint by implementing IP whitelisting or web application firewall (WAF) rules to block unauthorized requests. 3. Monitor web server and application logs for suspicious API calls or unexpected function invocations related to WPCasa. 4. Employ network segmentation to limit the exposure of WordPress servers to the internet. 5. Keep WordPress core and all other plugins updated to reduce the attack surface. 6. Prepare for incident response by backing up website data and configurations regularly. 7. Once a patch is available, apply it immediately and verify the vulnerability is remediated through testing. 8. Consider deploying runtime application self-protection (RASP) or endpoint detection and response (EDR) solutions to detect and block exploitation attempts in real time.
Technical Details
- Data Version
- 5.1
- Assigner Short Name
- Wordfence
- Date Reserved
- 2025-08-21T18:07:39.969Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 68d223009de83c5ed4d8df56
Added to database: 9/23/2025, 4:33:04 AM
Last enriched: 2/26/2026, 5:50:33 PM
Last updated: 3/24/2026, 11:28:17 PM
Views: 295
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.