# GHSA-77mv-mp2j-gxxh: pygmentize Remote Code Execution

- Severity: High 8.1 (CVSS:3.1, scored by GitHub) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2024-05-15T17:36:47.000Z
- Modified: 2024-11-29T05:25:19.558Z

## Description

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

(As written by GitHub Advisory Database.)

## Affected

- 3f/pygmentize (Packagist): before 1.2

## References

- <https://github.com/dedalozzo/pygmentize/issues/1> (web)
- <https://github.com/dedalozzo/pygmentize/pull/3> (web)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/3f/pygmentize/2017-05-15.yaml> (web)
- <https://github.com/dedalozzo/pygmentize> (package)

## Sources

- GitHub Advisory Database: [GHSA-77mv-mp2j-gxxh](https://github.com/advisories/GHSA-77mv-mp2j-gxxh), CC-BY-4.0, modified 2024-11-29

---

Page: https://cve.day/GHSA-77mv-mp2j-gxxh · Whole record: https://cve.day/GHSA-77mv-mp2j-gxxh.json · Rebuilt by cve.day 2026-11-25T22:56:31.431Z
