{"id":"UBUNTU-CVE-2022-33127","details":"The function that calls the diff tool in Diffy 3.4.1 does not properly handle double quotes in a filename when run in a windows environment. This allows attackers to execute arbitrary commands via a crafted string.","modified":"2026-05-20T16:08:07.169711916Z","published":"2022-06-23T17:15:00Z","upstream":["CVE-2022-33127"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2022-33127"},{"type":"REPORT","url":"https://github.com/samg/diffy/commit/478f392082b66d38f54a02b4bb9c41be32fd6593"},{"type":"REPORT","url":"https://github.com/samg/diffy/blob/56fd935aea256742f7352b050592542d3d153bf6/CHANGELOG#L1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2022-33127"}],"affected":[{"package":{"name":"ruby-diffy","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/ruby-diffy?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.0.6-1"],"ecosystem_specific":{"binaries":[{"binary_name":"ruby-diffy","binary_version":"3.0.6-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-33127.json"}},{"package":{"name":"ruby-diffy","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/ruby-diffy?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.1.0-1"],"ecosystem_specific":{"binaries":[{"binary_version":"3.1.0-1","binary_name":"ruby-diffy"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-33127.json"}},{"package":{"name":"ruby-diffy","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/ruby-diffy?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.2.1-1","3.3.0-1"],"ecosystem_specific":{"binaries":[{"binary_name":"ruby-diffy","binary_version":"3.3.0-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-33127.json"}},{"package":{"name":"ruby-diffy","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/ruby-diffy?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.3.0-1"],"ecosystem_specific":{"binaries":[{"binary_name":"ruby-diffy","binary_version":"3.3.0-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-33127.json"}},{"package":{"name":"ruby-diffy","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/ruby-diffy?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.4.2-1"],"ecosystem_specific":{"binaries":[{"binary_name":"ruby-diffy","binary_version":"3.4.2-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-33127.json"}},{"package":{"name":"ruby-diffy","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/ruby-diffy?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.4.2-1"],"ecosystem_specific":{"binaries":[{"binary_name":"ruby-diffy","binary_version":"3.4.2-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-33127.json"}},{"package":{"name":"ruby-diffy","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/ruby-diffy?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.4.2-1","3.4.4-1"],"ecosystem_specific":{"binaries":[{"binary_name":"ruby-diffy","binary_version":"3.4.4-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-33127.json"}}],"schema_version":"1.7.5","severity":[{"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"}]}