All vulnerabilities
GHSA-763v-5pjm-fx36

strands-agents: Strands Agents: Default FileSessionManager storage is world-readable on shared systems

strands-agentspipLibraries & packages
CVSS
5.7Medium
ExploitationNo known exploitationNot in CISA KEV, which does not prove it is unexploitedCISA KEV
Exploit odds (EPSS)No scoreNo FIRST EPSS score in this snapshot yet
Fixed in1.48.0Fixed versionGitHub
Published27 Oct 2026Updated 27 Oct 2026GitHub

What fixes it

  • 1.48.0strands-agents, pipGitHub
  • 1.48.0strands-agents, PyPIOSVpip install "strands-agents>=1.48.0"

A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.

Description

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:

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.

Text from GitHub Advisory Database

Affected versions 52

  • strands-agents, pip< 1.48.0GitHub
  • strands-agents, PyPIfrom first release, fixed in 1.48.0OSV
  • strands-agents, PyPI0.0.1OSV
  • strands-agents, PyPI0.1.0OSV
  • strands-agents, PyPI0.1.1OSV
  • strands-agents, PyPI0.1.2OSV
  • strands-agents, PyPI0.1.3OSV
  • strands-agents, PyPI0.1.4OSV
  • strands-agents, PyPI0.1.5OSV
  • strands-agents, PyPI0.1.6OSV
  • strands-agents, PyPI0.1.7OSV
  • strands-agents, PyPI0.1.8OSV
  • strands-agents, PyPI0.1.9OSV
  • strands-agents, PyPI0.2.0OSV
  • strands-agents, PyPI0.2.1OSV
  • strands-agents, PyPI0.3.0OSV
  • strands-agents, PyPI1.0.0OSV
  • strands-agents, PyPI1.0.1OSV
  • strands-agents, PyPI1.1.0OSV
  • strands-agents, PyPI1.10.0OSV
  • strands-agents, PyPI1.11.0OSV
  • strands-agents, PyPI1.12.0OSV
  • strands-agents, PyPI1.13.0OSV
  • strands-agents, PyPI1.14.0OSV
  • strands-agents, PyPI1.15.0OSV
  • strands-agents, PyPI1.16.0OSV
  • strands-agents, PyPI1.17.0OSV
  • strands-agents, PyPI1.18.0OSV
  • strands-agents, PyPI1.19.0OSV
  • strands-agents, PyPI1.2.0OSV
  • strands-agents, PyPI1.20.0OSV
  • strands-agents, PyPI1.21.0OSV
  • strands-agents, PyPI1.22.0OSV
  • strands-agents, PyPI1.23.0OSV
  • strands-agents, PyPI1.24.0OSV
  • strands-agents, PyPI1.25.0OSV
  • strands-agents, PyPI1.26.0OSV
  • strands-agents, PyPI1.27.0OSV
  • strands-agents, PyPI1.28.0OSV
  • strands-agents, PyPI1.29.0OSV
  • strands-agents, PyPI1.3.0OSV
  • strands-agents, PyPI1.30.0OSV
  • strands-agents, PyPI1.31.0OSV
  • strands-agents, PyPI1.32.0OSV
  • strands-agents, PyPI1.33.0OSV
  • strands-agents, PyPI1.34.0OSV
  • strands-agents, PyPI1.34.1OSV
  • strands-agents, PyPI1.35.0OSV
  • strands-agents, PyPI1.36.0OSV
  • strands-agents, PyPI1.37.0OSV
  • strands-agents, PyPI1.38.0OSV
  • strands-agents, PyPI1.39.0OSV

References 5