CVEfocus › CVE database › CVE-2026-27113

CVE-2026-27113Liquid Prompt arbitrary command injection via crafted Git branch names in gitstatusd…

CVSS 6.3 MediumEPSS 0.9% (higher than 57% of CVEs)Published 2026-02-20Updated 2026-02-23Assigner: GitHub_M

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.

CWE-78

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

4Fix pending
3Under investigation
1Will not fix

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10liquidpromptFix pendingUBUNTU-CVE-2026-27113
Ubuntu 26.04liquidpromptUnder investigationUBUNTU-CVE-2026-27113
Ubuntu 25.10liquidpromptWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-27113
Ubuntu 24.04liquidpromptUnder investigationUBUNTU-CVE-2026-27113
Ubuntu 22.04liquidpromptUnder investigationUBUNTU-CVE-2026-27113
Ubuntu 20.04liquidpromptFix pendingUBUNTU-CVE-2026-27113
Ubuntu 18.04liquidpromptFix pendingUBUNTU-CVE-2026-27113
Ubuntu 16.04liquidpromptFix pendingUBUNTU-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.

References

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.