CVE-2022-33127
rubygem-diffy: remote code execution from user controlled diff file paths
Kaynağa göre önem derecesi
Trivy'nin kendi etiketi CRITICAL. Kritik diyenler: NVD, GHSA, Ruby Advisory DB. Daha düşük diyenler: Red Hat (düşük).
Açıklama
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.
Etkilenen paketler ve düzeltilmiş sürümler
| Kaynak | Paket | Düzeltildiği sürüm |
|---|---|---|
| rubygems::GitHub Security Advisory RubyGems | diffy | 3.4.1 |
| rubygems::Ruby Advisory Database | diffy | >= 3.4.1 |
Referanslar
- https://access.redhat.com/security/cve/CVE-2022-33127
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/diffy/CVE-2022-33127.yml
- https://github.com/samg/diffy
- https://github.com/samg/diffy/blob/56fd935aea256742f7352b050592542d3d153bf6/CHANGELOG#L1
- https://github.com/samg/diffy/commit/478f392082b66d38f54a02b4bb9c41be32fd6593
- https://nvd.nist.gov/vuln/detail/CVE-2022-33127
- https://www.cve.org/CVERecord?id=CVE-2022-33127