CVE-2026-105812

Code injection via unencoded configuration values during Python code generation in Bedrock AgentCore Starter Toolkit agent import

Published Oct 6, 2026 CVSS 4.0 · 8.8 High EPSS < 1% KEV · Not listed
Description
Improper control of code generation in the agent import functionality of Amazon Bedrock AgentCore Starter Toolkit before 0.3.14 might allow an authenticated same-account actor to execute arbitrary code when a user imports and runs or deploys a Bedrock Agent, via crafted configuration values incorporated into generated Python source without safe literal encoding.



To remediate this issue, users should upgrade to version 0.3.14. Because this issue persists into generated source, upgrading alone is not sufficient: agents imported with an affected version must be re-imported with version 0.3.14 or later and their local and deployed output artifacts replaced.

Analysis

AI-generated

Technical impact

The vulnerability arises from improper control of code generation in the Bedrock AgentCore Starter Toolkit’s agent import functionality. Prior to version 0.3.14, the toolkit incorporated user‑supplied configuration values directly into generated Python source without safe literal encoding, enabling an attacker with proper authentication in the same AWS account to inject arbitrary code. The bug is classified as a Code Injection flaw (CWE-94) and can lead to remote code execution if the imported agent is executed or deployed.

Affected Systems

The affected product is the Amazon Bedrock AgentCore Starter Toolkit, provided by AWS. The issue exists in all releases prior to 0.3.14. Any instance of the toolkit installed under those versions that processes agent imports is vulnerable. Users migrating to a newer release are no longer affected.

Risk and Exploitability

The CVSS score of 8.8 indicates high severity. Exploitation would require the attacker to have permissions to import an agent in the same AWS account and provide crafted configuration values. While the EPSS score is not available, the missing KEV listing suggests no widespread exploitation yet. Nonetheless, because the flaw permits arbitrary code execution within the user’s account, the risk remains significant, especially in environments where agent deployment scripts are executed automatically.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Bedrock AgentCore Starter Toolkit to version 0.3.14 or later.
  • Re‑import all agents that were previously imported with an earlier toolkit version using the upgraded toolkit.
  • Replace the local and deployed artifacts of those re‑imported agents with the regenerated versions to remove any injected code.

Generated by OpenCVE AI on October 6, 2026 at 23:17 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': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Improper control of code generation in the agent import functionality of Amazon Bedrock AgentCore Starter Toolkit before 0.3.14 might allow an authenticated same-account actor to execute arbitrary code when a user imports and runs or deploys a Bedrock Agent, via crafted configuration values incorporated into generated Python source without safe literal encoding. To remediate this issue, users should upgrade to version 0.3.14. Because this issue persists into generated source, upgrading alone is not sufficient: agents imported with an affected version must be re-imported with version 0.3.14 or later and their local and deployed output artifacts replaced.
Title Code injection via unencoded configuration values during Python code generation in Bedrock AgentCore Starter Toolkit agent import
First Time appeared Aws
Aws bedrock-agentcore-starter-toolkit
Weaknesses CWE-94
CPEs cpe:2.3:a:aws:bedrock-agentcore-starter-toolkit:*:*:*:*:*:*:*:*
Vendors & Products Aws
Aws bedrock-agentcore-starter-toolkit
References
Metrics cvssV3_1

{'score': 9, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.8, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H'}

Weaknesses
  • CWE-94

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

Sources

Status
PUBLISHED
Assigner
AMZN
Published
Updated
Oct 7, 2026, 3:17 PM
Reserved
Oct 5, 2026, 9:02 PM
Status
Awaiting Analysis
Published
Oct 6, 2026, 9:17 PM
Modified
Oct 7, 2026, 4:17 PM