Skip to main content

serverless-localstack CVE-2026-16763

| EUVDEUVD-2026-48434 LOW
OS Command Injection (CWE-78)
2026-07-23 VulDB GHSA-64cc-4fc3-52m3
1.9
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

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

  1. Access
    Gain local low-privilege access
  2. Delivery
    Modify serverless.yml compose_file argument
  3. Exploit
    Embed shell metacharacters in config value
  4. Execution
    Trigger Serverless Framework plugin invocation
  5. Persist
    Configuration Handler passes unsanitized arg to OS
  6. Impact
    Execute injected commands under process context

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 local access to the system (AV:L) and a low-privileged user account (PR:L per CVSS 4.0 vector). The attacker must have the ability to control or write to the Serverless Framework configuration file that supplies the custom.localstack.docker.compose_file argument - this limits exploitation to users with filesystem write access to the project directory or the ability to influence configuration inputs fed to the plugin. The vulnerability is triggered when the Configuration Handler in src/index.js actively processes this parameter, meaning the Serverless Framework must be invoked (e.g., via serverless deploy or serverless offline) after the malicious value is injected. Remote unauthenticated exploitation is not possible given the local attack vector. Impact is further bounded to low confidentiality, integrity, and availability (VC:L/VI:L/VA:L) with no lateral movement to subsequent systems per the CVSS vector.

Impact

The CVSS 4.0 base score of 4.8 (Medium) accurately reflects the constrained attack surface: AV:L requires local system access, PR:L requires a low-privileged account, and the impact triad (VC:L/VI:L/VA:L) indicates limited, non-critical consequences with no scope change to subsequent systems (SC:N/SI:N/SA:N). The exploit maturity modifier E:P (proof-of-concept publicly available) is a meaningful risk amplifier - developers with the PoC can trivially exercise this path. Critically, this is a development toolchain component, meaning it is most commonly run on developer workstations or CI/CD build agents rather than production infrastructure; the realistic threat actor is a malicious insider, a compromised build system, or a developer who inadvertently processes an attacker-controlled serverless.yml. KEV status is not confirmed, and no EPSS data was provided in the input. The absence of a vendor response to responsible disclosure is a compounding factor: no official patch timeline exists, leaving users without a clear remediation path beyond manual mitigations.

Exploit ScenarioDerived

A developer or CI build agent with local access and a low-privilege account modifies the custom.localstack.docker.compose_file value in the project's serverless.yml to include shell metacharacters - for example, setting the value to docker-compose.yml; malicious_command. When the Serverless Framework invokes the serverless-localstack plugin and the Configuration Handler in src/index.js processes this parameter, the injected command executes with the privileges of the invoking process. A public proof-of-concept demonstrating this technique is available via GitHub issue #303.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
No patch listed yet 0.7% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Jul 23, 2026

OS command injection in localstack serverless-localstack up to version 1.4.0 allows a local low-privileged attacker to execute arbitrary operating system commands by manipulating the custom.localstack.docker.compose_file configuration argument processed by the Configuration Handler in src/index.js. A publicly available proof-of-concept exploit exists via GitHub issue #303, elevating practical risk beyond the moderate CVSS 4.0 base score of 4.8. No vendor patch has been released, as the project maintainer has not responded to the responsible disclosure reported through an issue report.

RemediationAI

No vendor-released patch has been identified at time of analysis - the project maintainer has not responded to the responsible disclosure (GitHub issue #303). As an immediate compensating control, restrict write permissions on Serverless Framework configuration files (serverless.yml / serverless.json) to trusted developers only, preventing unauthorized modification of the custom.localstack.docker.compose_file parameter. Avoid supplying dynamic or externally sourced values for this configuration key; use only static, pre-validated file paths controlled by the project team. In CI/CD environments, isolate the build agent and enforce code review requirements on any changes to Serverless plugin configuration. Monitor the GitHub repository (https://github.com/localstack/serverless-localstack/) for an upstream fix and upgrade immediately once a patched release is published. If the plugin is not actively required, consider temporarily disabling or removing it from the Serverless Framework configuration as a trade-off against local AWS emulation capability.

Affected VersionsENISA

serverless-localstack 1.0
serverless-localstack 1.2
serverless-localstack 1.3
serverless-localstack 1.1
serverless-localstack 1.4.0

Affected Packages

euvd serverless_localstack no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

serverless-localstack is a Serverless Framework plugin (CPE: cpe:2.3:a:localstack:serverless-localstack:*:*:*:*:*:*:*:*) that enables developers to emulate AWS cloud services locally using LocalStack and Docker. The vulnerability manifests in src/index.js within the Configuration Handler, which processes user-supplied plugin configuration values such as custom.localstack.docker.compose_file. CWE-78 (Improper Neutralization of Special Elements used in an OS Command - 'OS Command Injection') identifies the root cause: the docker.compose_file parameter is passed into a shell-executing function without sanitization or escaping, allowing embedded shell metacharacters or command sequences to be interpreted and executed by the operating system. Because this plugin interacts with Docker Compose, its configuration handling inherently invokes system-level processes, creating a natural injection surface.

Know when Localstack 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 (VulDB) PRIMARY 1.9 MEDIUM
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
vuln.today AI 5.3 MEDIUM

Local attack vector, low-privilege config write access required; limited impact across all three dimensions with no scope change.

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

Primary rating from Vendor (VulDB).

CVSS VectorVendor: VulDB

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
Severity Changed
Jul 23, 2026 - 22:22 NVD
MEDIUM LOW
CVSS changed
Jul 23, 2026 - 22:22 NVD
4.8 (MEDIUM) 1.9 (LOW)
CVE Published
Jul 23, 2026 - 21:15 cve.org
MEDIUM 4.8

DescriptionCVE.org

A vulnerability was identified in localstack serverless-localstack up to 1.4.0. The affected element is an unknown function of the file src/index.js of the component Configuration Handler. The manipulation of the argument custom.localstack.docker.compose_file leads to os command injection. An attack has to be approached locally. The exploit is publicly available and might be used. The project was informed of the problem early through an issue report but has not responded yet.

Threat Intelligence Overview

EPSS Score
0.7%
Top 51% exploitable
Prevalence
Low
niche Serverless Framework plugin for local AWS dev emulation
Exploit
POC
Public exploit code exists
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 LOW
CISA KEV No
Public POC Yes
EPSS 0.7%
Patch available No
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
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· derived
Defer
Exploitation
Poc
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

31
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +10
PoC: +20
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.

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