{"id":"CVE-2023-2512","published":"2023-05-12T10:09:06Z","modified":"2025-01-24T15:18:13Z","title":"Buffer under-read in workerd","vendor":"Cloudflare","product":"workerd","tier":"tail","description":{"text":"Prior to version v1.20230419.0, the FormData API implementation was subject to an integer overflow. If a FormData instance contained more than 2^31 elements, the forEach() method could end up reading from the wrong location in memory while iterating over elements. This would most likely lead to a segmentation fault, but could theoretically allow arbitrary undefined behavior.\n\n\nIn order for the bug to be exploitable, the process would need to be able to allocate 160GB of RAM. Due to this, the bug was never exploitable on the Cloudflare Workers platform, but could theoretically be exploitable on deployments of workerd running on machines with a huge amount of memory. Moreover, in order to be remotely exploited, an attacker would have to upload a single form-encoded HTTP request of at least tens of gigabytes in size. The application code would then have to use request.formData() to parse the request and formData.forEach() to iterate over this data. Due to these limitations, the exploitation likelihood was considered Low.\n\nA fix that addresses this vulnerability has been released in version v1.20230419.0 and users are encouraged to update to the latest version available.\n\n\n","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00617,"percentile":0.50485,"provenance":"source"},"cwes":[{"id":"CWE-125","name":"Out-of-bounds Read"}],"references":[{"url":"https://github.com/cloudflare/workerd/releases/tag/v1.20230419.0","tags":[]},{"url":"https://github.com/cloudflare/workerd/security/advisories/GHSA-8vx6-69vg-c46f","tags":[]}],"priority":{"score":14.6,"factors":[{"name":"EPSS percentile","points":10.1},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"cloudflare","affectedVersions":[{"vendor":"Cloudflare","product":"workerd","versions":[">= v1.20221108.0, <= v1.20230404.0"]}],"fixedVersions":[{"vendor":"Cloudflare","product":"workerd","versions":["v1.20230419.0"]}],"capec":[{"id":"CAPEC-123","name":"Buffer Manipulation"}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-01-24T15:15:31.454914Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"workerd","vulnerableRanges":["<1.20230419.0"],"patched":["1.20230419.0"],"from":["GHSA-8vx6-69vg-c46f"],"provenance":"source"}],"summary":{"text":"A buffer under-read in the FormData API implementation of Cloudflare's workerd product allows iteration via forEach() to read from the wrong memory location once a FormData instance holds more than 2^31 elements. An unauthenticated remote attacker who can send a single form-encoded HTTP request of tens of gigabytes to an application that parses it with request.formData() and iterates with formData.forEach(), on a host with enough memory to reach the required allocation (around 160GB), could cause a crash or potentially undefined behavior.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:35:42Z"},"euvd":{"id":"EUVD-2023-1504","exploited":false,"provenance":"source"}}