Description
Serena before 2.0.0 contains an improper link resolution vulnerability that allows attackers to access files outside the project root by committing symlinks inside a repository. Project.is_path_in_project() normalizes paths lexically without resolving symlinks, so file tools like read_file and create_text_file can read or overwrite files such as SSH keys or cloud credentials.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| oraios | serena | < 2.0.0 | 2.0.0 |
References
- https://github.com/oraios/serena/issues/2144 issue-tracking
- https://github.com/oraios/serena/commit/6f20f9b822d85bb063008e786f808d04619dd54e patch
- serena v2.0.0 Release Notes release-notes
- https://github.com/oraios/serena/blob/v1.7.0/src/serena/project.py technical-description
- https://github.com/oraios/serena product
- VulnCheck Advisory: Serena before 2.0.0 Symlink Following in File Tools Allows Access Outside Project Root third-party-advisory