Horizon Alert
Summary of the vulnerability and why it matters
This advisory details a critical vulnerability in The Events Calendar plugin for WordPress, affecting all versions up to 6.17.4. The flaw allows unauthenticated attackers to execute arbitrary code on the server, posing a significant risk to any WordPress site using this popular plugin for event management, especially if comments are enabled on event pages.
- Unauthenticated attackers can run code on your server.
- Affects a widely used WordPress event plugin.
- Confirm relevance and assess exposure to this threat.
Attack Path
How an attacker could exploit the issue
An unauthenticated attacker can exploit this vulnerability by submitting a specially crafted comment on a WordPress event page. This comment, when processed by the plugin's V2 template, can bypass security checks within the `is_safe_widget_instance` function. The plugin then deserializes malicious data, leading to the execution of arbitrary code on the server. This attack requires comments to be enabled and visible on event pages.
- No authentication needed to access.
- Triggered via comment on event page.
- Results in unauthenticated code execution.
Live Threat
Current exploitation, exposure, and threat context
This vulnerability could allow unauthenticated attackers to execute arbitrary code on the server when comments are enabled and visible on event pages. The plugin's handling of widget rendering and unserialization, combined with WordPress's comment moderation process, creates a pathway for injecting malicious markup that triggers the vulnerable code path.
- Server-side code execution.
- Bypasses authentication via comment moderation.
- Compromise of the WordPress site.
Operational Fix
Recommended remediation, mitigation, and detection steps
The WordPress Events Calendar plugin, particularly when comments are enabled on event pages, presents a clear ownership challenge that likely spans application, infrastructure, and security teams. The first practical move is to identify all WordPress instances using this plugin, confirm which are externally accessible and host business-critical content, and then assign ownership to the relevant team for risk-based remediation planning.
- WordPress application owners should lead remediation.
- Verify public-facing event pages with comments enabled.
- Plan for plugin updates or vendor coordination.