PT-2019-6098 · Python+4 · Pyxdg+4

Published

2019-06-06

·

Updated

2025-03-06

·

CVE-2019-12761

CVSS v3.1

7.5

High

VectorAV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions PyXDG versions prior to 0.26
Description A code injection issue was discovered due to a lack of sanitization in xdg/Menu.py before an eval call. This issue can be triggered by crafted Python code in a Category element of a Menu XML document in a .menu file when XDG CONFIG DIRS is set up to parse within the directory containing this file. Exploitation of this issue may allow a remote attacker to access confidential data, compromise data integrity, and cause a denial of service.
Recommendations For versions prior to 0.26, update to version 0.26 or later to resolve the issue. As a temporary workaround, consider restricting access to the xdg/Menu.py module or avoiding the use of the eval function until a patch is available. Additionally, ensure that XDG CONFIG DIRS is properly configured to minimize the risk of exploitation.

Exploit

Fix

Code Injection

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALT-PU-2025-3664
BDU:2021-05299
CVE-2019-12761
DLA-1819-1
DLA-2727-1
GHSA-R6V3-HPXJ-R8RV
PYSEC-2019-199
SNYK-PYTHON-PYXDG-174562
SUSE-SU-2022:2997-1
SUSE-SU-2022_2997-1
USN-4700-1

Affected Products

Alt Linux
Astra Linux
Pyxdg
Suse
Ubuntu