{"id":"UBUNTU-CVE-2019-12761","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.","modified":"2026-01-30T02:34:20.795984Z","published":"2019-06-06T19:29:00Z","related":["USN-4700-1"],"upstream":["CVE-2019-12761"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2019-12761"},{"type":"REPORT","url":"https://snyk.io/vuln/SNYK-PYTHON-PYXDG-174562"},{"type":"REPORT","url":"https://gist.github.com/dhondta/b45cd41f4186110a354dc7272916feba"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-4700-1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2019-12761"}],"affected":[{"package":{"name":"pyxdg","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/pyxdg@0.25-4ubuntu0.14.04.1~esm1?arch=source&distro=trusty/esm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.25-4ubuntu0.14.04.1~esm1"}]}],"versions":["0.25-3","0.25-4"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro","binaries":[{"binary_name":"python-xdg","binary_version":"0.25-4ubuntu0.14.04.1~esm1"},{"binary_name":"python3-xdg","binary_version":"0.25-4ubuntu0.14.04.1~esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2019/UBUNTU-CVE-2019-12761.json"}},{"package":{"name":"pyxdg","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/pyxdg@0.25-4ubuntu0.16.04.1?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.25-4ubuntu0.16.04.1"}]}],"versions":["0.25-4"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"python-xdg","binary_version":"0.25-4ubuntu0.16.04.1"},{"binary_name":"python3-xdg","binary_version":"0.25-4ubuntu0.16.04.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2019/UBUNTU-CVE-2019-12761.json"}},{"package":{"name":"pyxdg","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/pyxdg@0.25-4ubuntu1.1?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.25-4ubuntu1.1"}]}],"versions":["0.25-4","0.25-4ubuntu1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_version":"0.25-4ubuntu1.1","binary_name":"python-xdg"},{"binary_name":"python3-xdg","binary_version":"0.25-4ubuntu1.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2019/UBUNTU-CVE-2019-12761.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"low"}]}