{"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-05-20T16:06:42.276518320Z","published":"2022-04-19T17:15:00Z","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"}],"affected":[{"package":{"name":"ruby-git","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/ruby-git?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.2.8-1"],"ecosystem_specific":{"binaries":[{"binary_name":"ruby-git","binary_version":"1.2.8-1"}]},"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:18.04:LTS","purl":"pkg:deb/ubuntu/ruby-git?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.2.8-1"],"ecosystem_specific":{"binaries":[{"binary_name":"ruby-git","binary_version":"1.2.8-1"}]},"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:20.04:LTS","purl":"pkg:deb/ubuntu/ruby-git?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.2.8-1","1.6.0+0-1"],"ecosystem_specific":{"binaries":[{"binary_name":"ruby-git","binary_version":"1.6.0+0-1"}]},"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:22.04:LTS","purl":"pkg:deb/ubuntu/ruby-git?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.7.0-1","1.9.1-1"],"ecosystem_specific":{"binaries":[{"binary_name":"ruby-git","binary_version":"1.9.1-1"}]},"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:24.04:LTS","purl":"pkg:deb/ubuntu/ruby-git?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.13.1-1"],"ecosystem_specific":{"binaries":[{"binary_name":"ruby-git","binary_version":"1.13.1-1"}]},"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"}},{"package":{"name":"ruby-git","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/ruby-git?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.13.1-1"],"ecosystem_specific":{"binaries":[{"binary_name":"ruby-git","binary_version":"1.13.1-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-25648.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}