{"id":"CVE-2022-33127","aliases":["EUVD-2022-5947","GHSA-5ww9-9qp2-x524","UBUNTU-CVE-2022-33127"],"status":"published","title":"Improper handling of double quotes in file name in Diffy in Windows environment","description":"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.","severity":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.01837,"percentile":0.79103,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"published":"2022-06-22T19:31:51Z","modified":"2026-10-28T02:30:45Z","fixes":[{"ecosystem":"RubyGems","package":"diffy","fixed_in":["3.4.1"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"RubyGems","package":"diffy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.4.1"}]}]},{"source":"osv","ecosystem":"RubyGems","package":"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"]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"ruby-diffy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.0.6-1"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"ruby-diffy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.1.0-1"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"ruby-diffy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.2.1-1","3.3.0-1"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"ruby-diffy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.3.0-1"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"ruby-diffy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.4.2-1"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"ruby-diffy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.4.2-1"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"ruby-diffy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.4.4-1"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"ruby-diffy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.4.2-1","3.4.4-1"]}],"products":[{"vendor":"diffy_project","product":"diffy"}],"references":[{"url":"https://github.com/samg/diffy/blob/56fd935aea256742f7352b050592542d3d153bf6/CHANGELOG#L1","tags":["x_refsource_MISC","x_transferred","Release Notes","Third Party Advisory","web","report"]},{"url":"https://github.com/samg/diffy/commit/478f392082b66d38f54a02b4bb9c41be32fd6593","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-33127","tags":["advisory"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/diffy/CVE-2022-33127.yml","tags":["web"]},{"url":"https://github.com/advisories/GHSA-5ww9-9qp2-x524"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/33xxx/CVE-2022-33127.json","tags":["advisory"]},{"url":"https://github.com/samg/diffy","tags":["package"]},{"url":"https://ubuntu.com/security/CVE-2022-33127","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-33127","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2022-33127","description":"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.","status":"published","published":"2022-06-22T19:31:51Z","modified":"2024-08-03T08:01:20.337Z","updated_at":"2026-11-02T14:34:40.621895Z"}],"euvd":[{"id":"EUVD-2022-5947","description":"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.","status":"published","published":"2022-06-22T19:31:51Z","modified":"2024-08-03T08:01:20Z","updated_at":"2026-11-03T03:25:30.400668Z"}],"ghsa":[{"id":"GHSA-5ww9-9qp2-x524","title":"Improper handling of double quotes in file name in Diffy in Windows environment","description":"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.","status":"published","published":"2022-06-24T00:00:31Z","modified":"2023-01-27T05:04:48Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T14:36:20.985872Z"}],"nvd":[{"id":"CVE-2022-33127","description":"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.","status":"published","published":"2022-06-23T17:15:14.923Z","modified":"2026-06-17T04:48:29.06Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"updated_at":"2026-11-02T14:07:22.613788Z"}],"osv":[{"id":"GHSA-5ww9-9qp2-x524","title":"Improper handling of double quotes in file name in Diffy in Windows environment","description":"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.","status":"published","published":"2022-06-24T00:00:31Z","modified":"2024-12-08T05:29:46.95431Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:46:38.911014Z"},{"id":"UBUNTU-CVE-2022-33127","description":"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.","status":"published","published":"2022-06-23T17:15:00Z","modified":"2026-10-17T12:56:17.319673558Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T16:53:54.697021Z"},{"id":"CVE-2022-33127","description":"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.","status":"published","published":"2022-06-22T19:31:51Z","modified":"2026-10-28T02:30:45.091485454Z","updated_at":"2026-11-02T15:44:25.860945Z"}]}}
