Every CVE Search/ Get API key

CVE-2019-12761

Code Injection in PyXDG

7.5 HighFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
High
Privileges needed
None
User interaction
Required

What an attacker can affect

Confidentiality
High
Integrity
High
Availability
High

Exploit likelihood

2.10%Up 1.3 points since Apr 14, 2021
90%50%10%1%

What each source reports

NVD Score used 7.5

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.

Record
CVE-2019-12761
CVSS 3.0
7.5 HighCVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS 2.0
5.1 MediumAV:N/AC:H/Au:N/C:P/I:P/A:P
Weakness
CWE-94
Updated
2026-11-02
CVE List No score

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.

Record
CVE-2019-12761
Updated
2026-11-02
EUVDEUVD-2019-0119 No score

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.

Record
EUVD-2019-0119
Updated
2026-11-03
GitHub AdvisoriesGHSA-r6v3-hpxj-r8rv 7.5

Code Injection in PyXDG

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.

Record
GHSA-r6v3-hpxj-r8rv
CVSS 3.0
7.5 HighCVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Weakness
CWE-94
Updated
2026-11-02
OSV 7.5

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.

Record
CVE-2019-12761
CVSS 3.0
7.5 HighCVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-03
OSVDEBIAN-CVE-2019-12761 7.5

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.

Record
DEBIAN-CVE-2019-12761
CVSS 3.0
7.5 HighCVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
Show 5 moreShow less
OSVGHSA-r6v3-hpxj-r8rv 7.5

Code Injection in PyXDG

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.

Record
GHSA-r6v3-hpxj-r8rv
CVSS 3.0
7.5 HighCVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Weakness
CWE-94
Updated
2026-11-02
OSVUBUNTU-CVE-2019-12761 7.5

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.

Record
UBUNTU-CVE-2019-12761
CVSS 3.0
7.5 HighCVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVPYSEC-2019-199 No score

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.

Record
PYSEC-2019-199
Updated
2026-11-02
OSVSUSE-SU-2022:2997-1 No score

Security update for python-pyxdg

This update for python-pyxdg fixes the following issues:

  • CVE-2019-12761: Fixed a code injection issue in Category elements of a Menu XML (bsc#1137627).
Record
SUSE-SU-2022:2997-1
Updated
2026-11-02
OSVUSN-4700-1 No score

pyxdg vulnerability

Alexandre D'Hondt discovered that PyXDG did not properly sanitize input. An attacker could exploit this with a crafted .menu file to execute arbitrary code.

Record
USN-4700-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
pyxdg
PyPI
before 0.26
0.26
pyxdg
Debian:12
before 0.26-1
0.26-1
pyxdg
Debian:13
before 0.26-1
0.26-1
pyxdg
Debian:14
before 0.26-1
0.26-1
pyxdg
Debian:8
before 0.25-4+deb8u1, plus listed versions
0.25-4
0.25-4+deb8u1
pyxdg
Debian:9
before 0.25-4+deb9u1, plus listed versions
0.25-4
0.25-4+deb9u1
pyxdg
PyPI
before 0.26, plus listed versions
0.190.200.210.220.230.240.25
0.26
python-pyxdg
SUSE:Linux Enterprise High Performance Computing 15-ESPOS
before 0.25-150000.3.3.1
0.25-150000.3.3.1
python-pyxdg
SUSE:Linux Enterprise High Performance Computing 15-LTSS
before 0.25-150000.3.3.1
0.25-150000.3.3.1
python-pyxdg
SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS
before 0.25-150000.3.3.1
0.25-150000.3.3.1
Show 10 moreShow less
Affected packages
PackageAffectedFixed
python-pyxdg
SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS
before 0.25-150000.3.3.1
0.25-150000.3.3.1
python-pyxdg
SUSE:Linux Enterprise Server 15-LTSS
before 0.25-150000.3.3.1
0.25-150000.3.3.1
python-pyxdg
SUSE:Linux Enterprise Server 15 SP1-BCL
before 0.25-150000.3.3.1
0.25-150000.3.3.1
python-pyxdg
SUSE:Linux Enterprise Server 15 SP1-LTSS
before 0.25-150000.3.3.1
0.25-150000.3.3.1
python-pyxdg
SUSE:Linux Enterprise Server for SAP Applications 15
before 0.25-150000.3.3.1
0.25-150000.3.3.1
python-pyxdg
SUSE:Linux Enterprise Server for SAP Applications 15 SP1
before 0.25-150000.3.3.1
0.25-150000.3.3.1
python-pyxdg
SUSE:Enterprise Storage 6
before 0.25-150000.3.3.1
0.25-150000.3.3.1
pyxdg
Ubuntu:Pro:14.04:LTS
before 0.25-4ubuntu0.14.04.1~esm1, plus listed versions
0.25-30.25-4
0.25-4ubuntu0.14.04.1~esm1
pyxdg
Ubuntu:16.04:LTS
before 0.25-4ubuntu0.16.04.1, plus listed versions
0.25-4
0.25-4ubuntu0.16.04.1
pyxdg
Ubuntu:18.04:LTS
before 0.25-4ubuntu1.1, plus listed versions
0.25-40.25-4ubuntu1
0.25-4ubuntu1.1

History

History
RecordedChangedSources
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2019-12761 is a high vulnerability (CVSS 7.5) in Python Pyxdg, published June 6, 2019. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 2.10%, the 81st percentile. Fixed in pyxdg 0.26.

References

Show 9 moreShow less
MoveEnter Open