CVE-2022-33127 Improper handling of double quotes in file name in Diffy in Windows environment

Critical 9.8 Published Updated

Attackers can execute arbitrary commands on Windows systems by providing filenames with double quotes to the Diffy library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-33127?

CVE-2022-33127 is a critical command injection vulnerability in n/a, published on 22 Jun 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Which versions are affected by CVE-2022-33127?

2 open source packages ship an affected version, including diffy. It affects 1 product.

PackageAffectedFixed in
diffy RubyGemsAll versions3.4.1
diffy RubyGemsAll versions3.4.1

Products include Diffy Project Diffy.

How do I fix CVE-2022-33127?

Upgrade diffy to 3.4.1 or later.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2022-33127 being exploited?

There is no known exploitation of CVE-2022-33127 in the wild and no public exploit code.

Sources

Also known as GHSA-5ww9-9qp2-x524, UBUNTU-CVE-2022-33127.

Is CVE-2022-33127 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free