CVE-2019-12761: python pyxdg Code Injection
Vulnerability summary
CVE-2019-12761 is a high (CVSS 7.5) Code Injection vulnerability in python pyxdg. EPSS estimates a 2.10% chance of exploitation in the next 30 days, higher than 81.4% of scored vulnerabilities. 1 public exploit is recorded.
Timeline
- 06-06-2019PublishedVulnerability first disclosed.
- 04-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 4 sources · 2 versions- OSV · PypiEcosystem advisory · calculated7.5HighCVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · UbuntuEcosystem advisory · calculated7.5HighCVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS trend
Probability
2.10%
Chance of exploitation in the next 30 days
Percentile
81%
Versus all other CVEs
30-day change
0.00 pp
From 2.10% on 18-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundB45Cd41F4186110A354Dc7272916Feba
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Suse10 products
- python-pyxdg&distro=SUSE Enterprise Storage 6< 0.25-150000.3.3.1
- python-pyxdg&distro=SUSE Linux Enterprise High Performance Computing 15 SP1-ESPOS< 0.25-150000.3.3.1
- python-pyxdg&distro=SUSE Linux Enterprise High Performance Computing 15 SP1-LTSS< 0.25-150000.3.3.1
- python-pyxdg&distro=SUSE Linux Enterprise High Performance Computing 15-ESPOS< 0.25-150000.3.3.1
- python-pyxdg&distro=SUSE Linux Enterprise High Performance Computing 15-LTSS< 0.25-150000.3.3.1
Debian1 product
- pyxdg< 0.26-1 | < 0.25-4+deb9u1 | < 0.25-4+deb8u1
PyPI1 product
- pyxdg< 0.26
Python1 product
- pyxdg< 0.26
Ubuntu1 product
- pyxdg< 0.25-4ubuntu0.14.04.1~esm1 | < 0.25-4ubuntu0.16.04.1 | < 0.25-4ubuntu1.1
5 vendors · 14 products
References
15 links- gist.github.com/dhondta/b45cd41f4186110a354dc7272916febaX Refsource MISCExploitThird Party AdvisoryWEBREPORT
- github.com/takluyver/pyxdgPACKAGE