{"id":"CVE-2019-12761","aliases":["CVE-2019-12761","GHSA-r6v3-hpxj-r8rv","PYSEC-2019-199","SNYK-PYTHON-PYXDG-174562"],"related":[],"kind":"vulnerability","state":"published","title":"Code Injection in PyXDG","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"Se descubrió un problema de inyección de código en PyXDG antes de 0.26 a través del código Python creado en un elemento de Categoría de un documento de Menú XML en un archivo .menú. XDG_CONFIG_DIRS debe configurarse para activar el análisis xdg.Menu.parse dentro del directorio que contiene este archivo. Esto es debido a la falta de desinfección en xdg / Menu.py antes de una llamada de evaluación.","source":"nvd"}],"published":"2019-06-06T18:55:27.000Z","modified":"2026-06-17T02:15:24.020Z","severity":{"scorer":"NVD","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:H/Au:N/C:P/I:P/A:P","score":5.1,"rating":"MEDIUM"}],"cwes":["CWE-94"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.26"}],"ecosystem":"PyPI","package":"pyxdg","purl":"pkg:pypi/pyxdg","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"0.26"}],"vendor":"python","product":"pyxdg","cpe":"cpe:2.3:a:python:pyxdg:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.26"}],"ecosystem":"PyPI","package":"pyxdg","purl":"pkg:pypi/pyxdg","source":"pysec"}],"references":[{"url":"https://gist.github.com/dhondta/b45cd41f4186110a354dc7272916feba","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://snyk.io/vuln/SNYK-PYTHON-PYXDG-174562","tags":["advisory","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://lists.debian.org/debian-lts-announce/2019/06/msg00006.html","tags":["mailing-list","web","x-refsource-mlist","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://lists.debian.org/debian-lts-announce/2021/08/msg00003.html","tags":["mailing-list","web","x-refsource-mlist","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-12761","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/pyxdg/PYSEC-2019-199.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/takluyver/pyxdg","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-r6v3-hpxj-r8rv","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2019-12761","url":"https://www.cve.org/CVERecord?id=CVE-2019-12761","licence":"CVE Terms of Use","modified":"2024-08-04T23:32:54.641Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-r6v3-hpxj-r8rv","url":"https://github.com/advisories/GHSA-r6v3-hpxj-r8rv","licence":"CC-BY-4.0","modified":"2024-10-15T16:46:05.959Z"},{"source":"nvd","name":"NVD","id":"CVE-2019-12761","url":"https://nvd.nist.gov/vuln/detail/CVE-2019-12761","licence":"Public domain","modified":"2026-06-17T02:15:24.020Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2019-199","url":"https://osv.dev/vulnerability/PYSEC-2019-199","licence":"CC-BY-4.0","modified":"2023-11-08T04:01:06.312Z"}],"updatedAt":"2026-11-25T22:57:45.124Z","epss":{"score":0.02105,"percentile":0.82272,"date":"2026-12-01T12:00:22.000Z"}}