OS command injection flaw (CVE-2026-107322) in AWS databases-on-aws plugin before 1.7.1
AWS disclosed CVE-2026-107322, an OS command injection vulnerability in the databases-on-aws plugin for Amazon Agent Plugins for AWS, affecting versions 1.0.0 through 1.7.0. An incomplete input denylist could let a remote unauthenticated actor supply crafted content that, if an AI coding agent later passes it to the local psql connection helper, results in command execution on the host with the helper process's permissions. The Aurora DSQL service itself and database privilege enforcement are not affected. A fix is available in version 1.7.1 (or commit 8b13a503746a4ebb0402b936645163224058bde3 and later for pinned revisions), released August 26, 2026.
SECURITY · DATA · DEVOPS · AI · VULNERABILITY · SECURITY ADVISORY
PUBLISHED OCT 9, 2026 17:23 UTC
WHAT CHANGED
The databases-on-aws plugin's disallowed-input filtering for the optional psql connection helper command path was incomplete, permitting crafted database command values to trigger local OS command execution on the host when the agent invokes the helper. The vulnerability does not create a network-listening service and does not bypass Aurora DSQL privileges. AWS released databases-on-aws 1.7.1 to fix the issue, with the fix also available via a specific main-branch commit for pinned repository revisions.
WHY IT MATTERS
Administrators running the databases-on-aws plugin with versions 1.0.0 through 1.7.0 risk OS-level command execution with the permissions of the agent/helper process if an attacker can get crafted content ingested by the agent. This could lead to credential theft, lateral movement, or further compromise of the host, especially if the process holds broad AWS IAM or database role permissions. Until upgraded, exposure can be reduced by avoiding the psql helper path, using the DSQL MCP server instead, running the agent/helper as an unprivileged OS user with a scoped IAM role (dsql:DbConnect, preferably read-only), and avoiding admin-level dsql:DbConnectAdmin grants for routine operations.
WHO IS AFFECTED
- ROLES
- Administrators running AI coding agents with the databases-on-aws pluginOperators of Aurora DSQL helper scripts
- PRODUCTS
- Amazon Agent Plugins for AWS - databases-on-aws plugin
- FEATURES
- Aurora DSQL helper scriptspsql connection helper command pathDSQL MCP server
- CONFIGURATIONS
- databases-on-aws versions 1.0.0 through 1.7.0Pinned repository revisions before commit 8b13a503746a4ebb0402b936645163224058bde3
- ENVIRONMENTS
- Local host running the AI agent and helper process
- EXCLUSIONS
- Aurora DSQL service itself is not affectedDatabase privilege bypass is not possible; this is a host-level OS command injection issue
WHAT TO DO
- 01CRITICALAUTOMATABLE
Upgrade databases-on-aws plugin to version 1.7.1 or later in all environments where it is used.
DOCUMENTATION - 02HIGH
Verify the updated plugin is active and loaded in every environment after upgrading.
- 03HIGHAUTOMATABLE
For pinned repository revisions, update to commit 8b13a503746a4ebb0402b936645163224058bde3 or later rather than relying on a 1.7.1 release tag.
- 04MEDIUM
Until upgraded, avoid the optional psql connection helper command path; use only manually reviewed SQL or the DSQL MCP server provided by the plugin instead.
- 05MEDIUMAUTOMATABLE
Run the agent and helper as an unprivileged OS user with a dedicated IAM role scoped to dsql:DbConnect and a read-only database role where possible; avoid dsql:DbConnectAdmin for routine operations.
- 06HIGHAUTOMATABLE
If the helper host is suspected to have been inappropriately accessed, rotate or revoke AWS credentials available to that process and review or replace associated database role and IAM-to-database role mappings.
TIMELINE
- ANNOUNCED
- OCT 8, 2026
- EFFECTIVE START
- AUG 26, 2026
SOURCES
- PRIMARY SOURCEAMAZON WEB SERVICES
CVE-2026-107322 - OS command injection in Amazon Agent Plugins for AWS databases-on-aws
PUBLISHED OCT 8, 2026VIEW SOURCE
VERIFICATION
ShiftWire summarizes and analyzes changes from the cited sources. Always review the primary source before implementing material changes.