CyberRota Analysis
AI-GeneratedBash-it 3.2.0 is vulnerable to a terminal escape sequence injection due to improper handling of the requires-python field in the pyproject.toml file, allowing local attackers to inject arbitrary terminal control sequences. This vulnerability can lead to unauthorized command execution or manipulation of the terminal interface when a user enters a directory containing a malicious pyproject.toml. Users of Bash-it, particularly those managing environments with untrusted input, should prioritize patching this vulnerability to mitigate potential exploitation risks.
Public Exploit Signal
A public exploit, PoC, GitHub repository or Metasploit reference was detected for this CVE.
Note: these links are listed for security research and verification purposes only.
Original NVD Description
Bash-it 3.2.0 contains a terminal escape sequence injection vulnerability in the barbuk theme's Python virtualenv prompt segment that allows local attackers to inject arbitrary terminal control sequences by embedding escape sequences in the requires-python field of a pyproject.toml file. When a user navigates into a directory containing a maliciously crafted pyproject.toml, the unfiltered field value is read via awk and concatenated directly into PS1 through __prompt-command without stripping control characters, causing injected OSC or CSI sequences to be written to and interpreted by the terminal emulator on every prompt render.