Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. squizlabs/php_codesniffer
  4. ›
  5. GMS-2017-112

GMS-2017-112: Arbitrary shell execution

March 2, 2017

This release contains a fix for a security advisory related to the improper handling of shell commands. Uses of shell_exec() and exec() were not escaping filenames and configuration settings in most cases A properly crafted filename or configuration option would allow for arbitrary code execution when using some features.

References

  • github.com/squizlabs/PHP_CodeSniffer/releases/tag/2.8.1

Code Behaviors & Features

Detect and mitigate GMS-2017-112 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.8.1, all versions starting from 3.0.0a1 before 3.0.0rc4

Fixed versions

  • 2.8.1
  • 3.0.0RC4

Solution

Upgrade to versions 2.8.1, 3.0.0RC4 or above.

Source file

packagist/squizlabs/php_codesniffer/GMS-2017-112.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:59 +0000.