VDB
Sign up
HIGH

GHSA-mhfv-8rc9-w38c

Arbitrary shell execution

Quick fix

GHSA-mhfv-8rc9-w38c — squizlabs/php_codesniffer: upgrade to the fixed version with the command below.

composer require squizlabs/php_codesniffer:^2.8.1

Details

Uses of shell_exec() and exec() were not escaping filenames and configuration settings in most cases

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/squizlabs/php_codesniffer
Introduced in: 1.0.0Fixed in: 2.8.1
Fixcomposer require squizlabs/php_codesniffer:^2.8.1

References