Summary
It was discovered that ruby-git passed the remote argument of its fetch
function to the git fetch command in a way that allowed additional options
to be set. An attacker could possibly use this issue to execute arbitrary
commands. (CVE-2022-25648)
It was discovered that ruby-git incorrectly handled certain file names when
loading a repository. If a user were tricked into loading a repository
containing a specially crafted file name, an attacker could possibly use
these issues to execute arbitrary Ruby code. (CVE-2022-46648,
CVE-2022-47318)
Fixed packages 4
| Release | Package | Fixed in |
|---|---|---|
| Ubuntu · Pro 16.04 LTS Pro:16.04:LTS | ruby-git | 1.2.8-1ubuntu0.16.04.1~esm1 |
| Ubuntu · Pro 18.04 LTS Pro:18.04:LTS | ruby-git | 1.2.8-1ubuntu0.18.04.1~esm1 |
| Ubuntu · Pro 20.04 LTS Pro:20.04:LTS | ruby-git | 1.6.0+0-1ubuntu0.1~esm1 |
| Ubuntu · Pro 22.04 LTS Pro:22.04:LTS | ruby-git | 1.9.1-1ubuntu0.1~esm1 |
Vulnerabilities 3
-
High 8.8
Code injection in ruby git
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.
-
High 8.1
Command Injection
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. …
-
High 8.0
ruby-git has potential remote code execution vulnerability
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.