---
schema_version: '1.0'
id: security-20261028-f4084e
title: 'GHSA-763v-5pjm-fx36: Strands Agents: Default FileSessionManager storage is
  world-readable on shared systems'
url: https://osv.dev/vulnerability/GHSA-763v-5pjm-fx36
url_hash: f4084e86ef9daed313abf6c1a4efab2e2079f91d1c76566830828f5e2224cff1
canonical_url: https://osv.dev/vulnerability/GHSA-763v-5pjm-fx36
source: osv:ghsa
category: security/library
category_raw: cve/library
region: null
tags:
- cve
- GHSA-763v-5pjm-fx36
- severity:CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
- strands-agents
- PyPI
lang: en
published_at: '2026-10-27T15:34:28Z'
fetched_at: '2026-10-28T12:20:31.238721Z'
updated_at: '2026-10-28T16:06:08Z'
status: published
content_hash: 78a16b5178e5de89912c1f307f27170d34720755600881dccf3a85f5c58d4837
content_changed_at: null
license_note: full
summary: 'Strands Agents: Default FileSessionManager storage is world-readable on
  shared systems'
summary_source: rss
summary_en: 'Strands Agents: Default FileSessionManager storage is world-readable
  on shared systems'
summary_omitted_reason: null
redistribution: true
keywords_en:
- Agents
- Cold Storage
- cve
- Default
- DefaultAvatarIcon
- FileSessionManager
- GHSA-763v-5pjm-fx36
- ICE Agents
- library vulnerability
- PyPI
- PyPIのBrotliパッケージ
- severity:CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
- shared
- Shay McVeigh
- software security
- storage
- Strands
- strands-agents
- systems
- world-readable
entities_en:
- name: Cold Storage
  type: organization
- name: DefaultAvatarIcon
  type: artifact
- name: ICE Agents
  type: organization
- name: PyPIのBrotliパッケージ
  type: organization
- name: Shay McVeigh
  type: person
- name: Strands
  type: organization
topics_en:
- library vulnerability
- software security
numeric_facts: []
entities:
- name: Shay McVeigh
  type: person
- name: PyPIのBrotliパッケージ
  type: organization
- name: Strands
  type: organization
- name: ICE Agents
  type: organization
- name: DefaultAvatarIcon
  type: artifact
- name: Cold Storage
  type: organization
key_facts: []
related: []
related_auto:
- name: Sheng Siong
  type: organization
  weight: 8.6
- name: Giant
  type: organization
  weight: 8.3
computed_at: '2026-10-28T16:05:48Z'
---

# GHSA-763v-5pjm-fx36: Strands Agents: Default FileSessionManager storage is world-readable on shared systems

## TL;DR
Strands Agents: Default FileSessionManager storage is world-readable on shared systems

## Key Points
- cve / GHSA-763v-5pjm-fx36 / severity:CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N / strands-agents / PyPI

## Details
**Severity:** CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
**Advisory:** GHSA-763v-5pjm-fx36

**Details:**
There is a local confidentiality issue in the default `FileSessionManager` storage behavior. By default it writes session data under `/tmp/strands/sessions` and relies on the process umask for directory and file permissions. On systems using the common `umask 022`, the session directories are `0755` and JSON files are `0644`, so other local users can read persisted agent session data.

This matters on shared developer machines, CI hosts, notebooks, jump boxes, and multi-user GPU servers. Session storage is intended to persist conversation/history/state, so it can contain prompts, model output, tool inputs/outputs, intermediate state, and secrets that pass through the agent.

Relevant code:
- `strands-py/src/strands/session/file_session_manager.py:58`: default storage path is `os.path.join(tempfile.gettempdir(), "strands/sessions")`.
- `strands-py/src/strands/session/file_session_manager.py:118`: creates parent directories without a private mode.
- `strands-py/src/strands/session/file_session_manager.py:121`: writes JSON files via normal `open(..., "w")`.
- `strands-py/src/strands/session/file_session_manager.py:131`: creates session directories without a private mode.

Local reproduction with `umask 022`:

```text
default_storage_dir= /tmp/strands/sessions
0o755 /tmp/strands/sessions
0o755 /tmp/strands/sessions/session_codex_perm_poc
0o644 /tmp/strands/sessions/session_codex_perm_poc/session.json
file_contains_secret= True
```

The fixture wrote a fake secret into the session dict to show that sensitive session fields are readable through the resulting file.

Suggested fixes:
- Use a private per-user data directory by default rather than `/tmp`, or create `/tmp/strands` and descendants with `0700`.
- Write session JSON atomically with `0600` permissions.
- Consider refusing to use an existing default storage directory if it is not owned by the current user or is group/world accessible.
- Document that callers should set `storage_dir` explicitly when they need shared storage.

This was reproduced on commit `dd7b41de38cb`.

**References:**
- https://github.com/strands-agents/harness-sdk/security/advisories/GHSA-763v-5pjm-fx36
- https://github.com/strands-agents/harness-sdk/pull/2937
- https://github.com/strands-agents/harness-sdk/commit/8658b9e0d57427b77b69343262184d76d8e63e8f
- https://github.com/strands-agents/harness-sdk
- https://github.com/strands-agents/harness-sdk/releases/tag/python/v1.48.0

_Data: OSV.dev (upstream: ghsa) — https://osv.dev/vulnerability/GHSA-763v-5pjm-fx36_

## Source
元記事: [GHSA-763v-5pjm-fx36: Strands Agents: Default FileSessionManager storage is world-readable on shared systems](https://osv.dev/vulnerability/GHSA-763v-5pjm-fx36) — published 2026-10-27T15:34:28Z
