CVE-2026-23515: @signalk/set system time Remote Code Execution Vulnerability

CRITICAL
Advisory Identifier: GHSA-p8gp-2w28-mhwg
CVSS 9.9
CWE-78
Published
Advisory Summary

CVE-2026-23515 is a CRITICAL (CVSS 9.9) remote code execution vulnerability (CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')) affecting @signalk/set system time libraries in the npm ecosystem. The issue involves signal k set-system-time plugin vulnerable to rce - command injection. Remediation is available by upgrading affected packages to version 1.5.0.

CVE-2026-23515 at a Glance

CVE Identifier CVE-2026-23515
GHSA Identifier GHSA-p8gp-2w28-mhwg
Severity CRITICAL
CVSS v3.1 Base Score 9.9
CWE Classification CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Affected Product @signalk/set system time
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 9.9

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2026-23515

To remediate this vulnerability, upgrade all affected @signalk/set system time dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

@signalk/set-system-time fixed: 1.5.0
npm install @signalk/set-system-time@1.5.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls @signalk/set-system-time

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2026-23515, inspect your project dependencies using npm:

npm ls @signalk/set-system-time

Analyze the terminal output to locate any version of @signalk/set system time in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.5.0), your application is affected.

Note: The npm ls @signalk/set-system-time command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection'), where the product constructs all or part of an os command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended os command when it is sent to a downstream component. In @signalk/set system time, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary A Command Injection vulnerability allows authenticated users with write permissions to execute arbitrary shell commands on the Signal K server when the set-system-time plugin is enabled. Unauthenticated users can also exploit this vulnerability if security is disabled on the Signal K server. This occurs due to unsafe construction of shell commands when processing `navigation.datetime` values received via WebSocket delta messages. ### Details **Product:** Signal K set-system-time plugin **Repository:** https://github.com/SignalK/set-system-time File: `index.js`, lines 60-71 ```javascript stream.onValue(function (datetime) { var child if (process.platform == 'win32') { console.error("Set-system-time supports only linux-like os's") } else { if( ! plugin.useNetworkTime(options) ){ const useSudo = typeof options.sudo === 'undefined' || options.sudo const setDate = `date --iso-8601 -u -s "${datetime}"` // ← VULNERABLE const command = useSudo ? `if sudo -n date &> /dev/null ; then sudo ${setDate} ; else exit 3 ; fi` : setDate child = require('child_process').spawn('sh', ['-c', command]) // ← EXECUTES SHELL ``` The vulnerability has three components: 1. **Unsanitized Input**: The `datetime` value from `navigation.datetime` Signal K path is directly interpolated into a shell command without validation 2. **Shell Execution**: The command is executed via `spawn('sh', ['-c', command])`, which interprets shell metacharacters 3. **Sudo Privileges**: The plugin can execute with root privileges if `sudo` is misconfigured, instructions to limit passwordless sudo to the /bin/date binary helps mitigate this but RCE can still be achieved with the privileges of the user that installed it. ### PoC #### Exploitation Requirements - Signal K server with security enabled, if disabled credentials not required - Valid user credentials with `readwrite` or `admin` permissions - set-system-time plugin installed and enabled - Signal K server installed on a Linux OS - Passwordless sudo configured, official instructions will do this for the `date` command which is enough to satisfy the if condition ```Python """ Run provided POC: python3 poc.py --host signalkserver_IP -u username -p password Payload: Creates /tmp/signalk-RCE.txt to prove code execution """ ``` ### Impact An attacker that has write privileges either through security on the Signal K server being disabled or valid credentials with read/write permissions can execute arbitrary commands on the server with the privileges of the SignalK process or root if sudo is misconfigured. This enables complete system compromise. ### Recommendations - Replace shell-based execution with child_process.execFile() so user-controlled input is passed as arguments rather than interpreted by a shell. - Validate that navigation.datetime conforms to an expected ISO-8601 format to improve robustness.

CVE-2026-23515 Affected @signalk/set system time Versions

1 component(s)
Fixed Versions:
1.5.0
Product / Package Ecosystem Affected Versions Fixed Version
@signalk/set-system-time
npm
< 1.5.0
1.5.0

References

Frequently Asked Questions

What is CVE-2026-23515?
CVE-2026-23515 is a security vulnerability in @signalk/set system time involving Signal K set-system-time plugin vulnerable to RCE - Command Injection under CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection').
Which @signalk/set system time versions are affected?
Affected versions include releases prior to 1.5.0 across affected packages: @signalk/set-system-time.
What version fixes CVE-2026-23515?
Upgrading to 1.5.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @signalk/set-system-time affected?
Yes, @signalk/set-system-time is affected in releases prior to 1.5.0. Upgrade your dependency to 1.5.0 or later.
What is the CVSS score of CVE-2026-23515?
CVE-2026-23515 has a CVSS v3.1 base score of 9.9 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H.
What CWE is associated with CVE-2026-23515?
CVE-2026-23515 is classified under CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') (The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.).
How can I check npm dependencies for CVE-2026-23515?
Run the dependency tree command: 'npm ls @signalk/set-system-time'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-p8gp-2w28-mhwg",
  "modified" : "2026-02-03T16:12:17Z",
  "published" : "2026-02-02T18:10:32Z",
  "aliases" : [ "CVE-2026-23515" ],
  "summary" : "Signal K set-system-time plugin vulnerable to RCE - Command Injection",
  "details" : "### Summary\nA Command Injection vulnerability allows authenticated users with write permissions to execute arbitrary shell commands on the Signal K server when the set-system-time plugin is enabled. Unauthenticated users can also exploit this vulnerability if security is disabled on the Signal K server. This occurs due to unsafe construction of shell commands when processing `navigation.datetime` values received via WebSocket delta messages.\n\n### Details\n**Product:** Signal K set-system-time plugin  \n**Repository:** https://github.com/SignalK/set-system-time  \n\nFile: `index.js`, lines 60-71\n\n```javascript\n      stream.onValue(function (datetime) {\n        var child\n        if (process.platform == 'win32') {\n          console.error(\"Set-system-time supports only linux-like os's\")\n        } else {\n          if( ! plugin.useNetworkTime(options) ){\n            const useSudo = typeof options.sudo === 'undefined' || options.sudo\n            const setDate = `date --iso-8601 -u -s \"${datetime}\"`  // ← VULNERABLE\n            const command = useSudo\n              ? `if sudo -n date &> /dev/null ; then sudo ${setDate} ; else exit 3 ; fi`\n              : setDate\n            child = require('child_process').spawn('sh', ['-c', command])  // ← EXECUTES SHELL\n```\n\nThe vulnerability has three components:\n\n1. **Unsanitized Input**: The `datetime` value from `navigation.datetime` Signal K path is directly interpolated into a shell command without validation\n2. **Shell Execution**: The command is executed via `spawn('sh', ['-c', command])`, which interprets shell metacharacters\n3. **Sudo Privileges**: The plugin can execute with root privileges if `sudo` is misconfigured, instructions to limit passwordless sudo to the /bin/date binary helps mitigate this but RCE can still be achieved with the privileges of the user that installed it.\n\n### PoC\n#### Exploitation Requirements\n\n- Signal K server with security enabled, if disabled credentials not required\n- Valid user credentials with `readwrite` or `admin` permissions\n- set-system-time plugin installed and enabled\n- Signal K server installed on a Linux OS\n- Passwordless sudo configured, official instructions will do this for the `date` command which is enough to satisfy the if condition\n\n\n```Python\n\"\"\"\nRun provided POC:\n    python3 poc.py --host signalkserver_IP -u username -p password\n\nPayload: Creates /tmp/signalk-RCE.txt to prove code execution\n\"\"\"\n```\n\n### Impact\nAn attacker that has write privileges either through security on the Signal K server being disabled or valid credentials with read/write permissions can execute arbitrary commands on the server with the privileges of the SignalK process or root if sudo is misconfigured. This enables complete system compromise.\n\n### Recommendations\n\n- Replace shell-based execution with child_process.execFile() so user-controlled input is passed as arguments rather than interpreted by a shell.\n\n- Validate that navigation.datetime conforms to an expected ISO-8601 format to improve robustness.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@signalk/set-system-time"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.5.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/SignalK/signalk-server/security/advisories/GHSA-p8gp-2w28-mhwg"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-23515"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/SignalK/set-system-time/commit/75b11eae2de528bf89ede3fb1f7ed057ddbb4d24"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/SignalK/signalk-server"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-78" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-02-02T18:10:32Z",
    "nvd_published_at" : "2026-02-02T23:16:07Z"
  }
}