Cloudflare Workerd FormData API Integer Overflow Vulnerability Allowing Buffer Under-Read

Vulnerability

A buffer under-read vulnerability has been identified in the FormData API of Cloudflare Workerd, prior to version v1.20230419.0. This vulnerability arises from an integer overflow issue that occurs when a FormData instance contains more than 2^31 elements. In such cases, the forEach() method may read from incorrect memory locations during iteration, potentially leading to a segmentation fault or arbitrary undefined behavior. Although this vulnerability was not exploitable on the Cloudflare Workers platform, it could theoretically be exploited on workerd deployments on machines with substantial memory. To exploit this vulnerability remotely, an attacker would need to upload a form-encoded HTTP request of several gigabytes, which would then be parsed and iterated over using request.formData() and formData.forEach().

Impact

Exploitation of this vulnerability could cause a buffer under-read, allowing for incorrect memory access. This could most likely result in a segmentation fault, but could also lead to arbitrary undefined behavior.

Remediation

Users are advised to update to Cloudflare Workerd version v1.20230419.0 or later.

Added: Mar 11, 2026, 6:49 PM
Updated: Mar 11, 2026, 6:49 PM

Vulnerability Rating

Custom Algorithm
spread
2.2
impact
3.8
exploitability
6.4
remediation
7.7
relevance
0.0
threat
0.0
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.