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.test.osv.dev/v1/vulns/GHSA-5ww9-9qp2-x524
Aliases
Published
2022-06-24T00:00:31Z
Modified
2023-11-01T04:59:10.457219Z
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.

Database specific
{
    "nvd_published_at": "2022-06-23T17:15:00Z",
    "github_reviewed_at": "2022-06-25T07:23:10Z",
    "severity": "CRITICAL",
    "github_reviewed": true,
    "cwe_ids": []
}
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