CVE-2025-59464·Node.js vulnerability
A memory leak in Node.js’s OpenSSL integration occurs when converting `X.509` certificate fields to UTF-8 without freeing the allocated buffer. When applications call `socket.getPeerCertificate(true)`, each certificate field leaks memory, allowing remote clients to trigger steady memory growth through repeated TLS connections. Over time this can lead to resource exhaustion and denial of service.
- Severity
- high
- Software
- Node.js
- Fixed in
- 24.12.0
- Published
- 2026-01-20
Affected versions
From: 24.0.0
Until: 24.12.0
Fixed in: 24.12.0
How to fix this CVE
Update Node.js to version 24.12.0 or later to patch a memory leak in the OpenSSL certificate handling code. This vulnerability allows remote attackers to exhaust server memory through repeated TLS connections that trigger certificate field parsing. Applications using `socket.getPeerCertificate(true)` are particularly at risk and should be prioritized for immediate patching.
sudo dnf update nodejs -yDefensia detects this vulnerability
How to check if you are affected
- Run `node --version` to check your current Node.js version. If it reports 24.0.0 through 24.11.x, your system is vulnerable.
- Search your application code for calls to `socket.getPeerCertificate(true)` or similar certificate extraction methods in TLS connection handlers.
- Monitor memory usage with `watch -n 5 'free -h'` while running TLS workloads; steady memory growth without corresponding process activity indicates the leak is active.
- After updating to 24.12.0+, verify with `node --version` and restart all Node.js services, then observe that memory usage remains stable under the same TLS load.
FAQ
What is CVE-2025-59464?
A memory leak in Node.js versions 24.0.0–24.11.x where OpenSSL certificate field conversions fail to release allocated buffers, causing progressive memory exhaustion when TLS peers present certificates.
Is CVE-2025-59464 being actively exploited?
No, this vulnerability is not listed on CISA's Known Exploited Vulnerabilities catalog, and no public exploits are currently available, but the low barrier to trigger it (repeated TLS connections) makes preemptive patching advisable.
What versions of Node.js are affected by CVE-2025-59464?
Node.js versions 24.0.0 through 24.11.x are vulnerable; version 24.12.0 and later contain the fix.
How do I check if my server is vulnerable to CVE-2025-59464?
Run `node --version` and confirm the version is between 24.0.0 and 24.11.x. Additionally, check application logs for repeated certificate parsing operations paired with increasing RSS memory via `ps aux | grep node`.
Does Defensia detect CVE-2025-59464?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Node.js is installed on a monitored server, CVE-2025-59464 will appear in your dashboard with remediation steps.
Related Node.js CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2025-59464. Free for 1 server.
Get started free