CVE-2019-12761: Code Injection
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. XDGCONFIGDIRS 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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
pip/pyxdgto a version that resolves this vulnerability.Fixed in 0.26 - Upgrade
Upgrade
PyXDGto a version that resolves this vulnerability.Fixed in 0.26
Event History
Frequently Asked Questions
What is the severity of CVE-2019-12761?
CVE-2019-12761 has been assigned a moderate severity rating due to the risk of code injection.
How do I fix CVE-2019-12761?
To mitigate CVE-2019-12761, upgrade to PyXDG version 0.26 or later.
What specific component is affected by CVE-2019-12761?
CVE-2019-12761 affects the parsing functionality in PyXDG for Menu XML documents.
What conditions need to be met to exploit CVE-2019-12761?
CVE-2019-12761 can be exploited if XDG_CONFIG_DIRS is configured and contains a vulnerable .menu file.
Who is impacted by CVE-2019-12761?
Users and applications utilizing PyXDG versions prior to 0.26 are impacted by CVE-2019-12761.