Skip to content

CVE-2019-12761 Code Injection in PyXDG

HighCVSS 7.5 EPSS 2.1%
Published
Updated
Exploit status
No public exploit known
Technology
UbuntuDebian

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.

Upgrade path

8 packages: 8 fixed.

PackageAffectedFixed inStatus
debian/pyxdg(Debian 12) < 0.26-1 0.26-1 Fixed
debian/pyxdg(Debian 13) < 0.26-1 0.26-1 Fixed
debian/pyxdg(Debian 14) < 0.26-1 0.26-1 Fixed
pypi pyxdg(PyPI) < 0.26; = 0.19; = 0.20; = 0.21 +4 more 0.26 Fixed
python pyxdg < 0.26 0.26 Fixed
ubuntu/pyxdg(Ubuntu 16.04) < 0.25-4ubuntu0.16.04.1; = 0.25-4 0.25-4ubuntu0.16.04.1 Fixed
ubuntu/pyxdg(Ubuntu 18.04) < 0.25-4ubuntu1.1; = 0.25-4; = 0.25-4ubuntu1 0.25-4ubuntu1.1 Fixed
ubuntu/pyxdg(Ubuntu Pro 14.04) < 0.25-4ubuntu0.14.04.1~esm1; = 0.25-3; = 0.25-4 0.25-4ubuntu0.14.04.1~esm1 Fixed

Affected products

ProductAffected versionsFixed in
pypi pyxdg(PyPI) < 0.26 0.26
pypi pyxdg(PyPI) = 0.19 No fix listed
pypi pyxdg(PyPI) = 0.20 No fix listed
pypi pyxdg(PyPI) = 0.21 No fix listed
pypi pyxdg(PyPI) = 0.22 No fix listed
pypi pyxdg(PyPI) = 0.23 No fix listed
pypi pyxdg(PyPI) = 0.24 No fix listed
pypi pyxdg(PyPI) = 0.25 No fix listed
debian/pyxdg(Debian:12) < 0.26-1 0.26-1
debian/pyxdg(Debian:13) < 0.26-1 0.26-1
debian/pyxdg(Debian:14) < 0.26-1 0.26-1
python pyxdg < 0.26 0.26
ubuntu/pyxdg(Ubuntu:Pro:14.04) < 0.25-4ubuntu0.14.04.1~esm1 0.25-4ubuntu0.14.04.1~esm1
ubuntu/pyxdg(Ubuntu:Pro:14.04) = 0.25-3 No fix listed
ubuntu/pyxdg(Ubuntu:Pro:14.04) = 0.25-4 No fix listed
ubuntu/pyxdg(Ubuntu:16.04) < 0.25-4ubuntu0.16.04.1 0.25-4ubuntu0.16.04.1
ubuntu/pyxdg(Ubuntu:16.04) = 0.25-4 No fix listed
ubuntu/pyxdg(Ubuntu:18.04) < 0.25-4ubuntu1.1 0.25-4ubuntu1.1
ubuntu/pyxdg(Ubuntu:18.04) = 0.25-4 No fix listed
ubuntu/pyxdg(Ubuntu:18.04) = 0.25-4ubuntu1 No fix listed

References