CVE-2022-42906

  • Severity 7.8 HIGH
  • Published
  • Updated
  • Status Modified
powerline-gitstatus (aka Powerline Gitstatus) before 1.3.2 allows arbitrary code execution. git repositories can contain per-repository configuration that changes the behavior of git, including running arbitrary commands. When using powerline-gitstatus, changing to a directory automatically runs git commands in order to display information about the current repository in the prompt. If an attacker can convince a user to change their current directory to one controlled by the attacker, such as in a shared filesystem or extracted archive, powerline-gitstatus will run arbitrary commands under the attacker's control. NOTE: this is similar to CVE-2022-20001.
Command Injection
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTPrimary
7.8 HIGH
LOCAL
LOW
NONE
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Base Score
CVSS 3.1
EPSS Score
Percentile: 42.58%
Affected Products (NVD)
VendorProductVersion
powerline_gitstatus_projectpowerline_gitstatus
𝑥
< 1.3.2
debiandebian_linux
10.0
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
powerline-gitstatus
bookworm
1.3.2-1
fixed
bullseye
1.3.2-0+deb11u1
fixed
sid
1.3.3-1
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
powerline-gitstatus
bionic
dne
focal
Fixed 1.3.1-1ubuntu0.20.04.1~esm1
released
jammy
Fixed 1.3.1-3ubuntu0.22.04.1~esm1
released
kinetic
ignored
lunar
ignored
mantic
ignored
noble
not-affected
oracular
ignored
plucky
ignored
questing
ignored
resolute
not-affected
stonking
not-affected
trusty
dne
xenial
dne