Every CVE Search/ Get API key

CVE-2022-33127

Improper handling of double quotes in file name in Diffy in Windows environment

9.8 CriticalFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
High
Integrity
High
Availability
High

Exploit likelihood

1.84%Up 1.0 points since Jun 23, 2022
90%50%10%1%

What each source reports

NVD Score used 9.8

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.

Record
CVE-2022-33127
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.0
7.5 HighAV:N/AC:L/Au:N/C:P/I:P/A:P
Updated
2026-11-02
CVE List No score

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.

Record
CVE-2022-33127
Updated
2026-11-02
EUVDEUVD-2022-5947 No score

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.

Record
EUVD-2022-5947
Updated
2026-11-03
GitHub AdvisoriesGHSA-5ww9-9qp2-x524 9.8

Improper handling of double quotes in file name in Diffy in Windows environment

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.

Record
GHSA-5ww9-9qp2-x524
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVGHSA-5ww9-9qp2-x524 9.8

Improper handling of double quotes in file name in Diffy in Windows environment

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.

Record
GHSA-5ww9-9qp2-x524
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVUBUNTU-CVE-2022-33127 9.8

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.

Record
UBUNTU-CVE-2022-33127
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSV No score

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.

Record
CVE-2022-33127
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
diffy
RubyGems
before 3.4.1
3.4.1
diffy
RubyGems
before 3.4.1, plus listed versions
1.1.02.0.02.0.12.0.102.0.2
Show 25 moreShow less
2.0.32.0.42.0.52.0.62.0.72.0.82.0.92.1.02.1.12.1.22.1.32.1.43.0.03.0.13.0.23.0.33.0.43.0.53.0.63.0.73.1.03.2.03.2.13.3.03.4.0
3.4.1
ruby-diffy
Ubuntu:16.04:LTS
All versions, plus listed versions
3.0.6-1
None known
ruby-diffy
Ubuntu:18.04:LTS
All versions, plus listed versions
3.1.0-1
None known
ruby-diffy
Ubuntu:20.04:LTS
All versions, plus listed versions
3.2.1-13.3.0-1
None known
ruby-diffy
Ubuntu:22.04:LTS
All versions, plus listed versions
3.3.0-1
None known
ruby-diffy
Ubuntu:24.04:LTS
All versions, plus listed versions
3.4.2-1
None known
ruby-diffy
Ubuntu:25.10
All versions, plus listed versions
3.4.2-1
None known
ruby-diffy
Ubuntu:26.10
All versions, plus listed versions
3.4.4-1
None known
ruby-diffy
Ubuntu:26.04:LTS
All versions, plus listed versions
3.4.2-13.4.4-1
None known

History

History
RecordedChangedSources
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2022-33127 is a critical vulnerability (CVSS 9.8) in Diffy Project Diffy, published June 22, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.84%, the 79th percentile. Fixed in diffy 3.4.1.

References

MoveEnter Open