Technical impact
An improper link resolution flaw in the workspace boundary check of the shell command tool in Language Servers for AWS allows a crafted symbolic link to escape the workspace directory. This can cause the tool to read files located outside the intended workspace without prompting the user. The vulnerability is a classic path traversal weakness (CWE-59) and may expose sensitive configuration or source files, impacting confidentiality.
Affected Systems
AWS Language Servers for AWS, including the aws/lsp-codewhisperer project and the aws/language-servers package, are affected. Any deployment of these tools with a version prior to 1.81.0 (npm @aws/lsp-codewhisperer 0.0.130) is vulnerable. The issue was addressed in release 1.81.0.
Risk and Exploitability
The vulnerability carries a CVSS score of 6.7, indicating a medium severity level. Its EPSS score is below 1% and it is not listed in the CISA KEV catalog, suggesting that exploitation is currently unlikely but still possible in a context where a threat actor can run the shell command tool with access to create symbolic links within a workspace. An attacker could craft a symlink pointing to sensitive files outside the workspace and then trigger a shell command that causes the language server to resolve the link, thereby leaking file contents.