Skip to main content

Serverless-Devs CVE-2026-51190

| EUVDEUVD-2026-52481 CRITICAL
OS Command Injection (CWE-78)
2026-08-03 mitre GHSA-rm7q-w9c9-27rj
9.8
CVSS 3.1 · Vendor: mitre
Share

Severity by source

Vendor (mitre) PRIMARY
9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI
7.8 HIGH

Attack executes locally only when a user runs 's init' with a crafted argument (AV:L, UI:R); no prior privileges needed (PR:N); shell command execution yields full C/I/A impact.

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (mitre).

CVSS VectorVendor: mitre

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

4
Analysis Generated
Aug 07, 2026 - 00:37 vuln.today
CVSS changed
Aug 06, 2026 - 22:22 NVD
9.8 (CRITICAL)
CVE Published
Aug 03, 2026 - 00:00 cve.org
CRITICAL 9.8
CVE Published
Aug 03, 2026 - 00:00 cve.org
UNKNOWN (no severity yet)

DescriptionCVE.org

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.

AnalysisAI

OS command injection in the Serverless-Devs CLI (@serverless-devs/s versions 3.1.11 and earlier) lets an attacker execute arbitrary commands on a developer's machine when they run 's init' with a crafted, attacker-influenced argument. The tool passes unsanitized input into child_process.spawn() with shell:true, and the single guard check - requiring the value to end in '.git' - is trivially satisfied by an attacker while still smuggling shell metacharacters. Publicly available exploit code exists (a proof-of-concept gist), SSVC rates technical impact as total and automatable, but EPSS remains low at 0.48% and it is not in CISA KEV.

Technical ContextAI

Serverless-Devs is an open-source serverless application lifecycle/DevOps toolchain (widely associated with the Alibaba Cloud Function Compute ecosystem) whose 's' CLI scaffolds projects via the 's init' command. The root cause is CWE-78 (Improper Neutralization of Special Elements used in an OS Command): user-supplied input is forwarded to Node.js child_process.spawn() with the shell:true option, which routes the arguments through '/bin/sh -c' (or cmd.exe) rather than executing a program directly. Because a shell interprets metacharacters such as ';', '&&', '|', backticks and '$()', any injected sequence is executed. The only validation is a check that the argument ends with '.git', which does not neutralize shell syntax - a payload like 'https://x/$(malicious).git' both passes the check and executes.

RemediationAI

Upgrade @serverless-devs/s to a fixed release above 3.1.11 once published; no exact patched version is provided in the available data, so confirm the fixed version directly with the maintainers before deploying - no vendor-released patch version is independently confirmed here. Until a fix is verified, do not run 's init' with untrusted or attacker-supplied repository URLs/template arguments, and treat any '.git' argument from an unverified source as dangerous despite the extension check. Compensating controls: pin and vet the exact template/registry sources you pass to 's init'; run the CLI inside an unprivileged, sandboxed container or throwaway VM so that command execution cannot reach credentials, cloud tokens, or CI secrets (trade-off: added workflow friction); and remove cached cloud credentials from the environment where the CLI runs to limit blast radius. Reference: the POC gist (https://gist.github.com/j311yl0v3u/5600afea3bea1337805c2e335bd4ae8e) and NVD (https://nvd.nist.gov/vuln/detail/CVE-2026-51190).

More in N A

View all
CVE-2024-51092 CRITICAL POC
9.1 May 08

LibreNMS before 24.10.0 allows a remote attacker to execute arbitrary code via OS command injection involving AboutContr

CVE-2025-15684 MEDIUM POC
5.5 Aug 12

Reachable assertion in Open5GS up to version 2.7.6 allows remote unauthenticated attackers to crash the Diameter CER han

CVE-2024-45257 HIGH POC
7.3 May 08

A Command Injection issue in the payload build page in BYOB (Build Your Own Botnet) 2.0 allows attackers to execute arbi

CVE-2025-15687 LOW POC
2.1 Aug 12

Denial of service in Open5GS 2.7.6 and earlier allows network-adjacent attackers with low-privilege Diameter Gx peer acc

CVE-2025-15686 LOW POC
2.1 Aug 12

Denial of service in Open5GS HSS (Home Subscriber Server) versions 2.7.0 through 2.7.6 is triggered remotely by manipula

CVE-2025-67888 HIGH POC
7.3 May 08

Remote command injection in Control Web Panel allows unauthenticated attackers to execute arbitrary OS commands as root

CVE-2024-53326 HIGH POC
7.3 May 08

LINQPad before 5.52.01 Pro edition is vulnerable to Unsafe Deserialization in LINQPad.AutoRefManager::PopulateFromCache(

CVE-2026-38360 CRITICAL POC
9.8 May 08

Remote code execution in dash-uploader (Python package for Plotly Dash) versions 0.1.0 through 0.7.0a2 allows unauthenti

CVE-2026-30623 CRITICAL POC
9.8 Jul 15

Command injection in LiteLLM 1.18.10 lets attackers who can configure MCP (Model Context Protocol) servers supply arbitr

CVE-2026-67917 CRITICAL POC
9.8 Aug 17

SQL injection in AzuraCast's backup restore flow (versions up to and including 0.23.7) lets an attacker achieve privileg

CVE-2026-75337 CRITICAL POC
9.8 Aug 27

Arbitrary file read in Yu AI Code Mother v4.3 lets anonymous, remote attackers retrieve files outside the intended previ

CVE-2026-31072 CRITICAL POC
9.8 May 19

Remote code execution in APScheduler (all versions through 3.10.x and 4.0.0a5) is achievable when applications deseriali

Share

CVE-2026-51190 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy