node-opcua: TCP Socket Leak (FIN-WAIT-2) via keepalive reconnection cycle - Resource Exhaustion
Summary
| CVE | CVE-2026-68904 |
|---|---|
| State | PUBLISHED |
| Assigner | GitHub_M |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-09-16 17:18:00 UTC |
| Updated | 2026-09-30 17:51:36 UTC |
| Description | node-opcua is an OPC UA implementation for TypeScript and Node.js. From 2.0.0 until 2.170.0, node-opcua clients using the default keepSessionAlive setting can enter a repeated reconnection cycle when an OPC UA server's clock skew causes BadInvalidTimestamp responses. ClientSessionKeepAliveManager._ping_server treated the server-originated ServiceFault as a network outage and forced a transport reconnect, while ClientTCP_transport._on_ACK_response used socket.end() after failed HEL/ACK negotiation and could leave the connection in FIN-WAIT-2 when the peer did not close. Repetition at the keepAliveInterval accumulates file descriptors and memory until the client process or container can be terminated by resource exhaustion. This issue is fixed in version 2.170.0. |
Risk And Classification
Primary CVSS: v3.1 7 HIGH from [email protected]
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H
EPSS: 0.004430000 probability, percentile 0.364790000 (date 2026-10-07)
Problem Types: CWE-400 | CWE-400 CWE-400: Uncontrolled Resource Consumption
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Secondary | 7 | HIGH | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H |
| 3.1 | CNA | DECLARED | 7 | HIGH | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
HighPrivileges Required
NoneUser Interaction
NoneScope
UnchangedConfidentiality
LowIntegrity
LowAvailability
HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Node-opcua | Node-opcua | affected >= 2.0.0, < 2.170.0 | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| github.com/node-opcua/node-opcua/security/advisories/GHSA-r2pf-9cw4-5j65 | [email protected] | github.com | |
| github.com/node-opcua/node-opcua/releases/tag/v2.170.0 | [email protected] | github.com | |
| github.com/node-opcua/node-opcua/pull/1497 | [email protected] | github.com | |
| github.com/node-opcua/node-opcua/commit/481664fa6ba8204737c5a92797ff68c3... | [email protected] | github.com | |
| github.com/node-opcua/node-opcua/commit/1959cbb8946b386d2e24a1cce05b7148... | [email protected] | github.com | |
| github.com/node-opcua/node-opcua/commit/4d59197e2dbd82791d7f36dad7da1787... | [email protected] | github.com | |
| github.com/node-opcua/node-opcua/commit/dc406fd2d364aa69dd173be21ed32a7f... | [email protected] | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.