CVE-2026-15746

Credential disclosure in Strands Agents Tools elasticsearch_memory tool

Published Jul 15, 2026 CVSS 4.0 · 6.9 Medium EPSS < 1% KEV · Not listed
Description
Strands Agents is an open-source Python SDK for building and running AI agents. The strands-agents-tools package provides pre-built tools for use with the SDK, including the elasticsearch_memory tool for agent memory storage. We identified CVE-2026-15746, a server-side request forgery (SSRF) issue in the elasticsearch_memory tool. The tool exposed its connection parameters (es_url, cloud_id, api_key) as fields the large language model (LLM) could control through the tool schema. When a caller omitted the api_key parameter, the tool fell back to the operator's ELASTICSEARCH_API_KEY environment variable and sent it to whichever host the LLM specified. A crafted prompt could cause the tool to connect to a threat-actor-controlled server and disclose the operator's Elasticsearch API key in the Authorization header.



We recommend you upgrade to strands-agents-tools version 0.7.0 or later. As a precautionary measure, we recommend all operators rotate their ELASTICSEARCH_API_KEY, even if there is no indication the credential was exposed.

Analysis

AI-generated

Technical impact

Strands Agents Tools includes an elasticsearch_memory tool that stores agent memory in Elasticsearch. The tool accepts connection parameters (es_url, cloud_id, api_key) from the LLM through its schema. If the api_key parameter is omitted, the tool falls back to the operator’s ELASTICSEARCH_API_KEY environment variable and transmits that key in the Authorization header to whatever host the LLM supplies. This server‑side request forgery permits a malicious LLM prompt to direct the tool to an attacker‑controlled server, resulting in credential disclosure of the Elasticsearch API key, which enables an attacker to access the target Elasticsearch cluster and any data it contains.

Affected Systems

Amazon Strands Agents Tools is the impacted product. Any installation using the elasticsearch_memory component in the strands‑agents‑tools Python SDK before version 0.7.0 is vulnerable, as the fix was introduced in that release. The vulnerability affects deployments where the tool’s connection parameters are exposed to the LLM and the ELASTICSEARCH_API_KEY environment variable is set.

Risk and Exploitability

CVSS score 6.9 indicates a moderate severity flaw. The EPSS score of less than 1% points to a low probability of exploitation at present, and the vulnerability is not listed in CISA’s KEV catalog. Exploitation requires an LLM that can control the tool’s schema and a functioning installation of the vulnerable tool with the ELASTICSEARCH_API_KEY environment variable set. By sending a malicious es_url in the prompt, an attacker can make the tool send the API key to a server they control, thereby obtaining the credentials.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to strands‑agents‑tools version 0.7.0 or later, which removes the SSRF behavior.
  • Rotate the ELASTICSEARCH_API_KEY to invalidate any leaked credentials.
  • Restrict or sanitize the tool schema so the tool enforces proper validation to prevent SSRF.

Generated by OpenCVE AI on July 31, 2026 at 03:04 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': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Strands Agents is an open-source Python SDK for building and running AI agents. The strands-agents-tools package provides pre-built tools for use with the SDK, including the elasticsearch_memory tool for agent memory storage. We identified CVE-2026-15746, a server-side request forgery (SSRF) issue in the elasticsearch_memory tool. The tool exposed its connection parameters (es_url, cloud_id, api_key) as fields the large language model (LLM) could control through the tool schema. When a caller omitted the api_key parameter, the tool fell back to the operator's ELASTICSEARCH_API_KEY environment variable and sent it to whichever host the LLM specified. A crafted prompt could cause the tool to connect to a threat-actor-controlled server and disclose the operator's Elasticsearch API key in the Authorization header. We recommend you upgrade to strands-agents-tools version 0.7.0 or later. As a precautionary measure, we recommend all operators rotate their ELASTICSEARCH_API_KEY, even if there is no indication the credential was exposed.
Title Credential disclosure in Strands Agents Tools elasticsearch_memory tool
First Time appeared Amazon
Amazon strands-agents-tools
Weaknesses CWE-918
CPEs cpe:2.3:a:amazon:strands-agents-tools:*:*:*:*:*:*:*:*
Vendors & Products Amazon
Amazon strands-agents-tools
References
Metrics cvssV3_1

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

cvssV4_0

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

Weaknesses
  • CWE-918

    Server-Side Request Forgery (SSRF)

Sources

Status
PUBLISHED
Assigner
AMZN
Published
Updated
Jul 15, 2026, 6:54 PM
Reserved
Jul 14, 2026, 2:55 PM
Status
Awaiting Analysis
Published
Jul 15, 2026, 7:16 PM
Modified
Oct 24, 2026, 9:10 PM