RubySec

Providing security resources for the Ruby community

CVE-2022-33127 (diffy): Improper handling of double quotes in file name in Diffy in Windows environment

ADVISORIES

GEM

diffy

SEVERITY

CVSS v3.x: 9.8 (Critical)

PATCHED VERSIONS

  • >= 3.4.1

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.

RELATED