Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: GSA_kwCzR0hTQS04dng2LTY5dmctYzQ2Zs4AAzT_
Buffer under-read in workerd
Impact
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.
In 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.
Patches
A fix that addresses this vulnerability has been released in version v1.20230419.0 and users are encouraged to update to the latest version available.
References
Release - https://github.com/cloudflare/workerd/releases/tag/v1.20230419.0
Permalink: https://github.com/advisories/GHSA-8vx6-69vg-c46fJSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS04dng2LTY5dmctYzQ2Zs4AAzT_
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: about 1 year ago
Updated: 6 months ago
CVSS Score: 6.5
CVSS vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:H
Identifiers: GHSA-8vx6-69vg-c46f, CVE-2023-2512
References:
- https://github.com/cloudflare/workerd/security/advisories/GHSA-8vx6-69vg-c46f
- https://nvd.nist.gov/vuln/detail/CVE-2023-2512
- https://github.com/cloudflare/workerd/releases/tag/v1.20230419.0
- https://github.com/advisories/GHSA-8vx6-69vg-c46f
Blast Radius: 23.0
Affected Packages
npm:workerd
Dependent packages: 10Dependent repositories: 3,416
Downloads: 2,278,558 last month
Affected Version Ranges: < 1.20230419.0
Fixed in: 1.20230419.0
All affected versions: 0.0.1, 0.20221111.0, 0.20230115.0, 0.20230215.0, 0.20230228.0, 0.20230228.1, 0.20230228.2, 0.20230404.0, 0.20230404.1, 0.20230419.0, 0.20230511.1, 0.20230512.0, 0.20230518.0, 0.20230628.0, 0.20230717.0, 0.20230801.0, 0.20230814.1, 0.20230821.0, 0.20230830.0, 0.20230904.0, 0.20230908.0, 0.20230914.0, 0.20230922.0, 0.20231002.0, 0.20231025.0, 0.20231030.1, 1.20220926.0, 1.20220926.1, 1.20220926.2, 1.20220926.3, 1.20221111.0, 1.20221111.1, 1.20221111.2, 1.20221111.3, 1.20221111.4, 1.20221111.5, 1.20230115.0, 1.20230215.0, 1.20230221.0, 1.20230228.0, 1.20230307.0, 1.20230321.0, 1.20230404.0
All unaffected versions: 1.20230419.0, 1.20230511.2, 1.20230512.0, 1.20230518.0, 1.20230628.0, 1.20230710.0, 1.20230717.0, 1.20230724.0, 1.20230801.0, 1.20230807.0, 1.20230814.0, 1.20230814.1, 1.20230821.0, 1.20230830.0, 1.20230904.0, 1.20230914.0, 1.20230918.0, 1.20230922.0, 1.20231002.0, 1.20231010.0, 1.20231016.0, 1.20231023.0, 1.20231025.0, 1.20231030.0, 1.20231121.0, 1.20231206.0, 1.20231218.0, 1.20240117.0, 1.20240129.0, 1.20240208.0, 1.20240222.0, 1.20240223.1, 1.20240304.0, 1.20240312.0, 1.20240314.0, 1.20240320.1, 1.20240329.0, 1.20240402.0, 1.20240403.0, 1.20240404.0, 1.20240405.0, 1.20240419.0, 1.20240423.1, 1.20240502.0, 1.20240512.0