{"answers":{"affected":"3 open source packages ship an affected version, including bedrock-agentcore.","exploited":"There is no known exploitation of CVE-2026-16796 in the wild and no public exploit code.","fix":"Upgrade bedrock-agentcore to 1.18.1 or later.","what":"CVE-2026-16796 is a high-severity command injection vulnerability in AWS bedrock-agentcore 1.18.1, published on 23 Jul 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-16796 and fix it if it is affected.\n\nWhat it is: CVE-2026-16796 is a high-severity command injection vulnerability in AWS bedrock-agentcore 1.18.1, published on 23 Jul 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-16796 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- bedrock-agentcore (PyPI): affected all versions; fixed in 1.18.1\n- bedrock-agentcore (PyPI): affected all versions; fixed in 1.18.1\n- bedrock-agentcore (PyPI): affected all versions; fixed in 1.18.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-16796/ (Markdown: https://insights.sbomify.com/CVE-2026-16796/index.md)","id":"CVE-2026-16796","markdown":"https://insights.sbomify.com/CVE-2026-16796/index.md","name":"CVE-2026-16796","record":{"aliases":["GHSA-j6g5-3hh3-pgw8","PYSEC-2026-3551"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"AWS Bedrock SDK","requires_auth":"low_privilege","summary":"Remote authenticated users can execute arbitrary commands in the Code Interpreter sandbox via crafted package names in the AWS Bedrock AgentCore Python SDK.","user_interaction":"required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"AMZN","cpe":[],"cvss":{"score":8.4,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-88","name":"Improper Neutralization of Argument Delimiters in a Command"}],"description":"Improper neutralization of argument delimiters in the install_packages() method in AWS Bedrock AgentCore Python SDK before 1.18.1 might allow a remote authenticated user to execute arbitrary commands within the Code Interpreter sandbox via crafted package name arguments.\n\nTo mitigate this issue, users should upgrade to the patched version 1.18.1.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Improper neutralization of argument delimiters in AWS Bedrock AgentCore Python SDK install_packages()","id":"CVE-2026-16796","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"command_injection","year":"2026"},"n_packages":3,"n_references":3,"next":{"headline":"Information disclosure in ShopLentor – All-in-One WooCommerce Growth \u0026 Store Enhancement Plugin","id":"CVE-2026-16797"},"packages":[{"ecosystem":"PyPI","fixed":["1.18.1"],"introduced":["0"],"last_affected":[],"package":"bedrock-agentcore","purl":null,"source":"GHSA-j6g5-3hh3-pgw8"},{"ecosystem":"PyPI","fixed":["1.18.1"],"introduced":["0"],"last_affected":[],"package":"bedrock-agentcore","purl":"pkg:pypi/bedrock-agentcore","source":"GHSA-j6g5-3hh3-pgw8"},{"ecosystem":"PyPI","fixed":["1.18.1"],"introduced":["0"],"last_affected":[],"package":"bedrock-agentcore","purl":"pkg:pypi/bedrock-agentcore","source":"PYSEC-2026-3551"}],"prev":{"headline":"Missing Authorization in GitLab","id":"CVE-2026-16794"},"products":["bedrock-agentcore 1.18.1"],"published":"2026-07-23","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-07-24","vendors":["AWS"]},"summary":"Remote authenticated users can execute arbitrary commands in the Code Interpreter sandbox via crafted package names in the AWS Bedrock AgentCore Python SDK.","url":"https://insights.sbomify.com/CVE-2026-16796/"}