Property
Languageruby
Severitymedium
CWECWE-94: Improper Control of Generation of Code (‘Code Injection’)
OWASPA03:2021 - Injection
Confidence LevelLow
Impact LevelHigh
Likelihood LevelLow

Description#

Using the ‘syscall’ method in Ruby is unsafe because it allows direct system call execution, which can lead to serious security risks and is not portable across platforms. Safer alternatives like the Fiddle library should be used instead.

Impact#

If exploited, attackers could execute arbitrary system commands, potentially gaining unauthorized access, running malicious code, or compromising the entire server. This can lead to data breaches, service disruption, or full control over the affected application.