CVE-2019-12761 json
Code Injection in PyXDG
published 2019-06-06 7 y ago modified 2026-06-17 4 mo ago also GHSA-r6v3-hpxj-r8rv , PYSEC-2019-199 , EUVD-2019-0119
- cvss
- 7.5
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.1%
- EPSS 2.1% chance of exploitation in 30 days, percentile 81%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi pyxdg 0.26
- python pyxdg 0.26
- pyxdg Debian 14, Debian 13, Debian 12 0.26-1
debian advisories DEBIAN-CVE-2019-12761
- pyxdg Ubuntu 16.04 LTS 0.25-4ubuntu0.16.04.1
- pyxdg Ubuntu 18.04 LTS 0.25-4ubuntu1.1
- pyxdg Ubuntu Pro 14.04 LTS 0.25-4ubuntu0.14.04.1~esm1
ubuntu advisories UBUNTU-CVE-2019-12761
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- python-pyxdg SLES for SAP 15 SP1, SLES for SAP 15, SLES 15-LTSS +7 more 0.25-150000.3.3.1
suse advisories SUSE-SU-2022:2997-1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2019-12761 updated cvss 6.1
pyxdg: code injection via crafted python code
-
Red Hat Enterprise Linux 6 pyxdgaffected: no fix planned “Out of support scope”
-
Red Hat Enterprise Linux 8 python3-pyxdgaffected: no fix planned “Will not fix”
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
2.10% chance of exploitation in the next 30 days, higher than 81% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- gist.github.com https://gist.github.com/dhondta/b45cd41f4186110a354dc7272916feba referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 7.5 | CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 5.1 | AV:N/AC:H/Au:N/C:P/I:P/A:P |
| GitHub | 3.0 | 7.5 | CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | pyxdg | <0.26 |
0.26 |
Classification
- Weakness
-
- CWE-94 Improper Control of Generation of Code
References
-
gist.github.com
/dhondta/b45cd41f4186110a354dc7272916feba
web, exploit, third-party-advisory
-
snyk.io
/vuln/SNYK-PYTHON-PYXDG-174562
web, third-party-advisory, advisory
-
lists.debian.org
/debian-lts-announce/2019/06/msg00006.html
mailing-list, web
-
lists.debian.org
/debian-lts-announce/2021/08/msg00003.html
mailing-list, web
-
nvd.nist.gov
/vuln/detail/CVE-2019-12761
advisory
-
github.com
/pypa/advisory-database/tree/main/vulns/pyxdg/PYSEC-2019-199.yaml
web
-
github.com
/takluyver/pyxdg
package
-
github.com
/advisories/GHSA-r6v3-hpxj-r8rv
advisory
Sources
- CVE List CVE-2019-12761
- GitHub Advisory GHSA-r6v3-hpxj-r8rv
- NVD CVE-2019-12761
- OSV PYSEC-2019-199
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.