PT-2019-4927 · Ruby · Minimagick
Harsh Jaiswal
·
Publicado
2019-05-26
·
Atualizado
2021-05-06
·
CVE-2019-13574
CVSS v2.0
9.3
Alta
| Vetor | AV:N/AC:M/Au:N/C:C/I:C/A:C |
Name of the Vulnerable Software and Affected Versions
MiniMagick versions prior to 4.9.4
Description
The issue exists due to insufficient input validation in MiniMagick. This allows a remote attacker to execute arbitrary code. In the
lib/mini magick/image.rb file, a fetched remote image filename can cause remote command execution because Image.open input is directly passed to Kernel#open, which accepts a | character followed by a command.Recommendations
For versions prior to 4.9.4, update to version 4.9.4 or later to resolve the issue. As a temporary workaround, consider restricting the use of the
Image.open function with remote image filenames until a patch is applied. Avoid using the Kernel#open function with untrusted input to minimize the risk of exploitation.Exploit
Correção
OS Command Injection
RCE
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾
Identificadores relacionados
Produtos afetados
Minimagick