CVE-2019-12761: Code Injection

Published Jun 6, 2019
·
Updated

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

2 affected componentsFixes available
pip/pyxdg<0.26
0.26
Python pyxdg<0.26

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pip/pyxdg to a version that resolves this vulnerability.

    Fixed in 0.26
  2. Upgrade

    Upgrade PyXDG to a version that resolves this vulnerability.

    Fixed in 0.26

Event History

Jun 6, 2019
CVE Published
via MITRE·06:55 PM
Data Sourced
via MITRE·06:55 PM
Description
Data Sourced
via OSV·07:29 PM
DescriptionSeverity
Jun 7, 2019
Advisory Published
via GitHub·08:56 PM

Frequently Asked Questions

1

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.

2

How do I fix CVE-2019-12761?

To mitigate CVE-2019-12761, upgrade to PyXDG version 0.26 or later.

3

What specific component is affected by CVE-2019-12761?

CVE-2019-12761 affects the parsing functionality in PyXDG for Menu XML documents.

4

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.

5

Who is impacted by CVE-2019-12761?

Users and applications utilizing PyXDG versions prior to 0.26 are impacted by CVE-2019-12761.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203