{"id":"CVE-2019-12761","published":"2019-06-06T18:55:27Z","modified":"2024-08-04T23:32:54Z","title":"A code injection issue was discovered in PyXDG before 0.26 via crafted Python code in a Category element of a Menu XML…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.02105,"percentile":0.82197,"provenance":"source"},"cwes":[],"references":[{"url":"https://gist.github.com/dhondta/b45cd41f4186110a354dc7272916feba","tags":["x_refsource_MISC"]},{"url":"https://snyk.io/vuln/SNYK-PYTHON-PYXDG-174562","tags":["x_refsource_MISC"]},{"url":"https://lists.debian.org/debian-lts-announce/2019/06/msg00006.html","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.debian.org/debian-lts-announce/2021/08/msg00003.html","tags":["mailing-list","x_refsource_MLIST"]}],"priority":{"score":16.4,"factors":[{"name":"EPSS percentile","points":16.44}]},"affected":[{"ecosystem":"PyPI","package":"pyxdg","vulnerableRanges":["<0.26"],"patched":["0.26"],"from":["GHSA-r6v3-hpxj-r8rv","PYSEC-2019-199"],"provenance":"source"}],"summary":{"text":"A code injection flaw exists in the PyXDG library (versions before 0.26), specifically in xdg/Menu.py, where crafted Python code in a Category element of a Menu XML document is passed to an eval call without sanitization. An attacker who can place a crafted .menu file in a directory that PyXDG parses, with XDG_CONFIG_DIRS configured so that xdg.Menu.parse processes that directory, can get the injected code executed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:35:32Z"},"euvd":{"id":"EUVD-2019-0119","exploited":false,"provenance":"source"}}