CVE-2025-23165
Reported by hackerone · Published May 19, 2025
In Node.js, the `ReadFileUtf8` internal binding leaks memory due to a corrupted pointer in `uv_fs_s.file`: a UTF-16 path buffer is allocated but subsequently overwritten when the file descriptor is set. This results in an unrecoverable memory leak on every call. Repeated use can cause unbounded memory growth, leading to a denial of service. Impact: * This vulnerability affects APIs relying on `ReadFileUtf8` on Node.js release lines: v20 and v22.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| nodejs | Alpine | 22.15.1-r0 |
| node | Bitnami | 22.15.1, 20.19.2 |
| nodejs-21 | Wolfi | 21.7.3-r12 |
| nodejs22-devel | Amazon Linux | 1:22.16.0-1.amzn2023.0.1 |
| v8-12.4-devel | Amazon Linux | 3:12.4.254.21-1.22.16.0.1.amzn2023.0.1 |
| nodejs-16 | Chainguard | 16.20.2-r15 |
| nodejs22-docs | Amazon Linux | 1:22.16.0-1.amzn2023.0.1 |
| nodejs20-npm | Amazon Linux | 1:10.8.2-1.20.19.2.1.amzn2023.0.1 |
| node | dhi.docker.com | 22.15.1, 20.19.2 |
| nodejs-16 | Wolfi | 16.20.2-r15 |
| nodejs20-libs | Amazon Linux | 1:20.19.2-1.amzn2023.0.1 |
| nodejs20 | Amazon Linux | 1:20.19.2-1.amzn2023.0.1 |
19 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| nodejs | node | 4.0, 5.0, 6.0 |
| alpine | nodejs | 0 |
| wolfi | nodejs-18 | * |
| nodejs | node | |
| wolfi | nodejs-21 | 0 |
| amazon:2023 | nodejs22-devel | 0 |
| amazon:2023 | v8-12.4-devel | 0 |
| nodejs | node | 17.0, 16.0, 15.0 |
| chainguard | nodejs-16 | 0 |
| amazon:2023 | nodejs22-docs | 0 |
| amazon:2023 | nodejs20-npm | 0 |
| wolfi | nodejs-16 | 0 |
| amazon:2023 | nodejs20-libs | 0 |
| amazon:2023 | nodejs20 | 0 |
| amazon:2023 | nodejs20-docs | 0 |
| amazon:2023 | nodejs22-full-i18n | 0 |
| amazon:2023 | nodejs20-devel | 0 |
| arch | nodejs-lts-jod | 0 |
| amazon:2023 | v8-11.3-devel | 0 |
| amazon:2023 | nodejs20-full-i18n | 0 |
…and 5 more
Timeline
- May 15, 2025 PoC Published
- May 19, 2025 EPSS Score (30 in total, the first dated here)
- May 19, 2025 Coalition ESS Score (18 in total, the first dated here)
- May 19, 2025 CVE Published
- Jun 2, 2026 Security Advisory (7 in total, the first dated here)
- Sep 29, 2026 Distribution Patch (6 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-23165
vulnetix vdb fixes CVE-2025-23165
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-23165/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart