Strands Agents session files can be hijacked by local users via shared temp folder
On a shared computer, another user could tamper with the saved chat history of the AI agent, or overwrite files that belong to you. Updating the package closes this gap.
| Severity | HighCVSS 7.1 of 10 |
|---|---|
| Being exploited? | UnclearNo reports either way yet |
| Fix available? | Yesstrands-agents 1.48.0 · since 27 Oct 2026 |
| How sure is this? | Official sourceBacked by an official source |
How the attack works simplified
- 1Shared temp folderDefault session path is world-writable /tmp
- 2Plant symlinkAttacker predicts the .tmp file name
- 3App writes sessionWrite follows the symlink to a target file
- 4Overwrite or injectTarget file changed or history poisoned
- ResultAttacker alters files or controls agent behavior
What happened
The FileSessionManager stores session data in the world-writable /tmp/strands/sessions/ directory using predictable file names, and its write method follows symbolic links, allowing arbitrary file overwrite and injection of malicious session data.
Are you affected?
You are affected if you use the strands-agents Python package older than 1.48.0 with the default FileSessionManager storage location on a system where other local users or processes can access /tmp.
| Package / product | Affected versions | Fixed in |
|---|---|---|
| strands-agents · pip | < 1.48.0 | 1.48.0 |
What to do
- Update strands-agents to version 1.48.0 or later (pip install --upgrade strands-agents)
- If you cannot update yet, set a custom session storage directory that only your user can access instead of the default /tmp location
- Check /tmp/strands/sessions/ for files or symlinks you did not create and remove them
Timeline
- 27 Oct 2026, 15:34 UTCPublicly disclosed
- 27 Oct 2026, 15:34 UTCReported by GitHub Advisory · GitHub Advisory
- 27 Oct 2026, 15:35 UTCPicked up by Zero Radar
Sources 1 report, oldest first
Official vendor, government CERT or advisory database
- Strands Agents: Local Privilege Escalation via Symlink Attack in Default Session File StorageGitHub Advisory · 27 Oct 2026, 15:34 UTC
Technical details
- ID
- GHSA-3w55-933p-8pv5
- CVSS
- 7.1 / 10
- Disclosed
- 27 Oct 2026, 15:34 UTC
- On Zero Radar
- 27 Oct 2026, 15:35 UTC (1 min after disclosure)
- Last change
- 27 Oct 2026, 15:35 UTC
The plain-language parts and the attack diagram were written by an AI model (anthropic/claude-haiku-5.5) from the sources above. Facts like versions, exploitation and dates come from the sources themselves. How Zero Radar works