RCE in Python Pyxdg
CVE-2019-12761
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.
Vulnerability class: RCE (Remote Code Execution)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.5 (High). Vector: CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.021, 82.0th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
Weakness classification (CWE)
References
- gist.github.com/dhondta/b45cd41f4186110a354dc7272916feba (Exploit, Third Party Advisory)
- snyk.io/vuln/SNYK-PYTHON-PYXDG-174562 (Third Party Advisory)
- [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)