CVE-2019-12761

HIGH

PyXDG < 0.26 - Code Injection via Menu XML Category Element

Title source: llm
STIX 2.1

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.

References (4)

Core 4
Core References
Exploit, Third Party Advisory x_refsource_misc
https://gist.github.com/dhondta/b45cd41f4186110a354dc7272916feba
Third Party Advisory x_refsource_misc
https://snyk.io/vuln/SNYK-PYTHON-PYXDG-174562
Mailing List mailing-list x_refsource_mlist
https://lists.debian.org/debian-lts-announce/2019/06/msg00006.html
Mailing List mailing-list x_refsource_mlist
https://lists.debian.org/debian-lts-announce/2021/08/msg00003.html

Scores

CVSS v3 7.5
EPSS 0.0061
EPSS Percentile 70.0%
Attack Vector NETWORK
CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H

Details

CWE
CWE-94
Status published
Products (2)
pypi/pyxdg 0 - 0.26PyPI
python/pyxdg < 0.26
Published Jun 06, 2019
Tracked Since Feb 18, 2026