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

GMS-2022-514: Arbitrary shell execution

March 26, 2022

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

References

  • github.com/FriendsOfPHP/security-advisories/blob/master/squizlabs/php_codesniffer/2017-03-01.yaml
  • github.com/advisories/GHSA-mhfv-8rc9-w38c
  • github.com/squizlabs/PHP_CodeSniffer/releases/tag/2.8.1

Code Behaviors & Features

Detect and mitigate GMS-2022-514 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 1.0.0 before 2.8.1

Fixed versions

  • 2.8.1

Solution

Upgrade to version 2.8.1 or above.

Source file

packagist/squizlabs/php_codesniffer/GMS-2022-514.yml

Spotted a mistake? Edit the file on GitLab.

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

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