Remote Code Execution (RCE) Affecting diffy package, versions <3.4.1


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    EPSS
    0.19% (58th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-RUBY-DIFFY-2934981
  • published 24 Jun 2022
  • disclosed 24 Jun 2022
  • credit Unknown

How to fix?

Upgrade diffy to version 3.4.1 or higher.

Overview

diffy is a Convenient diffing gem in ruby.

Affected versions of this package are vulnerable to Remote Code Execution (RCE). The function that calls the diff tool 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.

Note: This vulnerability is applicable in Windows only.

CVSS Scores

version 3.1
Expand this section

Snyk

8.1 high
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    High
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    High
  • Integrity (I)
    High
  • Availability (A)
    High
Expand this section

NVD

9.8 critical
Expand this section

Red Hat

7.5 high