# CVE-2024-8275: The Events Calendar <= 6.6.4 - Unauthenticated SQL Injection

- Severity: Critical 9.8 (CVSS:3.1, scored by Wordfence) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 70.0%, higher than 99% of CVEs (2026-12-01)
- Published: 2024-09-25T04:30:28.690Z
- Modified: 2026-06-17T08:22:14.700Z
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: Wordfence

## 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.

(As written by CVE List.)

## Affected

- stellarwp The Events Calendar: up to 6.6.4
- theeventscalendar the_events_calendar: up to 6.6.4
- stellarwp the_events_calendar: before 6.6.4.1

## References

- <https://www.wordfence.com/threat-intel/vulnerabilities/id/f59891c7-db1a-4688-8616-8877d7d7960d?source=cve> (third-party-advisory)
- <https://theeventscalendar.com/knowledgebase/customizing-template-files-2-legacy/> (product)
- <https://docs.theeventscalendar.com/reference/functions/tribe_has_next_event/> (product)
- <https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&old=3152853%40the-events-calendar&new=3152853%40the-events-calendar&sfp_email=&sfph_mail=#file18> (patch)

## Sources

- CVE List: [CVE-2024-8275](https://www.cve.org/CVERecord?id=CVE-2024-8275), CVE Terms of Use, modified 2026-04-08
- NVD: [CVE-2024-8275](https://nvd.nist.gov/vuln/detail/CVE-2024-8275), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-8275 · Whole record: https://cve.day/CVE-2024-8275.json · Rebuilt by cve.day 2026-11-25T22:58:45.723Z
