# CVE-2019-12761: Code Injection in PyXDG

- Severity: High 7.5 (CVSS:3.0, scored by NVD) `CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.10%, higher than 82% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2019-06-06T18:55:27.000Z
- Modified: 2026-06-17T02:15:24.020Z
- Also known as: GHSA-r6v3-hpxj-r8rv, PYSEC-2019-199, SNYK-PYTHON-PYXDG-174562
- Weaknesses: CWE-94
- Assigned by: mitre

## Description

A code injection issue was discovered in PyXDG before 0.26 via crafted Python code in a Category element of a Menu XML document in a .menu file. XDG_CONFIG_DIRS must be set up to trigger xdg.Menu.parse parsing within the directory containing this file. This is due to a lack of sanitization in xdg/Menu.py before an eval call.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- pyxdg (PyPI): before 0.26
- python pyxdg: before 0.26

## Every score

- GitHub: CVSS:3.0 7.5 High `CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.0 7.5 High `CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 5.1 Medium `AV:N/AC:H/Au:N/C:P/I:P/A:P`

## References

- <https://gist.github.com/dhondta/b45cd41f4186110a354dc7272916feba> (exploit, third-party-advisory, web)
- <https://snyk.io/vuln/SNYK-PYTHON-PYXDG-174562> (advisory, third-party-advisory, web)
- <https://lists.debian.org/debian-lts-announce/2019/06/msg00006.html> (mailing-list, web)
- <https://lists.debian.org/debian-lts-announce/2021/08/msg00003.html> (mailing-list, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2019-12761> (advisory)
- <https://github.com/pypa/advisory-database/tree/main/vulns/pyxdg/PYSEC-2019-199.yaml> (web)
- <https://github.com/takluyver/pyxdg> (package)
- <https://github.com/advisories/GHSA-r6v3-hpxj-r8rv> (advisory)

## Sources

- CVE List: [CVE-2019-12761](https://www.cve.org/CVERecord?id=CVE-2019-12761), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-r6v3-hpxj-r8rv](https://github.com/advisories/GHSA-r6v3-hpxj-r8rv), CC-BY-4.0, modified 2024-10-15
- NVD: [CVE-2019-12761](https://nvd.nist.gov/vuln/detail/CVE-2019-12761), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2019-199](https://osv.dev/vulnerability/PYSEC-2019-199), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2019-12761 · Whole record: https://cve.day/CVE-2019-12761.json · Rebuilt by cve.day 2026-11-25T22:57:45.124Z
