# GHSA-3988-h75v-hwf6: 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:45.000Z
- Modified: 2024-12-05T05:40:06.764Z

## Description

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

(As written by GitHub Advisory Database.)

## Affected

- squizlabs/php_codesniffer (Packagist): from 3.0.0 before 3.0.1

## References

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

## Sources

- GitHub Advisory Database: [GHSA-3988-h75v-hwf6](https://github.com/advisories/GHSA-3988-h75v-hwf6), CC-BY-4.0, modified 2024-12-05

---

Page: https://cve.day/GHSA-3988-h75v-hwf6 · Whole record: https://cve.day/GHSA-3988-h75v-hwf6.json · Rebuilt by cve.day 2026-11-25T22:56:30.876Z
