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

GMS-2017-132: Shell command injection

May 15, 2017

A properly crafted filename would allow for arbitrary code execution when using the --filter=gitmodified command line option

References

  • github.com/squizlabs/PHP_CodeSniffer/commit/7ce7bb942f5667724e81a3ea99e805a30be6c05b
  • github.com/squizlabs/PHP_CodeSniffer/releases/tag/3.0.1

Code Behaviors & Features

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

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 3.0.0a1 before 3.0.1

Fixed versions

  • 3.0.1

Solution

Upgrade to version 3.0.1 or above.

Source file

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

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:16:16 +0000.