{"id":"UBUNTU-CVE-2022-25648","details":"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.","modified":"2026-12-02T02:19:08.013639312Z","published":"2022-04-19T17:15:00Z","related":["USN-9266-1"],"upstream":["CVE-2022-25648"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2022-25648"},{"type":"REPORT","url":"https://snyk.io/vuln/SNYK-RUBY-GIT-2421270"},{"type":"REPORT","url":"https://github.com/ruby-git/ruby-git/releases/tag/v1.11.0"},{"type":"REPORT","url":"https://github.com/ruby-git/ruby-git/pull/569"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2022-25648"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-9266-1"}],"affected":[{"package":{"name":"ruby-git","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/ruby-git?arch=source&distro=esm-apps-legacy%2Fxenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.8-1ubuntu0.16.04.1~esm1"}]}],"versions":["1.2.8-1"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro with Legacy support add-on: https://ubuntu.com/pro","binaries":[{"binary_name":"ruby-git","binary_version":"1.2.8-1ubuntu0.16.04.1~esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-25648.json"}},{"package":{"name":"ruby-git","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/ruby-git?arch=source&distro=esm-apps%2Fbionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.8-1ubuntu0.18.04.1~esm1"}]}],"versions":["1.2.8-1"],"ecosystem_specific":{"binaries":[{"binary_name":"ruby-git","binary_version":"1.2.8-1ubuntu0.18.04.1~esm1"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-25648.json"}},{"package":{"name":"ruby-git","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/ruby-git?arch=source&distro=esm-apps%2Ffocal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.6.0+0-1ubuntu0.1~esm1"}]}],"versions":["1.2.8-1","1.6.0+0-1"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_name":"ruby-git","binary_version":"1.6.0+0-1ubuntu0.1~esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-25648.json"}},{"package":{"name":"ruby-git","ecosystem":"Ubuntu:Pro:22.04:LTS","purl":"pkg:deb/ubuntu/ruby-git?arch=source&distro=esm-apps%2Fjammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.1-1ubuntu0.1~esm1"}]}],"versions":["1.7.0-1","1.9.1-1"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_version":"1.9.1-1ubuntu0.1~esm1","binary_name":"ruby-git"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-25648.json"}},{"package":{"name":"ruby-git","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/ruby-git?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.13.1-1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.13.1-1","binary_name":"ruby-git"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-25648.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"CNA"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"NVD"},{"type":"Ubuntu","score":"medium","source":"SELF"}]}