CVE-2026-27113Liquid Prompt arbitrary command injection via crafted Git branch names in gitstatusd…
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.
What to do
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | liquidprompt | Fix pending | UBUNTU-CVE-2026-27113 | |
| Ubuntu 26.04 | liquidprompt | Under investigation | UBUNTU-CVE-2026-27113 | |
| Ubuntu 25.10 | liquidprompt | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-27113 | |
| Ubuntu 24.04 | liquidprompt | Under investigation | UBUNTU-CVE-2026-27113 | |
| Ubuntu 22.04 | liquidprompt | Under investigation | UBUNTU-CVE-2026-27113 | |
| Ubuntu 20.04 | liquidprompt | Fix pending | UBUNTU-CVE-2026-27113 | |
| Ubuntu 18.04 | liquidprompt | Fix pending | UBUNTU-CVE-2026-27113 | |
| Ubuntu 16.04 | liquidprompt | Fix pending | UBUNTU-CVE-2026-27113 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- liquidprompt: affected: >= cf3441250bb5d8b45f6f8b389fcdf427a99ac28a, < a4f6b8d8c90b3eaa33d13dfd1093062ab9c4b30c
References
- https://github.com/liquidprompt/liquidprompt/security/advisories/GHSA-q6hm-vf4f-47jf
- https://github.com/liquidprompt/liquidprompt/commit/a4f6b8d8c90b3eaa33d13dfd1093062ab9c4b30c
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.