Description
An issue was discovered in localstack 4.9.2 allowing attackers to execute arbitrary code via crafted content hosted on a web-accessable URL and when passed said URL in the the templateURL to the _localstack/cloudformation/deploy endpoint, the hosted content can get executed in the context of the docker container.
Published: 2026-10-22
Score: n/a
EPSS: < 1% Very Low
KEV: No
Impact: Remote Code Execution
Action: Immediate Patch
AI Analysis

Impact

LocalStack version 4.9.2 contains a flaw that permits arbitrary code execution when an attacker supplies a crafted URL to the templateURL parameter of the _localstack/cloudformation/deploy endpoint. The content fetched from the externally hosted URL is executed within the Docker container that runs LocalStack, allowing the attacker to run arbitrary commands in that container’s context. This vulnerability does not rely on user interaction beyond providing the templateURL; it can be used by any entity capable of issuing requests to the vulnerable endpoint.

Affected Systems

The vulnerability affects the LocalStack product, specifically the 4.9.2 release. Systems that run this version of LocalStack and expose the cloudformation deploy endpoint to potential attackers are at risk. No other vendors or product versions are currently known to be affected.

Risk and Exploitability

The issue provides a clear remote code execution path. Although a CVSS score is not provided and EPSS data is unavailable, the potential impact is severe, enabling full compromise of the container environment. The vulnerability is not listed in CISA’s KEV catalog, but its exploitation would likely be straightforward for an attacker who can reach the interface. The vulnerability can be exploited remotely by supplying a malicious URL to the templateURL field, causing the container to execute the attacker’s payload without further authentication or privilege escalation within the LocalStack process.

Generated by OpenCVE AI on October 23, 2026 at 01:17 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade LocalStack to a non-affected version (4.9.3 or later) once an official fix is released.
  • If an update is not yet available, restrict network access to the _localstack/cloudformation/deploy endpoint so that only trusted hosts can submit requests.
  • Implement validation logic to ensure that URLs passed to templateURL are internal or that the content is safe before execution, mitigating the risk of external malicious payloads.

Generated by OpenCVE AI on October 23, 2026 at 01:17 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 23 Oct 2026 02:15:00 +0000

Type Values Removed Values Added
First Time appeared Localstack
Localstack localstack
Vendors & Products Localstack
Localstack localstack

Fri, 23 Oct 2026 01:30:00 +0000

Type Values Removed Values Added
Title Remote Code Execution via Crafted templateURL in LocalStack 4.9.2
Weaknesses CWE-94

Thu, 22 Oct 2026 18:30:00 +0000

Type Values Removed Values Added
Description An issue was discovered in localstack 4.9.2 allowing attackers to execute arbitrary code via crafted content hosted on a web-accessable URL and when passed said URL in the the templateURL to the _localstack/cloudformation/deploy endpoint, the hosted content can get executed in the context of the docker container.
References

Subscriptions

Localstack Localstack
cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2026-10-22T18:05:18.644Z

Reserved: 2025-11-18T00:00:00.000Z

Link: CVE-2025-65200

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-10-22T19:17:32.260

Modified: 2026-10-23T19:43:46.190

Link: CVE-2025-65200

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-23T02:00:16Z

Weaknesses
  • CWE-94

    Improper Control of Generation of Code ('Code Injection')