CVE-2026-16763

localstack serverless-localstack Configuration index.js os command injection

Published Jul 23, 2026 CVSS 4.0 · 4.8 Medium EPSS 1.2% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

The vulnerability resides in localstack serverless-localstack releases up to 1.4.0 and is triggered through manipulation of the custom.localstack.docker.compose_file argument in the Configuration Handler’s src/index.js. By supplying a crafted value, an attacker can inject arbitrary operating‑system commands that are executed within the host environment, exploiting the weaknesses listed as CWE‑77 and CWE‑78. The security impact is the ability to run arbitrary code locally, potentially compromising the host system’s confidentiality, integrity, or availability.

Affected Systems

All installations of the localstack serverless-localstack component up to version 1.4.0 are affected. The issue is confined to this specific product; other Localstack modules are not known to be impacted.

Risk and Exploitability

The CVSS score of 4.8 indicates a moderate severity, and the EPSS score of less than 1% suggests a low likelihood of widespread exploitation at this time. The vulnerability is not listed in CISA’s KEV catalog. Exploitation requires local access, but an exploit has already been made publicly available, meaning an attacker with local presence could achieve command execution easily once the vulnerability is known. The absence of a published fix underscores the need for immediate remediation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade localstack serverless-localstack to a version newer than 1.4.0 that removes the unsafe handling of docker.compose_file, or apply any vendor‑released patch that addresses OS command injection.
  • Validate the value supplied to custom.localstack.docker.compose_file against a strict whitelist of allowed file names or directories, ensuring that only trusted paths can be referenced and preventing arbitrary command execution.
  • Run the serverless-localstack process with the least privilege necessary, limiting its exposure to system resources and reducing the overall impact if the injection vector is successfully abused.

Generated by OpenCVE AI on August 3, 2026 at 20:56 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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.
Title localstack serverless-localstack Configuration index.js os command injection
First Time appeared Localstack
Localstack serverless-localstack
Weaknesses CWE-77
CWE-78
CPEs cpe:2.3:a:localstack:serverless-localstack:*:*:*:*:*:*:*:*
Vendors & Products Localstack
Localstack serverless-localstack
References
Metrics cvssV2_0

{'score': 4.3, 'vector': 'AV:L/AC:L/Au:S/C:P/I:P/A:P/E:POC/RL:ND/RC:UR'}

cvssV3_0

{'score': 5.3, 'vector': 'CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:R'}

cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:R'}

cvssV4_0

{'score': 4.8, 'vector': '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'}

Weaknesses
  • CWE-77

    Improper Neutralization of Special Elements used in a Command ('Command Injection')

  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Sources

Status
PUBLISHED
Assigner
VulDB
Published
Updated
Jul 24, 2026, 1:39 PM
Reserved
Jul 23, 2026, 2:06 PM
Status
Deferred
Published
Jul 23, 2026, 10:16 PM
Modified
Oct 24, 2026, 1:10 PM