Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain write access to CDK source or dependency
-
DeliveryInject shell metacharacters into bundling property
-
ExploitVictim runs cdk synth/deploy
-
ExecutionNodejsFunction invokes esbuild via shell
-
PersistInjected command executes on build host
-
ImpactSteal cloud credentials and pivot
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 | The attacker must control the value of at least one of these specific NodejsFunction bundling properties: externalModules, define, loader, inject, or esbuildArgs - typically achieved via a malicious dependency, compromised CDK construct, untrusted configuration source, or insider commit. Exploitation requires the victim to invoke the local bundling pipeline (cdk synth or cdk deploy of a NodejsFunction) on a host that has aws-cdk-lib below 2.245.0 (or below 2.246.0 on Windows) installed; CVSS UI:A confirms active user interaction is needed (the build must be run). Limiting factors: AV:L means the attacker cannot reach the bundling host over the network directly, PR:L implies some pre-existing foothold or trust relationship in the build supply chain, and projects that never use NodejsFunction local bundling, or that hard-code bundling properties from constants, are not exploitable. |
| Impact | CVSS 4.0 score is 7.0 with vector AV:L/AC:L/AT:N/PR:L/UI:A - local attack vector, low complexity, low privileges required, and active user interaction needed, yielding high confidentiality, integrity, and availability impact on the vulnerable system but no scope change. This is not a remote network exploit: an attacker must already influence the CDK application's source, configuration, or input that feeds the bundling properties, typically meaning a malicious dependency, a compromised contributor, or an untrusted CDK construct/template consumed by a build pipeline. EPSS data was not provided, and no KEV listing or public exploit code has been identified, so this is best characterized as a supply-chain / build-time risk rather than an internet-exposed RCE. The real priority is high for organizations running CDK synthesis in shared CI/CD systems where compromise of the build host yields lateral movement and credential theft, but lower for isolated developer workstations building only trusted code. |
| Exploit ScenarioDerived | A contributor or upstream dependency introduces a CDK construct or configuration that sets esbuildArgs to a value such as |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 10, 2026
OS command injection in the NodejsFunction local bundling pipeline of aws-cdk-lib prior to 2.245.0 (2.246.0 on Windows) allows an actor controlling bundling property values (externalModules, define, loader, inject, or esbuildArgs) to execute arbitrary commands on the host running the CDK toolchain via shell metacharacter injection. The flaw, reported by Amazon and tracked under GHSA-999r-qq7v-r334, affects developer and CI/CD machines synthesizing CDK applications. No public exploit identified at time of analysis, and the issue is not listed in CISA KEV.
RemediationAI
Vendor-released patch: upgrade aws-cdk-lib to 2.245.0 or later on Linux/macOS and to 2.246.0 or later on Windows, as referenced in https://github.com/aws/aws-cdk/releases/tag/v2.245.0 and the AWS security bulletin https://aws.amazon.com/security/security-bulletins/2026-041-aws/. Where immediate upgrade is not possible, treat all values flowing into NodejsFunction bundling properties (externalModules, define, loader, inject, esbuildArgs) as untrusted and hard-code them in source rather than deriving them from environment variables, CLI parameters, configuration files, or third-party constructs; this trade-off reduces flexibility for dynamic builds but eliminates the injection path. Additionally, run CDK synth in isolated CI runners with no long-lived cloud credentials and review pull requests for changes to NodejsFunction bundling options, accepting that PR-review and runner isolation add process overhead but contain blast radius if a malicious value slips in before the upgrade is deployed.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in npm, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
AWS CDK (Cloud Development Kit) is an infrastructure-as-code framework where aws-cdk-lib provides the NodejsFunction construct, which bundles Lambda function code locally using esbuild. During bundling, properties such as externalModules, define, loader, inject, and esbuildArgs are concatenated into shell command invocations to esbuild. Per CWE-78 (Improper Neutralization of Special Elements used in an OS Command), these values are not adequately sanitized before being passed to the shell, meaning metacharacters like ;, &&, |, or backticks injected into those properties are interpreted by the host shell. The affected CPE is cpe:2.3:a:aws:aws_cloud_development_kit_library:*:*:*:*:*:*:*:*, and the Windows-specific delayed fix (2.246.0) suggests platform-specific shell parsing nuances required an additional patch.
Know when AWS 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:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Primary rating from Vendor (AMZN) · only source for this CVE.
CVSS VectorVendor: AMZN
Lifecycle Timeline
2DescriptionCVE.org
OS command injection in the NodejsFunction local bundling pipeline in aws-cdk-lib before 2.245.0 (2.246.0 on Windows) might allow an actor who controls the value of one or more bundling properties (externalModules, define, loader, inject, or esbuildArgs) to execute arbitrary commands on the host running the CDK toolchain via injected shell metacharacters. This issue requires the threat actor to control the value of one or more of the affected bundling properties in the CDK application.
To remediate this issue, users should upgrade to aws-cdk-lib 2.245.0 (2.246.0 on Windows) or later.
Executive ViewAI
AWS CDK users face a critical build infrastructure risk: a command injection vulnerability in aws-cdk-lib (versions < 2.245.0) could allow attackers to inject and execute malicious code directly on development and CI/CD systems. This threatens the integrity of software builds, enabling potential code theft, supply chain attacks, or credential harvesting. Organizations must patch immediately to prevent compromise of their development pipeline.
Apply vendor patch (aws-cdk-lib 2.245.0 or later; 2.246.0 or later on Windows). Until patched, restrict access to build configuration files and audit who can modify bundling property definitions in CDK configurations.
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.
Loom for AWS deployments running a version before 1.6.1 with no identity provider configured expose an unauthenticated s
Unauthorized data access in Budibase low-code platform before 3.30.4 allows unauthenticated users to manipulate internal
Authenticated Typebot users can abuse the webhook block (HTTP Request component) in versions prior to 3.13.1 to issue ar
Multiple vulnerabilities in ASTPP 4.0.1 including XSS and command injection in SIP device configuration and plugin manag
Broken access control in the VitaFit cloud API before the 2026-10-30 fix lets any authenticated account holder call POST
Remote code execution in Amazon awslabs postgres-mcp-server before 1.1.7 lets remote actors run arbitrary OS commands on
Remote code execution in AWS AgentCore CLI before v0.14.2 allows authenticated attackers to inject Python code via craft
Denial of service in the aws-smithy-json Rust runtime crate (versions before 0.62.7) lets remote unauthenticated attacke
Denial of service in Amazon's aws-smithy-http-server Rust crate (versions prior to 0.66.5) lets remote unauthenticated a
Argument injection in the AWS Bedrock AgentCore Python SDK before 1.18.1 lets a remote authenticated user run arbitrary
Arbitrary file read in amazon-mq rabbitmq-aws before 0.2.1 allows authenticated remote users to read any file accessible
WAF managed-rule body inspection on AWS Application Load Balancer (ALB) can be bypassed by remote actors who fragment an
EUVD-2026-36076
GHSA-999r-qq7v-r334
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB