ZeroHour

CVE-2024-8275

large

Unauthenticated SQL Injection in The Events Calendar WordPress Plugin

CVSS 3.1
9.8 critical
EPSS
50%p99
Published
()
Modified
AI analysis

CVE-2024-8275 is a critical SQL injection (CWE-89) in The Events Calendar WordPress plugin from StellarWP, caused by insufficient escaping of the user-supplied 'order' parameter in the tribe_has_next_event() function and inadequate preparation of the underlying SQL query. An unauthenticated attacker can append additional SQL queries to existing ones over the network without any privileges or user interaction, allowing extraction of sensitive information from the site's database. Only WordPress sites running The Events Calendar version 6.6.4 or earlier where the site owner has manually added calls to tribe_has_next_event() (for example in custom templates) are vulnerable. There are no known public proof-of-concept exploits, it is not yet in CISA's KEV catalog, and no confirmed in-the-wild exploitation is known, but EPSS assigns a high ~49.9% probability of exploitation within 30 days.

What to do: Update The Events Calendar to a version later than 6.6.4 (the first release after 6.6.4). Site owners should search their themes, custom templates, and snippet plugins for calls to tribe_has_next_event(); if the function is not used, the site is not exploitable. As an interim mitigation, apply a WAF rule blocking SQL injection patterns in the 'order' parameter.

Affected
StellarWP The Events CalendarAll versions up to and including 6.6.4 (only sites that have manually added tribe_has_next_event() are vulnerable)
Estimated exposure
largelikely low tens of thousands of sites out of roughly 200,000+ active installs of the plugin, since only sites with custom code calling tribe_has_next_event()… — The Events Calendar is one of the most widely installed WordPress event plugins (~200,000 active installs per WordPress.org), but the flaw is only reachable on the subset of those sites that manually integrated the tribe_has_next_event()…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

The The Events Calendar plugin for WordPress is vulnerable to SQL Injection via the 'order' parameter of the 'tribe_has_next_event' function in all versions up to, and including, 6.6.4 due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for unauthenticated attackers to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database. Only sites that have manually added tribe_has_next_event() will be vulnerable to this SQL injection.

Vendors
stellarwp
Products
the events calendar
Ecosystems
WordPress
Weakness
CWE-89
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

In the news

No ingested article mentions this CVE yet.