CVE-2026-27113 Details
Description
Liquid Prompt is an adaptive prompt for Bash and Zsh. Starting in commit cf3441250bb5d8b45f6f8b389fcdf427a99ac28a and prior to commit a4f6b8d8c90b3eaa33d13dfd1093062ab9c4b30c on the master branch, arbitrary command injection can lead to code execution when a user enters a directory in a Git repository containing a crafted branch name. Exploitation requires the LP_ENABLE_GITSTATUSD config option to be enabled (enabled by default), gitstatusd to be installed and started before Liquid Prompt is loaded (not the default), and shell prompt substitution to be active (enabled by default in Bash via "shopt -s promptvars", not enabled by default in Zsh). A branch name containing shell syntax such as "$(...)" or backtick expressions in the default branch or a checked-out branch will be evaluated by the shell when the prompt is rendered. No stable release is affected; only the master branch contains the vulnerable commit. Commit a4f6b8d8c90b3eaa33d13dfd1093062ab9c4b30c contains a fix. As a workaround, set the LP_ENABLE_GITSTATUSD config option to 0.
A command injection vulnerability allowing arbitrary code execution has been identified in Liquid Prompt, an adaptive prompt for Bash and Zsh. This issue is present in the master branch, specifically in the commit range starting from cf3441250bb5d8b45f6f8b389fcdf427a99ac28a and prior to a4f6b8d8c90b3eaa33d13dfd1093062ab9c4b30c. The vulnerability arises when a user navigates to a directory within a Git repository that contains a manipulated branch name. Exploitation requires the LP_ENABLE_GITSTATUSD configuration option to be active (which it is by default), and for gitstatusd to be installed and running before Liquid Prompt is loaded (a non-default setting). Additionally, shell prompt substitution must be enabled, which is the default in Bash but not in Zsh. When these conditions are met, a branch name featuring shell syntax, such as command substitution or backtick expressions, will be executed by the shell as the prompt is rendered.
Users can update to the latest commit on the master branch, where this vulnerability has been patched. If using a stable version or a packaged version, no action is needed as those versions are not vulnerable.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Feb 20, 2026CISA-ADP
Assessed Feb 23, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/liquidprompt/liquidprompt/commit/a4f6b8d8c90b3eaa33d13dfd1093062ab9c4b30c | [email protected] | Source CodeVendor |
| https://github.com/liquidprompt/liquidprompt/security/advisories/GHSA-q6hm-vf4f-47jf | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Liquid Prompt | All versions |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Feb 20, 2026 | New CVE Received | [email protected] |
Volerion