{"id":"GHSA-5ww9-9qp2-x524","summary":"Improper handling of double quotes in file name in Diffy in Windows environment","details":"The function that calls the diff tool in versions of Diffy prior to 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.","aliases":["CVE-2022-33127"],"modified":"2024-12-08T05:32:12.788464Z","published":"2022-06-24T00:00:31Z","database_specific":{"severity":"CRITICAL","github_reviewed":true,"github_reviewed_at":"2022-06-25T07:23:10Z","nvd_published_at":"2022-06-23T17:15:00Z","cwe_ids":[]},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-33127"},{"type":"WEB","url":"https://github.com/samg/diffy/commit/478f392082b66d38f54a02b4bb9c41be32fd6593"},{"type":"WEB","url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/diffy/CVE-2022-33127.yml"},{"type":"PACKAGE","url":"https://github.com/samg/diffy"},{"type":"WEB","url":"https://github.com/samg/diffy/blob/56fd935aea256742f7352b050592542d3d153bf6/CHANGELOG#L1"}],"affected":[{"package":{"name":"diffy","ecosystem":"RubyGems","purl":"pkg:gem/diffy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.4.1"}]}],"versions":["1.1.0","2.0.0","2.0.1","2.0.10","2.0.2","2.0.3","2.0.4","2.0.5","2.0.6","2.0.7","2.0.8","2.0.9","2.1.0","2.1.1","2.1.2","2.1.3","2.1.4","3.0.0","3.0.1","3.0.2","3.0.3","3.0.4","3.0.5","3.0.6","3.0.7","3.1.0","3.2.0","3.2.1","3.3.0","3.4.0"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/06/GHSA-5ww9-9qp2-x524/GHSA-5ww9-9qp2-x524.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}