Arbitrary Code Injection The advisory has been revoked - it doesn't affect any version of package pyxdg  (opens in a new tab)


Threat Intelligence

EPSS
1.21% (86th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Code Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UBUNTU1910-PYXDG-583324
  • published6 Jun 2019
  • disclosed6 Jun 2019

Introduced: 6 Jun 2019

CVE-2019-12761  (opens in a new tab)
CWE-94  (opens in a new tab)

Amendment

The Ubuntu security team deemed this advisory irrelevant for Ubuntu:19.10.

NVD Description

Note: Versions mentioned in the description apply only to the upstream pyxdg package and not the pyxdg package as distributed by Ubuntu.

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.