Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessInject crafted DB command into agent context
-
DeliveryBypass incomplete input filter
-
ExploitOperator invokes psql helper
-
Executionpsql dispatches \! meta-command to shell
-
ImpactArbitrary OS command execution on host
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation completeness
|
| Exploitation Conditions | Requires the vulnerable databases-on-aws plugin (before 1.7.1) installed and active, and the operator to invoke the psql-connect.sh helper's --command path so that attacker-controlled input reaches 'psql -c' (UI:P, AV:L). The specific prerequisite is an attacker-influenced 'database command value' in the agent context containing a psql backslash meta-command (e.g., '\!', '\copy', '\i', '\o'); the pre-1.7.1 filter rejected multiple statements and comment injection but did NOT reject backslash-dispatched meta-commands, which is the gap. Limiting factors: exploitation is local to the agent host and depends on operator interaction (the agent actually running the database command), so it is not a default-config remote-network compromise; only environments where this plugin is deployed and active are affected. |
| Impact | The CVSS 4.0 base score of 8.5 (High) is driven by full compromise of the local host (VC:H/VI:H/VA:H) via arbitrary OS command execution, but the attack vector is AV:L (local) with UI:P (passive user interaction required), not a network-facing flaw. This creates an apparent conflict with the description, which calls the actor 'remote unauthenticated': the reconciliation is that the psql helper executes locally on the agent host, while the malicious payload can originate remotely as attacker-influenced database content/agent context that the AI agent later processes - verify this interpretation against the AWS bulletin before treating it as a classic remote RCE. Exploitation realistically requires the agent operator to invoke the database-command path (UI:P), which materially lowers real-world risk versus a true AV:N/PR:N/UI:N bug. No EPSS score, no CISA KEV listing, and no public exploit were provided, and no SSVC decision data is available; given the niche footprint and the required operator interaction, this is a credible but not mass-exploitation-urgent priority - patch promptly where the plugin is deployed, but it is not comparable to a wormable internet-facing CVSS 8.5. Note also the input 'Information Disclosure' tag is inconsistent with the actual command-execution impact. |
| Exploit ScenarioDerived | An attacker places a crafted database command value - such as a psql meta-command like '\! <shell command>' - into data that an AI agent ingests into its context (e.g., attacker-controlled rows or prompt-injected content). When the operator's agent runs the databases-on-aws psql-connect.sh helper, the incomplete input filter (which blocked semicolons and SQL comments but not backslash meta-commands) passes the value to 'psql -c', and psql dispatches '\!' to a local shell, executing arbitrary OS commands on the host. No public exploit was identified, though the patch commit publicly reveals the vector; the local vector and required operator interaction constrain practical exploitation. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 08, 2026
Arbitrary operating system command execution is possible in the AWS databases-on-aws agent plugin (part of awslabs/agent-plugins) versions before 1.7.1, because its psql-connect.sh helper fails to reject psql backslash meta-commands such as \! when sanitizing the --command value. An unauthenticated attacker who can influence a database command value reaching the agent context (per the CVSS 4.0 vector, PR:N) can leverage meta-commands like \! to run local shell commands on the host running the helper, resulting in full confidentiality, integrity, and availability impact to that host; exploitation is local with passive user interaction (AV:L, UI:P), meaning it requires the plugin to be deployed and active and the operator/agent to actually invoke the --command path. No public exploit code or confirmed active exploitation was identified at time of analysis; the vendor has released the 1.7.1 fix together with AWS security bulletin 2026-130.
RemediationAI
Vendor-released patch: upgrade the databases-on-aws plugin to version 1.7.1 or later, as stated in the vendor advisory (https://aws.amazon.com/security/security-bulletins/2026-130-aws/), and confirm the updated plugin is active in every environment - re-install or refresh it from the marketplace so the 1.7.1 manifest in plugins/databases-on-aws/.claude-plugin/plugin.json, plugins/databases-on-aws/.codex-plugin/plugin.json, and .claude-plugin/marketplace.json is the one actually loaded, and restart any long-lived agent process holding the old helper. The upstream fix (https://github.com/awslabs/agent-plugins/commit/8b13a503746a4ebb0402b936645163224058bde3, PR #232) works by rejecting any backslash in --command after single-quoted literals are stripped; if you cannot upgrade immediately, apply that same check to scripts/psql-connect.sh yourself, or as a narrower compensating control stop routing attacker-influenced values into the --command path and require operators to run psql-connect.sh interactively without --command - with the trade-off that this disables agent-driven database command execution workflows and may break legitimate automation. Blocking backslashes outright is the intended long-term behavior because legitimate SELECT/INSERT/UPDATE/DDL/EXPLAIN statements do not need a backslash outside string literals, but note it will also reject string-escape usages some users rely on until they migrate to standard-conforming literals. Because the flaw is local (AV:L) and requires user interaction (UI:P), reducing the blast radius by running the agent host unprivileged, without credentials that grant OS or database privilege escalation, limits the impact of a successful \! execution, though it does not eliminate it.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The affected component is the databases-on-aws plugin published by awslabs/agent-plugins, which ships helper scripts invoked by an AI agent to interact with AWS database services. The root cause class is CWE-184 (Incomplete List of Disallowed Inputs): the pre-1.7.1 version of scripts/psql-connect.sh sanitized --command input only by stripping single-quoted string literals and then rejecting semicolons (multiple statements) and comment injection, but it never accounted for psql's own client-side backslash meta-command syntax. psql dispatches commands such as \!, \copy, \i, \o, and \set on a leading backslash before treating input as SQL, and \! executes a local shell command - so any backslash surviving sanitization and reaching psql -c becomes a local command-execution vector rather than SQL. The official fix (commit 8b13a503746a4ebb0402b936645163224058bde3, PR #232) adds a check that rejects any remaining backslash after single-quoted literals are stripped, on the rationale that none of SELECT/INSERT/UPDATE/DDL/EXPLAIN require a backslash outside a literal. The same commit bumps the plugin manifest versions for the Claude plugin (.claude-plugin/plugin.json), the Codex plugin (.codex-plugin/plugin.json), and the marketplace catalog (.claude-plugin/marketplace.json) from 1.7.0 to 1.7.1. The CPE cpe:2.3:a:aws:databases-on-aws:*:*:*:*:*:*:*:* marks all prior plugin builds as affected.
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:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Helper runs locally so AV:L; untrusted DB content needs no attacker auth so PR:N; the agent operator must invoke the command path, giving UI:R; full host command execution yields C/I/A:H, scope unchanged.
Primary rating from Vendor (AMZN).
CVSS VectorVendor: AMZN
DescriptionCVE.org
An incomplete list of disallowed inputs in Amazon Agent Plugins for AWS databases-on-aws plugin before 1.7.1 might allow a remote unauthenticated actor to execute arbitrary operating system commands on the host running the helper via a crafted database command value introduced in the agent context.
To remediate this issue, users should upgrade to databases-on-aws plugin version 1.7.1 or later and verify that the updated plugin is active in each environment where it is used.
Executive ViewAI
AWS databases-on-aws agent plugin (awslabs/agent-plugins) versions prior to 1.7.1 contain a high-severity command injection flaw that could allow an attacker to execute arbitrary operating system commands on hosts where the plugin is deployed and active. The vulnerability requires local access and user interaction, but successful exploitation grants full control of the affected host, posing a risk to data confidentiality, integrity, and availability for teams relying on this automation. Leadership should prioritize remediation given the potential for host compromise within database management workflows.
Apply vendor patch.
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.
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 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
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
EUVD-2026-95151
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB