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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
Lifecycle Timeline
4Blast Radius
ecosystem impact- 1 npm packages depend on aws-cdk-lib (1 direct, 0 indirect)
Ecosystem-wide dependent count for version 2.246.0.
DescriptionCVE.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.
AnalysisAI
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.
Technical ContextAI
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.
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.
Unauthorized data access in Budibase low-code platform before 3.30.4 allows unauthenticated users to manipulate internal
Multiple vulnerabilities in ASTPP 4.0.1 including XSS and command injection in SIP device configuration and plugin manag
Remote code execution in AWS AgentCore CLI before v0.14.2 allows authenticated attackers to inject Python code via craft
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
WAF inspection bypass in Amazon CloudFront (with AWS WAF enabled) lets remote actors smuggle malicious request bodies pa
A trust boundary enforcement vulnerability in Kiro IDE allows remote attackers to execute arbitrary code when a local us
Bullwark Momentum Series JAWS 1.0 contains a directory traversal vulnerability that allows unauthenticated attackers to
Command injection in Amazon ECS Agent on Windows allows authenticated attackers with task definition permissions to exec
Security-policy bypass in the awslabs AWS API MCP Server (versions 0.2.13 through 1.3.46) lets an actor invoke AWS API o
Same weakness CWE-78 – OS Command Injection
View allSame technique Command Injection
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-36076
GHSA-999r-qq7v-r334