Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsLearn about Incorrect Default Permissions vulnerabilities in an interactive lesson.
Start learningUpgrade strands-agents to version 1.48.0 or higher.
strands-agents is an A model-driven approach to building AI agents in just a few lines of code
Affected versions of this package are vulnerable to Incorrect Default Permissions via FileSessionManager in strands/session/file_session_manager.py, where the _read_file and _write_file methods do not check whether the target path is a symbolic link before performing file operations. A local attacker who can place a symlink at a session file path can redirect reads or writes to arbitrary files accessible by the victim process, enabling disclosure of sensitive file contents. The default storage directory was also placed in the world-writable /tmp, increasing exposure to symlink-planting attacks.