CVE-2026-27113

Source
https://cve.org/CVERecord?id=CVE-2026-27113
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-27113.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-27113
Aliases
  • GHSA-q6hm-vf4f-47jf
Downstream
Published
2026-02-20T21:34:22.107Z
Modified
2026-02-24T02:35:44.879089Z
Severity
  • 6.3 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N CVSS Calculator
Summary
Liquid Prompt arbitrary command injection via crafted Git branch names in gitstatusd backend
Details

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 LPENABLEGITSTATUSD 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 LPENABLEGITSTATUSD config option to 0.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/27xxx/CVE-2026-27113.json",
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-78"
    ]
}
References

Affected packages

Git / github.com/liquidprompt/liquidprompt

Affected ranges

Type
GIT
Repo
https://github.com/liquidprompt/liquidprompt
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

v1.*
v1.12-beta.1
v1.12-rc.1
v1.12.0
v1.12.1
v2.*
v2.0.0
v2.0.0-beta.1
v2.0.0-beta.2
v2.0.0-rc.1
v2.0.1
v2.0.2
v2.0.3
v2.0.4
v2.0.5
v2.1.0
v2.1.0-beta.1
v2.1.0-rc.1
v2.1.1
v2.1.2
v2.2.0
v2.2.0-rc.1
v2.2.0-rc.2
v2.2.1
v_1.*
v_1.0
v_1.1
v_1.10
v_1.11
v_1.2
v_1.3
v_1.4
v_1.5
v_1.6
v_1.7
v_1.8
v_1.9

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-27113.json"