CVE-2025-23165 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 se...
LowCVSS 3.7
EPSS 0.57%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
- Technology
- DebianCloud Platforms
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
ReadFileUtf8on Node.js release lines: v20 and v22.
Upgrade path
6 packages: 5 fixed, 1 partially fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| nodejs node | >= 4.0; >= 5.0; >= 6.0; >= 7.0 +15 more | after 20.19.1, 22.15.0 | Partially fixed |
| alpine/nodejs(Alpine v3.21) | < 22.15.1-r0 | 22.15.1-r0 | Fixed |
| azure linux nodejs(Azure Linux 3.0) | < 20.14.0-9 | 20.14.0-9 | Fixed |
| debian/nodejs(Debian 13) | < 20.19.2+dfsg-1 | 20.19.2+dfsg-1 | Fixed |
| debian/nodejs(Debian 14) | < 20.19.2+dfsg-1 | 20.19.2+dfsg-1 | Fixed |
| Microsoft azure linux | < 20.14.0-9 | 20.14.0-9 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| Microsoft azure linux | < 20.14.0-9 | 20.14.0-9 |
| azure linux nodejs(Azure Linux:3.0) | < 20.14.0-9 | 20.14.0-9 |
| debian/nodejs(Debian:13) | < 20.19.2+dfsg-1 | 20.19.2+dfsg-1 |
| debian/nodejs(Debian:14) | < 20.19.2+dfsg-1 | 20.19.2+dfsg-1 |
| nodejs node | >= 4.0 | No fix listed |
| nodejs node | >= 5.0 | No fix listed |
| nodejs node | >= 6.0 | No fix listed |
| nodejs node | >= 7.0 | No fix listed |
| nodejs node | >= 8.0 | No fix listed |
| nodejs node | >= 9.0 | No fix listed |
| nodejs node | >= 10.0 | No fix listed |
| nodejs node | >= 11.0 | No fix listed |
| nodejs node | >= 12.0 | No fix listed |
| nodejs node | >= 13.0 | No fix listed |
| nodejs node | >= 14.0 | No fix listed |
| nodejs node | >= 15.0 | No fix listed |
| nodejs node | >= 16.0 | No fix listed |
| nodejs node | >= 17.0 | No fix listed |
| nodejs node | >= 18.0 | No fix listed |
| nodejs node | >= 19.0 | No fix listed |
| nodejs node | >= 20.0, <= 20.19.1 | No fix listed |
| nodejs node | >= 22.0, <= 22.15.0 | No fix listed |
| nodejs node | >= 21.0 | No fix listed |
| alpine/nodejs(Alpine:v3.21) | < 22.15.1-r0 | 22.15.1-r0 |
References
- MSRC Security Update Guide vendor-advisory
- nodejs vendor-advisory
- CBL-Mariner Releases vendor-advisory
- Debian Security Tracker CVE-2025-23165 vendor-advisory
- nodejs.org
- security.alpinelinux.org vendor-advisory
- bugs.debian.org issue-tracking