Vulnerabilities · 2019 · Python
CVE-2019-12761
Python Pyxdg vulnerability
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.
Affected products
Pyxdg. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Python Pyxdg runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- gist.github.com/dhondta/b45cd41f4186110a354dc7272916feba · Exploit
- snyk.io/vuln/SNYK-PYTHON-PYXDG-174562 · Third Party Advisory
- lists.debian.org/debian-lts-announce/2019/06/msg00006.html
- lists.debian.org/debian-lts-announce/2021/08/msg00003.html
- nvd.nist.gov/vuln/detail/CVE-2019-12761
- github.com/pypa/advisory-database/tree/main/vulns/pyxdg/PYSEC-2019-199.yaml
- github.com/advisories/GHSA-r6v3-hpxj-r8rv
- nvd.nist.gov/vuln/detail/CVE-2019-12761
- cve.org/CVERecord?id=CVE-2019-12761
More vulnerabilities in Python products
CVE-2026-21441CVE-2025-66471CVE-2025-66418CVE-2025-50182CVE-2025-50181CVE-2025-48379CVE-2025-47273CVE-2025-13837All 231
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.