CVE-2019-12761: Code Injection in PyXDG
7.5
CVSS Score
3.0
Basic Information
CVE ID
GHSA ID
EPSS Score
0.55812%
CWE
Published
6/7/2019
Updated
10/15/2024
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
pyxdg | pip | < 0.26 | 0.26 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from the xdg.Menu.parse
function in xdg/Menu.py
, which parses .menu
files. The exploit involves injecting Python code into a 'Category' element, which is then passed to eval()
without proper sanitization. The PoC demonstrates that triggering xdg.Menu.parse
on a malicious .menu
file executes arbitrary commands via this eval
call. The advisory explicitly attributes the issue to a lack of sanitization before eval
in this component, confirming the function's role in the vulnerability.