Intel

AIKIDO-2026-970031

The Events Calendar is vulnerable to PHP Object Injection

PHP Object InjectionCVE-2026-78006 Published Yesterday

98

Critical Risk

This Affects:

PHPThe Events Calendar
0.0.1 - 6.17.4
Fixed in 6.17.4.1
Are you affected? Scan for Free

TL;DR

is_safe_widget_instance() does not stop PHP from firing magic methods during unserialize pre-parse, and enable_rendering_widget_copied() forges a valid wp_hash integrity attribute before unserialize() runs. An unauthenticated commenter can submit a crafted wp:legacy-widget block; the V2 single-event template runs do_blocks() over buffered comment HTML, and the moderation-hash URL lets the commenter view the pending comment immediately, so the payload reaches the sink before moderation. Successful exploitation leads to remote code execution. The fix hardens the widget-instance safety check so forged hashes and magic-method gadgets cannot reach unserialize().

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and comments are enabled and visible on events.

Background info

The Events Calendar is vulnerable to PHP Object Injection in versions 0.0.1 - 6.17.4.

How to fix this

Upgrade the The Events Calendar or the-events-calendar library to the patch version.

Links

wordfence.com/threat-intel/vulnerabilities/id/a0c67346-534a-4b67-a904-fa148703707a?source=cve
https://www.wordfence.com/threat-intel/vulnerabilities/id/a0c67346-534a-4b67-a904-fa148703707a?source=cve
plugins.trac.wordpress.org/browser/the-events-calendar/tags/6.17.3/common/src/Tribe/Utils/Collection_Trait.php#L247
https://plugins.trac.wordpress.org/browser/the-events-calendar/tags/6.17.3/common/src/Tribe/Utils/Collection_Trait.php#L247
plugins.trac.wordpress.org/browser/the-events-calendar/tags/6.17.3/src/Tribe/Collections/Lazy_Post_Collection.php#L82
https://plugins.trac.wordpress.org/browser/the-events-calendar/tags/6.17.3/src/Tribe/Collections/Lazy_Post_Collection.php#L82
plugins.trac.wordpress.org/browser/the-events-calendar/tags/6.17.3/src/Tribe/Views/V2/Template_Bootstrap.php#L213
https://plugins.trac.wordpress.org/browser/the-events-calendar/tags/6.17.3/src/Tribe/Views/V2/Template_Bootstrap.php#L213
plugins.trac.wordpress.org/browser/the-events-calendar/tags/6.17.3/src/Tribe/Views/V2/Widgets/Service_Provider.php#L255
https://plugins.trac.wordpress.org/browser/the-events-calendar/tags/6.17.3/src/Tribe/Views/V2/Widgets/Service_Provider.php#L255
plugins.trac.wordpress.org/browser/the-events-calendar/tags/6.17.3/src/Tribe/Views/V2/Widgets/Service_Provider.php#L295
https://plugins.trac.wordpress.org/browser/the-events-calendar/tags/6.17.3/src/Tribe/Views/V2/Widgets/Service_Provider.php#L295
plugins.trac.wordpress.org/changeset?reponame=&old=3690576%40the-events-calendar&new=3690576%40the-events-calendar
https://plugins.trac.wordpress.org/changeset?reponame=&old=3690576%40the-events-calendar&new=3690576%40the-events-calendar

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform