Skip to content
OpenAdvisories
High · 7.5 CVE-2019-12761 EUVD-2019-0119GHSA-r6v3-hpxj-r8rvPYSEC-2019-199SNYK-PYTHON-PYXDG-174562

Code Injection in PyXDG

Published Jun 6, 2019 · Updated Aug 4, 2024 · Assigned by mitre

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 pyxdg 0.26-1 —
Debian 13 pyxdg 0.26-1 —
Debian 12 pyxdg 0.26-1 —
Debian 9 pyxdg 0.25-4+deb9u1 DLA-2727-1
Debian 8 pyxdg 0.25-4+deb8u1 DLA-1819-1
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS pyxdg 0.25-4ubuntu1.1 USN-4700-1
Ubuntu 16.04 LTS pyxdg 0.25-4ubuntu0.16.04.1 USN-4700-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 14.04 LTS pyxdg 0.25-4ubuntu0.14.04.1~esm1 USN-4700-1
ReleasePackageFixed inAdvisory
SLES 15 SP1 python-pyxdg 0.25-150000.3.3.1 SUSE-SU-2022:2997-1
SLES 15 python-pyxdg 0.25-150000.3.3.1 SUSE-SU-2022:2997-1
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 SP1 python-pyxdg 0.25-150000.3.3.1 SUSE-SU-2022:2997-1
SLES for SAP 15 python-pyxdg 0.25-150000.3.3.1 SUSE-SU-2022:2997-1
SLE HPC 15 SP1 python-pyxdg 0.25-150000.3.3.1 SUSE-SU-2022:2997-1
SLE HPC 15 python-pyxdg 0.25-150000.3.3.1 SUSE-SU-2022:2997-1
SUSE Enterprise Storage 6 python-pyxdg 0.25-150000.3.3.1 SUSE-SU-2022:2997-1

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI pyxdg < 0.26 0.26 GHSA-r6v3-hpxj-r8rv

Advisories 4

References