GHSA-5ww9-9qp2-x524

Suggest an improvement
Source
https://github.com/advisories/GHSA-5ww9-9qp2-x524
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/06/GHSA-5ww9-9qp2-x524/GHSA-5ww9-9qp2-x524.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-5ww9-9qp2-x524
Aliases
Published
2022-06-24T00:00:31Z
Modified
2023-11-08T04:09:39.112691Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Improper handling of double quotes in file name in Diffy in Windows environment
Details

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.

References

Affected packages

RubyGems / diffy

Package

Name
diffy
Purl
pkg:gem/diffy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.4.1

Affected versions

1.*

1.1.0

2.*

2.0.0
2.0.1
2.0.2
2.0.3
2.0.4
2.0.5
2.0.6
2.0.7
2.0.8
2.0.9
2.0.10
2.1.0
2.1.1
2.1.2
2.1.3
2.1.4

3.*

3.0.0
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5
3.0.6
3.0.7
3.1.0
3.2.0
3.2.1
3.3.0
3.4.0