Skip to content
OpenAdvisories
Medium · 6.3 CVE-2026-27113 EUVD-2026-7517

Liquid Prompt arbitrary command injection via crafted Git branch names in gitstatusd backend

Published Feb 20, 2026 · Updated Feb 23, 2026 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
liquidprompt liquidprompt >= cf3441250bb5d8b45f6f8b389fcdf427a99ac28a, < a4f6b8d8c90b3eaa33d13dfd1093062ab9c4b30c —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 26.10 liquidprompt No fix yet —
Ubuntu 26.04 LTS liquidprompt No fix yet —
Ubuntu 25.10 liquidprompt No fix yet —
Ubuntu 24.04 LTS liquidprompt No fix yet —
Ubuntu 22.04 LTS liquidprompt No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS liquidprompt No fix yet —
Ubuntu 18.04 LTS liquidprompt No fix yet —
Ubuntu 16.04 LTS liquidprompt No fix yet —

References