Description (CNA)
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 (CNA)
| Vendor / product | Versions |
|---|---|
| oraios / serena | affected 0 before 2.0.0 |
CWE
CWE-59
References
- https://github.com/oraios/serena/issues/2144
- https://github.com/oraios/serena/commit/6f20f9b822d85bb063008e786f808d04619dd54e
- https://github.com/oraios/serena/releases/tag/v2.0.0
- https://github.com/oraios/serena/blob/v1.7.0/src/serena/project.py
- https://github.com/oraios/serena
- https://www.vulncheck.com/advisories/serena-before-2.0.0-symlink-following-in-file-tools-allows-access-outside-project-root
ADP enrichment
No English description supplied.