Google ADK TypeScriptに任意ファイル読み書きの欠陥、0.6.0で修正
Summary
Google ADK TypeScript(@google/adk)の0.4.0以上0.6.0未満で、FileArtifactServiceを有効にしてADK APIサーバーを公開していると、認証なしで保存領域の外のファイルを読み書きされるおそれがあります。既定のInMemoryArtifactServiceを使っている環境は影響を受けません。該当する場合は0.6.0以降へ更新し、APIサーバーの公開範囲も見直してください。
AI summary
Written by an external AI model and may contain mistakes. Check the original description and references below before acting on it.
Google ADK TypeScript(@google/adk)の0.4.0以上0.6.0未満で、FileArtifactServiceを有効にしてADK APIサーバーを公開していると、認証なしで保存領域の外のファイルを読み書きされるおそれがあります。既定のInMemoryArtifactServiceを使っている環境は影響を受けません。該当する場合は0.6.0以降へ更新し、APIサーバーの公開範囲も見直してください。
Affected packages
| Ecosystem | Package | Affected | Fixed |
|---|---|---|---|
| ADK TypeScript (@google/adk) |
≥ 0.4.0, < 0.6.0 |
0.6.0 |
Original description The description as published by the source.
Path Traversal (CWE-22) in FileArtifactService in Google ADK TypeScript (@google/adk) versions 0.4.0 before 0.6.0 allows a remote unauthenticated attacker to read files matching the artifact directory layout or write files (when an agent tool invokes saveArtifact) outside the intended artifact storage root via crafted relative or percent-encoded path traversal sequences (such as ../ or ..%2F) in the userId or sessionId parameters when the ADK API server is exposed with the non-default FileArtifactService enabled. Applications using the default InMemoryArtifactService are unaffected. Upgrade to @google/adk version 0.6.0 or later.
Source: GitHub Security Advisories (Global) NVD GitHub Advisory
References
- advisory github.com
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- patch github.com
- patch github.com
- patch github.com
- web github.com