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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | ruby-diffy | No fix yet | — |
| Ubuntu 26.04 LTS | ruby-diffy | No fix yet | — |
| Ubuntu 25.10 | ruby-diffy | No fix yet | — |
| Ubuntu 24.04 LTS | ruby-diffy | No fix yet | — |
| Ubuntu 22.04 LTS | ruby-diffy | No fix yet | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | ruby-diffy | No fix yet | — |
| Ubuntu 18.04 LTS | ruby-diffy | No fix yet | — |
| Ubuntu 16.04 LTS | ruby-diffy | No fix yet | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| RubyGems | diffy | < 3.4.1 | 3.4.1 | GHSA-5ww9-9qp2-x524 |