{"id":"GHSA-r6v3-hpxj-r8rv","summary":"Code Injection in PyXDG","details":"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.","aliases":["CVE-2019-12761","PYSEC-2019-199","SNYK-PYTHON-PYXDG-174562"],"modified":"2024-10-16T02:18:49.741588Z","published":"2019-06-07T20:56:27Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2019-06-07T10:24:55Z","nvd_published_at":"2019-06-06T19:29:00Z","cwe_ids":["CWE-94"],"severity":"HIGH"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2019-12761"},{"type":"WEB","url":"https://gist.github.com/dhondta/b45cd41f4186110a354dc7272916feba"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/pyxdg/PYSEC-2019-199.yaml"},{"type":"PACKAGE","url":"https://github.com/takluyver/pyxdg"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2019/06/msg00006.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2021/08/msg00003.html"},{"type":"WEB","url":"https://snyk.io/vuln/SNYK-PYTHON-PYXDG-174562"}],"affected":[{"package":{"name":"pyxdg","ecosystem":"PyPI","purl":"pkg:pypi/pyxdg"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.26"}]}],"versions":["0.19","0.20","0.21","0.22","0.23","0.24","0.25"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2019/06/GHSA-r6v3-hpxj-r8rv/GHSA-r6v3-hpxj-r8rv.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H"}]}