CVE-2019-12761
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.
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
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 High
CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H - CVSS 2.0
- 5.1 Medium
AV: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 High
CVSS: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 High
CVSS: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 High
CVSS: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 High
CVSS: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 High
CVSS: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
| Package | Affected | Fixed |
|---|---|---|
pyxdgPyPI |
before 0.26 | 0.26 |
pyxdgDebian:12 |
before 0.26-1 | 0.26-1 |
pyxdgDebian:13 |
before 0.26-1 | 0.26-1 |
pyxdgDebian:14 |
before 0.26-1 | 0.26-1 |
pyxdgDebian:8 |
before 0.25-4+deb8u1, plus listed versions 0.25-4 |
0.25-4+deb8u1 |
pyxdgDebian:9 |
before 0.25-4+deb9u1, plus listed versions 0.25-4 |
0.25-4+deb9u1 |
pyxdgPyPI |
before 0.26, plus listed versions 0.190.200.210.220.230.240.25 |
0.26 |
python-pyxdgSUSE:Linux Enterprise High Performance Computing 15-ESPOS |
before 0.25-150000.3.3.1 | 0.25-150000.3.3.1 |
python-pyxdgSUSE:Linux Enterprise High Performance Computing 15-LTSS |
before 0.25-150000.3.3.1 | 0.25-150000.3.3.1 |
python-pyxdgSUSE: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
| Package | Affected | Fixed |
|---|---|---|
python-pyxdgSUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS |
before 0.25-150000.3.3.1 | 0.25-150000.3.3.1 |
python-pyxdgSUSE:Linux Enterprise Server 15-LTSS |
before 0.25-150000.3.3.1 | 0.25-150000.3.3.1 |
python-pyxdgSUSE:Linux Enterprise Server 15 SP1-BCL |
before 0.25-150000.3.3.1 | 0.25-150000.3.3.1 |
python-pyxdgSUSE:Linux Enterprise Server 15 SP1-LTSS |
before 0.25-150000.3.3.1 | 0.25-150000.3.3.1 |
python-pyxdgSUSE:Linux Enterprise Server for SAP Applications 15 |
before 0.25-150000.3.3.1 | 0.25-150000.3.3.1 |
python-pyxdgSUSE:Linux Enterprise Server for SAP Applications 15 SP1 |
before 0.25-150000.3.3.1 | 0.25-150000.3.3.1 |
python-pyxdgSUSE:Enterprise Storage 6 |
before 0.25-150000.3.3.1 | 0.25-150000.3.3.1 |
pyxdgUbuntu: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 |
pyxdgUbuntu:16.04:LTS |
before 0.25-4ubuntu0.16.04.1, plus listed versions 0.25-4 |
0.25-4ubuntu0.16.04.1 |
pyxdgUbuntu:18.04:LTS |
before 0.25-4ubuntu1.1, plus listed versions 0.25-40.25-4ubuntu1 |
0.25-4ubuntu1.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE 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
gist.github.com/dhondta/b45cd41f4186110a354dc7272916feba
snyk.io/vuln/SNYK-PYTHON-PYXDG-174562
lists.debian.org/debian-lts-announce/2019/06/msg00006.html
lists.debian.org/debian-lts-announce/2021/08/msg00003.html
nvd.nist.gov/vuln/detail/CVE-2019-12761
github.com/pypa/advisory-database/tree/main/vulns/pyxdg/PYSEC-2019-199.yaml
Show 9 moreShow less
github.com/advisories/GHSA-r6v3-hpxj-r8rv
security-tracker.debian.org/tracker/CVE-2019-12761
github.com/takluyver/pyxdg
suse.com/support/update/announcement/2022/suse-su-20222997-1
bugzilla.suse.com/1137627
suse.com/security/cve/CVE-2019-12761
ubuntu.com/security/CVE-2019-12761
ubuntu.com/security/notices/USN-4700-1
cve.org/CVERecord?id=CVE-2019-12761