Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain local low-privilege access
-
DeliveryModify serverless.yml compose_file argument
-
ExploitEmbed shell metacharacters in config value
-
ExecutionTrigger Serverless Framework plugin invocation
-
PersistConfiguration Handler passes unsanitized arg to OS
-
ImpactExecute 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 |
| 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 |
| Exploit ScenarioDerived | A developer or CI build agent with local access and a low-privilege account modifies the |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
Local attack vector, low-privilege config write access required; limited impact across all three dimensions with no scope change.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
3DescriptionCVE.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
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.
More in Localstack
View allThe dashboard component of StackLift LocalStack 0.12.6 allows attackers to inject arbitrary shell commands via the funct
A Cross-site scripting (XSS) vulnerability exists in StackLift LocalStack 0.12.6. Rated medium severity (CVSS 6.1), this
Missing SSL certificate validation in localstack v2.3.2 allows attackers to eavesdrop on communications between the host
EUVD-2026-48434
GHSA-64cc-4fc3-52m3
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB