{"schemaVersion":3,"id":"CVE-2019-12761","aliases":["SUSE-SU-2022:2997-1","GHSA-r6v3-hpxj-r8rv","PYSEC-2019-199","SNYK-PYTHON-PYXDG-174562","UBUNTU-CVE-2019-12761","USN-4700-1","DEBIAN-CVE-2019-12761","DLA-1819-1","DLA-2727-1"],"status":"published","duplicateOf":null,"title":null,"description":"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.","dates":{"published":"2019-06-06T18:55:27.000Z","modified":"2024-08-04T23:32:54.641Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"3.0","versionLabel":"v3.0","source":"NVD","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.0","versionLabel":"v3.0","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":5.1,"severity":"medium","vector":"AV:N/AC:H/Au:N/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Pypi","score":7.5,"severity":"high","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":4.1,"impact":9.8,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Ubuntu","score":7.5,"severity":"high","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":4.1,"impact":9.8,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Debian","score":7.5,"severity":"high","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":4.1,"impact":9.8,"computed":true}]},"epss":{"probability":0.02105,"percentile":0.81429,"severity":"low","asOf":"2026-10-18T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-18T00:00:00.000Z","baselineScore":0.02105},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.02105,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.02105,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.02105,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.02105,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.02105,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.02105,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02105,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02183,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02105,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02105,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02105,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02105,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02105,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02105,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02105,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02105,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02105,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02105,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02105,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02105,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02105,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02105,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02105,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02105,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02105,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02105,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02105,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02105,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02105,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02105,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02105,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02105,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02105,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02105,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02105,"percentile":0.81429}],"last30":[{"date":"2026-09-18T00:00:00.000Z","score":0.02105,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.02105,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02105,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02183,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02105,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02105,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02105,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02105,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02105,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02105,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02105,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02105,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02105,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02105,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02105,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02105,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02105,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02105,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02105,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02105,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02105,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02105,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02105,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02105,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02105,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02105,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02105,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02105,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02105,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02105,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02105,"percentile":0.81429}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_DHONDTA_B45CD41F4186110A354DC7272916FEBA","name":"B45Cd41F4186110A354Dc7272916Feba","source":"github","url":"https://gist.github.com/dhondta/b45cd41f4186110a354dc7272916feba","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-94","name":"Improper Control of Generation of Code ('Code Injection')","description":"The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/94.html"}],"affected":[{"vendor":"debian","product":"pyxdg","name":"pyxdg","label":"pyxdg","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/pyxdg","purlType":"deb","versions":[{"text":"< 0.26-1","noFixRecorded":false,"fixedIn":null},{"text":"< 0.25-4+deb9u1","noFixRecorded":false,"fixedIn":null},{"text":"< 0.25-4+deb8u1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.26-1 | < 0.25-4+deb9u1 | < 0.25-4+deb8u1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"pyxdg","name":"pyxdg","label":"pyxdg","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/pyxdg","purlType":"deb","versions":[{"text":"< 0.25-4ubuntu0.14.04.1~esm1","noFixRecorded":false,"fixedIn":null},{"text":"< 0.25-4ubuntu0.16.04.1","noFixRecorded":false,"fixedIn":null},{"text":"< 0.25-4ubuntu1.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.25-4ubuntu0.14.04.1~esm1 | < 0.25-4ubuntu0.16.04.1 | < 0.25-4ubuntu1.1","eol":null,"hubHref":null},{"vendor":"PyPI","product":"pyxdg","name":"pyxdg","label":"pyxdg","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/pyxdg","purlType":"pypi","versions":[{"text":"< 0.26","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.26","eol":null,"hubHref":null},{"vendor":"python","product":"pyxdg","name":"pyxdg","label":"pyxdg","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 0.26","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.26","eol":null,"hubHref":"/vendor/python/pyxdg"},{"vendor":"suse","product":"python-pyxdg&distro=SUSE Enterprise Storage 6","name":"python-pyxdg","label":"python-pyxdg&distro=SUSE Enterprise Storage 6","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/python-pyxdg&distro=SUSE Enterprise Storage 6","purlType":"rpm","versions":[{"text":"< 0.25-150000.3.3.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.25-150000.3.3.1","eol":null,"hubHref":null},{"vendor":"suse","product":"python-pyxdg&distro=SUSE Linux Enterprise High Performance Computing 15 SP1-ESPOS","name":"python-pyxdg","label":"python-pyxdg&distro=SUSE Linux Enterprise High Performance Computing 15 SP1-ESPOS","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/python-pyxdg&distro=SUSE Linux Enterprise High Performance Computing 15 SP1-ESPOS","purlType":"rpm","versions":[{"text":"< 0.25-150000.3.3.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.25-150000.3.3.1","eol":null,"hubHref":null},{"vendor":"suse","product":"python-pyxdg&distro=SUSE Linux Enterprise High Performance Computing 15 SP1-LTSS","name":"python-pyxdg","label":"python-pyxdg&distro=SUSE Linux Enterprise High Performance Computing 15 SP1-LTSS","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/python-pyxdg&distro=SUSE Linux Enterprise High Performance Computing 15 SP1-LTSS","purlType":"rpm","versions":[{"text":"< 0.25-150000.3.3.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.25-150000.3.3.1","eol":null,"hubHref":null},{"vendor":"suse","product":"python-pyxdg&distro=SUSE Linux Enterprise High Performance Computing 15-ESPOS","name":"python-pyxdg","label":"python-pyxdg&distro=SUSE Linux Enterprise High Performance Computing 15-ESPOS","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/python-pyxdg&distro=SUSE Linux Enterprise High Performance Computing 15-ESPOS","purlType":"rpm","versions":[{"text":"< 0.25-150000.3.3.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.25-150000.3.3.1","eol":null,"hubHref":null},{"vendor":"suse","product":"python-pyxdg&distro=SUSE Linux Enterprise High Performance Computing 15-LTSS","name":"python-pyxdg","label":"python-pyxdg&distro=SUSE Linux Enterprise High Performance Computing 15-LTSS","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/python-pyxdg&distro=SUSE Linux Enterprise High Performance Computing 15-LTSS","purlType":"rpm","versions":[{"text":"< 0.25-150000.3.3.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.25-150000.3.3.1","eol":null,"hubHref":null},{"vendor":"suse","product":"python-pyxdg&distro=SUSE Linux Enterprise Server 15 SP1-BCL","name":"python-pyxdg","label":"python-pyxdg&distro=SUSE Linux Enterprise Server 15 SP1-BCL","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/python-pyxdg&distro=SUSE Linux Enterprise Server 15 SP1-BCL","purlType":"rpm","versions":[{"text":"< 0.25-150000.3.3.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.25-150000.3.3.1","eol":null,"hubHref":null},{"vendor":"suse","product":"python-pyxdg&distro=SUSE Linux Enterprise Server 15 SP1-LTSS","name":"python-pyxdg","label":"python-pyxdg&distro=SUSE Linux Enterprise Server 15 SP1-LTSS","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/python-pyxdg&distro=SUSE Linux Enterprise Server 15 SP1-LTSS","purlType":"rpm","versions":[{"text":"< 0.25-150000.3.3.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.25-150000.3.3.1","eol":null,"hubHref":null},{"vendor":"suse","product":"python-pyxdg&distro=SUSE Linux Enterprise Server 15-LTSS","name":"python-pyxdg","label":"python-pyxdg&distro=SUSE Linux Enterprise Server 15-LTSS","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/python-pyxdg&distro=SUSE Linux Enterprise Server 15-LTSS","purlType":"rpm","versions":[{"text":"< 0.25-150000.3.3.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.25-150000.3.3.1","eol":null,"hubHref":null},{"vendor":"suse","product":"python-pyxdg&distro=SUSE Linux Enterprise Server for SAP Applications 15","name":"python-pyxdg","label":"python-pyxdg&distro=SUSE Linux Enterprise Server for SAP Applications 15","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/python-pyxdg&distro=SUSE Linux Enterprise Server for SAP Applications 15","purlType":"rpm","versions":[{"text":"< 0.25-150000.3.3.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.25-150000.3.3.1","eol":null,"hubHref":null},{"vendor":"suse","product":"python-pyxdg&distro=SUSE Linux Enterprise Server for SAP Applications 15 SP1","name":"python-pyxdg","label":"python-pyxdg&distro=SUSE Linux Enterprise Server for SAP Applications 15 SP1","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/python-pyxdg&distro=SUSE Linux Enterprise Server for SAP Applications 15 SP1","purlType":"rpm","versions":[{"text":"< 0.25-150000.3.3.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.25-150000.3.3.1","eol":null,"hubHref":null}],"affectedCount":14,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://gist.github.com/dhondta/b45cd41f4186110a354dc7272916feba","label":"gist.github.com/dhondta/b45cd41f4186110a354dc7272916feba","hostname":"gist.github.com","tags":["X Refsource MISC","Exploit","Third Party Advisory","WEB","REPORT"]},{"url":"https://snyk.io/vuln/SNYK-PYTHON-PYXDG-174562","label":"snyk.io/vuln/SNYK-PYTHON-PYXDG-174562","hostname":"snyk.io","tags":["X Refsource MISC","Third Party Advisory","WEB","Advisory","REPORT"]},{"url":"https://lists.debian.org/debian-lts-announce/2019/06/msg00006.html","label":"lists.debian.org/debian-lts-announce/2019/06/msg00006.html","hostname":"lists.debian.org","tags":["Mailing List","X Refsource MLIST","WEB"]},{"url":"https://lists.debian.org/debian-lts-announce/2021/08/msg00003.html","label":"lists.debian.org/debian-lts-announce/2021/08/msg00003.html","hostname":"lists.debian.org","tags":["Mailing List","X Refsource MLIST","WEB"]},{"url":"https://www.suse.com/support/update/announcement/2022/suse-su-20222997-1/","label":"www.suse.com/support/update/announcement/2022/suse-su-20222997-1/","hostname":"www.suse.com","tags":["Advisory"]},{"url":"https://bugzilla.suse.com/1137627","label":"bugzilla.suse.com/1137627","hostname":"bugzilla.suse.com","tags":["REPORT"]},{"url":"https://www.suse.com/security/cve/CVE-2019-12761","label":"www.suse.com/security/cve/CVE-2019-12761","hostname":"www.suse.com","tags":["WEB"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-12761","label":"nvd.nist.gov/vuln/detail/CVE-2019-12761","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/pyxdg/PYSEC-2019-199.yaml","label":"github.com/pypa/advisory-database/tree/main/vulns/pyxdg/PYSEC-2019-199.yaml","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/takluyver/pyxdg","label":"github.com/takluyver/pyxdg","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/advisories/GHSA-r6v3-hpxj-r8rv","label":"github.com/advisories/GHSA-r6v3-hpxj-r8rv","hostname":"github.com","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2019-12761","label":"ubuntu.com/security/CVE-2019-12761","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-4700-1","label":"ubuntu.com/security/notices/USN-4700-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2019-12761","label":"www.cve.org/CVERecord?id=CVE-2019-12761","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2019-12761","label":"security-tracker.debian.org/tracker/CVE-2019-12761","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2019-06-06T18:55:27.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-04T23:32:54.641Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":40,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T08:21:41.343Z","stale":false,"partial":false}}