karo Metacharacter Handling Remote Command Execution
Critical severity
GitHub Reviewed
Published
May 14, 2022
to the GitHub Advisory Database
•
Updated Mar 29, 2023
Description
Published by the National Vulnerability Database
Oct 5, 2018
Published to the GitHub Advisory Database
May 14, 2022
Reviewed
Mar 29, 2023
Last updated
Mar 29, 2023
The karo gem through 2.5.2 for Ruby allows Remote command injection via the host field.
A flaw in
db.rb
is triggered when handling metacharacters. This may allow a remote attacker to execute arbitrary commands.In particular lines 76 and 95 (as of
2014-06-01
) pass unsanitized user supplied input to the command line.If this gem is used in the context of a rails application malicious input could lead to remote command injection. As of version 2.5.2 the affected code lines have not changed.
References