Debian DLA-3277-1 : powerline-gitstatus - LTS security update

high Nessus Plugin ID 170459

Synopsis

The remote Debian host is missing a security-related update.

Description

The remote Debian 10 host has packages installed that are affected by a vulnerability as referenced in the dla-3277 advisory.

- 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. (CVE-2022-42906)

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.

Solution

Upgrade the powerline-gitstatus packages.

For Debian 10 buster, this problem has been fixed in version 1.3.2-0+deb10u1.

See Also

http://www.nessus.org/u?356d7b2f

https://www.debian.org/lts/security/2023/dla-3277

https://security-tracker.debian.org/tracker/CVE-2022-42906

https://packages.debian.org/source/buster/powerline-gitstatus

Plugin Details

Severity: High

ID: 170459

File Name: debian_DLA-3277.nasl

Version: 1.1

Type: local

Agent: unix

Published: 1/24/2023

Updated: 9/6/2023

Supported Sensors: Frictionless Assessment Agent, Nessus Agent, Agentless Assessment, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: High

Base Score: 7.2

Temporal Score: 5.6

Vector: CVSS2#AV:L/AC:L/Au:N/C:C/I:C/A:C

CVSS Score Source: CVE-2022-42906

CVSS v3

Risk Factor: High

Base Score: 7.8

Temporal Score: 7

Vector: CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

CPE: p-cpe:/a:debian:debian_linux:powerline-gitstatus, p-cpe:/a:debian:debian_linux:python3-powerline-gitstatus, cpe:/o:debian:debian_linux:10.0

Required KB Items: Host/local_checks_enabled, Host/Debian/release, Host/Debian/dpkg-l

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 1/20/2023

Vulnerability Publication Date: 10/13/2022

Reference Information

CVE: CVE-2022-42906