Intel

AIKIDO-2025-10614

workerd is vulnerable to Use After Free

Use After Free Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Sep 9, 2025

45

Medium Risk

This Affects:

JSworkerd
1.20250204.0 - 1.20250904.0
Fixed in 1.20250905.0
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to a Use-After-Free (UaF) via a Dangling Reference to a Temporary. The vulnerability arises because a constant kj::HashSet<kj::String> object EMPTY_HANDLERS is not defined as a static within a function scope, causing its destructor to run when the function exits and leaving a global reference pointing to freed memory. An attacker can exploit this by manipulating the program's flow to trigger the use of this dangling reference, potentially leading to information disclosure, a crash, or arbitrary code execution depending on how the corrupted memory is accessed.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

workerd is vulnerable to Use After Free in versions 1.20250204.0 - 1.20250904.0.

How to fix this

Upgrade the workerd library to the patch version.