Vulnerability 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.
CVSS Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Python | Pyxdg | < 0.26 |
Related Weaknesses (CWE)
References
- https://gist.github.com/dhondta/b45cd41f4186110a354dc7272916febaExploitThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2019/06/msg00006.html
- https://lists.debian.org/debian-lts-announce/2021/08/msg00003.html
- https://snyk.io/vuln/SNYK-PYTHON-PYXDG-174562Third Party Advisory
- https://gist.github.com/dhondta/b45cd41f4186110a354dc7272916febaExploitThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2019/06/msg00006.html
- https://lists.debian.org/debian-lts-announce/2021/08/msg00003.html
- https://snyk.io/vuln/SNYK-PYTHON-PYXDG-174562Third Party Advisory
FAQ
What is CVE-2019-12761?
CVE-2019-12761 is a vulnerability with a CVSS score of 7.5 (HIGH). 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.pars...
How severe is CVE-2019-12761?
CVE-2019-12761 has been rated HIGH with a CVSS base score of 7.5/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2019-12761?
Check the references section above for vendor advisories and patch information. Affected products include: Python Pyxdg.