CVE-2022-33127
Improper handling of double quotes in file name in Diffy in Windows environment
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
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 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - CVSS 2.0
- 7.5 High
AV: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 Critical
CVSS: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 Critical
CVSS: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 Critical
CVSS: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
| Package | Affected | Fixed |
|---|---|---|
diffyRubyGems |
before 3.4.1 | 3.4.1 |
diffyRubyGems |
before 3.4.1, plus listed versions 1.1.02.0.02.0.12.0.102.0.2 Show 25 moreShow less2.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-diffyUbuntu:16.04:LTS |
All versions, plus listed versions 3.0.6-1 |
None known |
ruby-diffyUbuntu:18.04:LTS |
All versions, plus listed versions 3.1.0-1 |
None known |
ruby-diffyUbuntu:20.04:LTS |
All versions, plus listed versions 3.2.1-13.3.0-1 |
None known |
ruby-diffyUbuntu:22.04:LTS |
All versions, plus listed versions 3.3.0-1 |
None known |
ruby-diffyUbuntu:24.04:LTS |
All versions, plus listed versions 3.4.2-1 |
None known |
ruby-diffyUbuntu:25.10 |
All versions, plus listed versions 3.4.2-1 |
None known |
ruby-diffyUbuntu:26.10 |
All versions, plus listed versions 3.4.4-1 |
None known |
ruby-diffyUbuntu:26.04:LTS |
All versions, plus listed versions 3.4.2-13.4.4-1 |
None known |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE 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
github.com/samg/diffy/blob/56fd935aea256742f7352b050592542d3d153bf6/CHANGELOG
github.com/samg/diffy/commit/478f392082b66d38f54a02b4bb9c41be32fd6593
nvd.nist.gov/vuln/detail/CVE-2022-33127
github.com/rubysec/ruby-advisory-db/blob/master/gems/diffy/CVE-2022-33127.yml
github.com/advisories/GHSA-5ww9-9qp2-x524
github.com/CVEProject/cvelistV5/tree/main/cves/2022/33xxx/CVE-2022-33127.json
github.com/samg/diffy
ubuntu.com/security/CVE-2022-33127
cve.org/CVERecord?id=CVE-2022-33127