9.8critical
Improper handling of double quotes in file name in Diffy in Windows environment
- Severity
- 9.8critical CVSS:3.1 by NVD
- Exploit likelihood
- 2.10% (higher than 82% of CVEs)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-5ww9-9qp2-x524
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| diffy (RubyGems) | before 3.4.1 | GitHub Advisory Database |
| diffy_project diffy | 3.4.1 | NVD |
All scores
| GitHub | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.5high CVSS:2.0 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
What each source says
CVE List
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.
GitHub Advisory Database
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.
NVD (es)
La función que llama a la herramienta diff en Diffy versión 3.4.1, no maneja correctamente las comillas dobles en un nombre de archivo cuando se ejecuta en un entorno Windows. Esto permite a atacantes ejecutar comandos arbitrarios por medio de una cadena diseñada
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-33127 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-5ww9-9qp2-x524 changed 2024-12-08 | CC-BY-4.0 |
| NVD | CVE-2022-33127 changed 2026-06-17 | Public domain |