Skip to main content

Improper Control of Generation of Code ('Code Injection')


Severity High
Score 7.8/10


The "XSLoader::load" method in XSLoader in Perl does not properly locate ".so" files when called in a string eval, which might allow local users to Execute Arbitrary Code via a Trojan horse library under the current working directory. This issue affects Perl versions 5.23.0 prior to 5.24.1, 5.25.0 prior to 5.25.3, and XSLoader versions 0.04 through 0.24.

  • LOW
  • HIGH
  • NONE
  • LOW
  • HIGH
  • HIGH

CWE-94 - Code Injection

Code injection is a type of vulnerability that allows an attacker to execute arbitrary code. This vulnerability fully compromises the machine and can cause a wide variety of security issues, such as unauthorized access to sensitive information, manipulation of data, denial of service attacks etc. Code injection is different from command injection in the fact that it is limited by the functionality of the injected language (e.g. PHP), as opposed to command injection, which leverages existing code to execute commands, usually within the context of a shell.


Advisory Timeline

  • Published