Description
The "s init" command in Serverless-Devs @serverless-devs/s <= 3.1.11 passes unsanitized user input to child_process.spawn() with shell: true. A URL ending in ".git" bypasses the only input check, allowing OS command injection when a user runs "s init" with an attacker-controlled argument.
Published: 2026-08-03
Score: 9.8 Critical
EPSS: 1.0% Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability is in the "s init" command of Serverless‑Devs @serverless‑devs/s up to version 3.1.11. It passes user‑supplied input directly to child_process.spawn() with the shell option enabled, and the only input validation that blocks most non-".git" URLs is bypassed by URLs ending in ".git". This flaw allows an attacker to inject arbitrary operating system commands, resulting in remote code execution with the privileges of the process executing the command.

Affected Systems

Users running Serverless‑Devs @serverless‑devs/s version 3.1.11 or earlier are affected. No specific vendor product listing is provided beyond the package name and its version cutoff.

Risk and Exploitability

The flaw permits full command execution when an attacker controls the argument to "s init", making it a high‑severity risk. The EPSS score is 1%, and the vulnerability is not listed in CISA's KEV catalog, indicating no publicly known exploit has been reported to date. Nevertheless, due to the nature of the vulnerability and the ease of exploitation via a simple URL injection, the risk is significant. The likely attack vector is remote: anyone able to invoke the "s init" command with a crafted URL can achieve the exploit.

Generated by OpenCVE AI on August 12, 2026 at 00:32 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update Serverless‑Devs to a version newer than 3.1.11, where the input sanitization and shell usage have been corrected.
  • If an immediate update is not possible, run the tool in an environment with restricted shell access or disable shell execution for child processes.
  • Implement an application‑level filter that rejects any URL containing a trailing ".git" or otherwise validates the domain whitelist before invoking "s init".

Generated by OpenCVE AI on August 12, 2026 at 00:32 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 12 Aug 2026 01:00:00 +0000

Type Values Removed Values Added
Title OS Command Injection via Unsanitized "s init" in Serverless‑Devs @serverless‑devs/s <= 3.1.11

Fri, 07 Aug 2026 10:00:00 +0000

Type Values Removed Values Added
First Time appeared Serverless-dns
Serverless-dns serverless-dns
Vendors & Products Serverless-dns
Serverless-dns serverless-dns

Tue, 04 Aug 2026 22:15:00 +0000

Type Values Removed Values Added
Title OS Command Injection via Unsanitized "s init" in Serverless‑Devs @serverless‑devs/s <= 3.1.11
Weaknesses CWE-78

Mon, 03 Aug 2026 21:15:00 +0000

Type Values Removed Values Added
Description The "s init" command in Serverless-Devs @serverless-devs/s <= 3.1.11 passes unsanitized user input to child_process.spawn() with shell: true. A URL ending in ".git" bypasses the only input check, allowing OS command injection when a user runs "s init" with an attacker-controlled argument.
References

Subscriptions

Serverless-dns Serverless-dns
cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2026-08-06T15:38:49.127Z

Reserved: 2026-06-07T00:00:00.000Z

Link: CVE-2026-51190

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-03T21:16:40.033

Modified: 2026-08-06T22:17:41.483

Link: CVE-2026-51190

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-12T00:45:03Z

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')