CVE-2019-12761
Code Injection in PyXDG
Reported by mitre · Published June 6, 2019
pyxdg is fixed in 0.26 (PyPI)
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 versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| pyxdg | PyPI | 0.26 |
| pyxdg | Ubuntu:16.04:LTS | 0.25-4ubuntu0.16.04.1 |
| pyxdg | python | 0.26 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| PyPI | pyxdg | 0 |
| n/a | n/a | * |
Timeline
- Jun 6, 2019 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Mar 6, 2026 Distribution Patch
- Mar 6, 2026 Security Advisory (2 in total, the first dated here)
- Sep 15, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2019-12761
vulnetix vdb fixes CVE-2019-12761
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2019-12761/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- x_refsource_MISC
- [debian-lts-announce] 20190616 [SECURITY] [DLA 1819-1] pyxdg security update mailing-listx_refsource_MLIST
- [debian-lts-announce] 20210803 [SECURITY] [DLA 2727-1] pyxdg security update mailing-listx_refsource_MLIST
- https://nvd.nist.gov/vuln/detail/CVE-2019-12761 advisory
- https://github.com/advisories/GHSA-r6v3-hpxj-r8rv advisory
- https://github.com/pypa/advisory-database/tree/main/vulns/pyxdg/PYSEC-2019-199.yaml advisory
- https://github.com/takluyver/pyxdg url