# GHSA-mhfv-8rc9-w38c: Arbitrary shell execution

- Severity: High (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2022-03-26T00:06:00.000Z
- Modified: 2024-12-05T05:39:47.186Z

## Description

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

(As written by GitHub Advisory Database.)

## Affected

- squizlabs/php_codesniffer (Packagist): from 1.0.0 before 2.8.1

## References

- <https://github.com/FriendsOfPHP/security-advisories/blob/master/squizlabs/php_codesniffer/2017-03-01.yaml> (web)
- <https://github.com/squizlabs/PHP_CodeSniffer> (package)
- <https://github.com/squizlabs/PHP_CodeSniffer/releases/tag/2.8.1> (web)

## Sources

- GitHub Advisory Database: [GHSA-mhfv-8rc9-w38c](https://github.com/advisories/GHSA-mhfv-8rc9-w38c), CC-BY-4.0, modified 2024-12-05

---

Page: https://cve.day/GHSA-mhfv-8rc9-w38c · Whole record: https://cve.day/GHSA-mhfv-8rc9-w38c.json · Rebuilt by cve.day 2026-11-25T22:56:32.581Z
