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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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
| Product | Affected versions | Fixed 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
- nvd.nist.gov third-party-advisory vendor-advisory
- gist.github.com exploit issue-tracking third-party-advisory
- github.com
- github.com product
- [debian-lts-announce] 20190616 [SECURITY] [DLA 1819-1] pyxdg security update mailing-list
- [debian-lts-announce] 20210803 [SECURITY] [DLA 2727-1] pyxdg security update mailing-list
- snyk.io issue-tracking third-party-advisory vendor-advisory
- github.com vendor-advisory
- Debian Security Tracker CVE-2019-12761 vendor-advisory
- bugs.debian.org issue-tracking
- ubuntu.com issue-tracking
- ubuntu.com vendor-advisory
- www.cve.org issue-tracking