Runtime crash via FormData element-count overflow
Published May 12, 2023 · Updated Jan 24, 2025
Buffer under-read in Cloudflare workerd before 1.20230419.0 allows remote attackers to crash the runtime via a huge form request. The FormData forEach() element counter overflows above 2^31 entries, causing iteration to read from the wrong memory location. Reachability requires about 160 GB of allocatable memory, a form-encoded request at least tens of gigabytes long, and application code that invokes request.formData() followed by formData.forEach(); other undefined behavior remains theoretical.
Summary
What happened
Buffer under-read in Cloudflare workerd before 1.20230419.0 allows remote attackers to crash the runtime via a huge form request. The FormData forEach() element counter overflows above 2^31 entries, causing iteration to read from the wrong memory location. Reachability requires about 160 GB of allocatable memory, a form-encoded request at least tens of gigabytes long, and application code that invokes request.formData() followed by formData.forEach(); other undefined behavior remains theoretical.
The record
- CVE
- CVE-2023-2512
- Published
- May 12, 2023
- Updated
- Jan 24, 2025
- Vendor
- Cloudflare
- Product
- workerd
- Classifications
- CWE-127, T1499.004
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- May 12, 2023CVE publishedPublication date reported by the CVE source.
- Jan 24, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=v1.20221108.0 <=v1.20230404.0 changes=[{"at":"v1.20230419.0","status":"unaffected"}]
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo