Debian DLA-3303-1 : ruby-git - LTS security update

critical Nessus Plugin ID 170879

Synopsis

The remote Debian host is missing one or more security-related updates.

Description

The remote Debian 10 host has a package installed that is affected by multiple vulnerabilities as referenced in the dla-3303 advisory.

- The package git before 1.11.0 are vulnerable to Command Injection via git argument injection. When calling the fetch(remote = 'origin', opts = {}) function, the remote parameter is passed to the git fetch subcommand in a way that additional flags can be set. The additional flags can be used to perform a command injection. (CVE-2022-25648)

- ruby-git versions prior to v1.13.0 allows a remote authenticated attacker to execute an arbitrary ruby code by having a user to load a repository containing a specially crafted filename to the product. This vulnerability is different from CVE-2022-47318. (CVE-2022-46648)

- ruby-git versions prior to v1.13.0 allows a remote authenticated attacker to execute an arbitrary ruby code by having a user to load a repository containing a specially crafted filename to the product. This vulnerability is different from CVE-2022-46648. (CVE-2022-47318)

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

Solution

Upgrade the ruby-git packages.

For Debian 10 buster, these problems have been fixed in version 1.2.8-1+deb10u1.

See Also

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1009926

https://security-tracker.debian.org/tracker/source-package/ruby-git

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

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

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

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

https://packages.debian.org/source/buster/ruby-git

Plugin Details

Severity: Critical

ID: 170879

File Name: debian_DLA-3303.nasl

Version: 1.1

Type: local

Agent: unix

Published: 1/31/2023

Updated: 9/5/2023

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

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 5.9

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

CVSS Score Source: CVE-2022-25648

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 8.8

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

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

Vulnerability Information

CPE: cpe:/o:debian:debian_linux:10.0, p-cpe:/a:debian:debian_linux:ruby-git

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/31/2023

Vulnerability Publication Date: 4/19/2022

Reference Information

CVE: CVE-2022-25648, CVE-2022-46648, CVE-2022-47318