CVE-2025-23165
Description
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.
How to fix
- nodejs node4.*, 5.*, 6.*, 7.*, 8.*, 9.*, 10.*, 11.*, 12.*, 13.*, 14.*, 15.*, 16.*, 17.*, 18.*, 19.*, 21.* or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| nodejs node | 4.0 ≤ v < 4.*, 5.0 ≤ v < 5.*, 6.0 ≤ v < 6.*, 7.0 ≤ v < 7.*, 8.0 ≤ v < 8.*, 9.0 ≤ v < 9.*, 10.0 ≤ v < 10.*, 11.0 ≤ v < 11.*, 12.0 ≤ v < 12.*, 13.0 ≤ v < 13.*, 14.0 ≤ v < 14.*, 15.0 ≤ v < 15.*, 16.0 ≤ v < 16.*, 17.0 ≤ v < 17.*, 18.0 ≤ v < 18.*, 19.0 ≤ v < 19.*, 20.0 ≤ v ≤ 20.19.1, 22.0 ≤ v ≤ 22.15.0, 21.0 ≤ v < 21.* | 4.*, 5.*, 6.*, 7.*, 8.*, 9.*, 10.*, 11.*, 12.*, 13.*, 14.*, 15.*, 16.*, 17.*, 18.*, 19.*, 21.* |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.