SecurityContext

CVE-2026-27113: Liquid Prompt - Command Injection

  • Cve: CVE-2026-27113
  • Name: Liquid Prompt - Command Injection
  • 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.
  • Impact: Attackers can execute arbitrary code via crafted Git branch names, potentially compromising the user's shell environment.
  • Remediation: Update to commit a4f6b8d8c90b3eaa33d13dfd1093062ab9c4b30c or later, or disable LP_ENABLE_GITSTATUSD as a workaround.
  • Vulnerability type: command_injection
  • Vulnerability impact: remote_code_execution
  • Requirements: LP_ENABLE_GITSTATUSD enabled, gitstatusd installed and started, shell prompt substitution active.
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 6.3
  • Cvss vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N
  • Epss score: 0.00503
  • Epss percentile: 0.43878
  • Assignee: [email protected]
  • Published at: 2026-02-20T22:16:29Z
  • Age in days: 277
  • Modified at: 2026-06-17T10:26:41Z
  • References total: 2
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-27113
  • Nvd status: deferred
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, products total, products, rejected by nvd
  • Not known: requirement type, hackerone

Cwe

IdName
CWE-78Improper Neutralization of Special Elements used in an OS Command

References

UrlSourceTags
https://github.com/liquidprompt/liquidprompt/commit/a4f6b8d8c90b3eaa33d13dfd1093062ab9c4b30cnvd
https://github.com/liquidprompt/liquidprompt/security/advisories/GHSA-q6hm-vf4f-47jfnvd

Projects

RepositoryLink kindsIndexedUrl
liquidprompt/liquidpromptcommit, fix, security_advisoryyes/v1/repositories/liquidprompt/liquidprompt

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts