# GHSA-77MV-MP2J-GXXH: pygmentize Remote Code Execution

- Database: GitHub
- Severity: high (stated by ghsa, no CVSS score)
- Published: 2024-05-15
- Modified: 2024-11-29

## Affected versions

- 3f/pygmentize (Packagist): fixed in 1.2

## Description

pygmentize is prone to remote code execution due to an unsafe sanitazation of user input when passed to the `highlight` function.

## References

- https://github.com/dedalozzo/pygmentize/issues/1
- https://github.com/dedalozzo/pygmentize/pull/3
- https://github.com/FriendsOfPHP/security-advisories/blob/master/3f/pygmentize/2017-05-15.yaml
- https://github.com/dedalozzo/pygmentize

Page: https://cve.now/GHSA-77MV-MP2J-GXXH

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
