Skip to main content

Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')


Severity High
Score 8.8/10


Composer is a dependency manager for PHP. Users publishing a "composer.phar" to a public web-accessible server where the "composer.phar" can be executed as a php file may be subject to a remote code execution vulnerability if PHP also has `register_argc_argv` enabled in "php.ini". Users are advised to upgrade. Users unable to upgrade should make sure `register_argc_argv` is disabled in "php.ini", and avoid publishing "composer.phar" to the web as this is not best practice. This vulnerability affects composer/composer versions through 1.10.26, 2.0.0-alpha1 through 2.2.21, and 2.3.0-RC1 through 2.6.3.

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

CWE-74 - Injection

Listed as the number one web application security risk on the 'OWASP Top Ten', injection attacks are widespread and dangerous, especially in legacy applications. Injection attacks are a class of vulnerabilities in which an attacker injects untrusted data into a web application that gets processed by an interpreter, altering the program's execution. This can result in data loss/theft, loss of data integrity, denial of service, and even compromising the entire system.

Advisory Timeline

  • Published