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

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.10%, higher than 82% of CVEs (2026-11-30)
- Published: 2022-06-22T19:31:51.000Z
- Modified: 2026-06-17T04:48:29.060Z
- Also known as: GHSA-5ww9-9qp2-x524
- Assigned by: mitre

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

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- diffy (RubyGems): before 3.4.1
- diffy_project diffy: 3.4.1

## Every score

- GitHub: 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`
- NVD: 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`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://github.com/samg/diffy/blob/56fd935aea256742f7352b050592542d3d153bf6/CHANGELOG#L1> (release-notes, third-party-advisory, web)
- <https://github.com/samg/diffy/commit/478f392082b66d38f54a02b4bb9c41be32fd6593> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-33127> (advisory)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/diffy/CVE-2022-33127.yml> (web)
- <https://github.com/samg/diffy> (package)

## Sources

- CVE List: [CVE-2022-33127](https://www.cve.org/CVERecord?id=CVE-2022-33127), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-5ww9-9qp2-x524](https://github.com/advisories/GHSA-5ww9-9qp2-x524), CC-BY-4.0, modified 2024-12-08
- NVD: [CVE-2022-33127](https://nvd.nist.gov/vuln/detail/CVE-2022-33127), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-33127 · Whole record: https://cve.day/CVE-2022-33127.json · Rebuilt by cve.day 2026-11-25T22:58:12.503Z
