CVE-2019-12761
HIGH 7.5CVSS 3.0Code Injection in PyXDG
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.
- Published
- 6 Jun 2019
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-94
- Also known as
- GHSA-r6v3-hpxj-r8rvPYSEC-2019-199SNYK-PYTHON-PYXDG-174562
- Sources
- NVDJSONOSV GHSA-r6v3-hpxj-r8rvJSONOSV PYSEC-2019-199JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | HIGH 7.5 | CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.0 | HIGH 7.5 | CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.1 | AV:N/AC:H/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | python | pyxdgcpe:2.3:a:python:pyxdg:*:*:*:*:*:*:*:* |
< 0.26 | 0.26 |
| OSV | PyPI | pyxdg | < 0.26 | 0.26 |
References
- https://gist.github.com/dhondta/b45cd41f4186110a354dc7272916feba · Exploit, Third Party Advisory, WEB
- https://lists.debian.org/debian-lts-announce/2019/06/msg00006.html · WEB
- https://lists.debian.org/debian-lts-announce/2021/08/msg00003.html · WEB
- https://snyk.io/vuln/SNYK-PYTHON-PYXDG-174562 · Third Party Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2019-12761 · ADVISORY
- https://github.com/pypa/advisory-database/tree/main/vulns/pyxdg/PYSEC-2019-199.yaml · WEB
- https://github.com/takluyver/pyxdg · PACKAGE
- https://github.com/advisories/GHSA-r6v3-hpxj-r8rv · ADVISORY
History
- 25 Nov 2026 20:22 UTC · NVD: first stored (published 6 Jun 2019)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 6 Jun 2019)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Jun 2019)