CVE-2019-12761Python Pyxdg
High 7.5 No auth needed
Follow: this CVE · Python · Python Pyxdg We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.0
- 7.5
- EPSS
- 2.1% probability of exploitation in 30 days · percentile 82
- Auth required
- No
- Published
- Jun 6, 2019
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-94
- Vector
CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Pyxdg.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | pyxdg |
< 0.26 |
0.26 |
pip install "pyxdg>=0.26" |
| PyPI | pyxdg |
< 0.26 |
0.26 |
pip install "pyxdg>=0.26" |
Per OSV / GitHub Advisories (GHSA-r6v3-hpxj-r8rv, PYSEC-2019-199). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| python | pyxdg | < 0.26 |
Official sources
References
Links published by the sources. Open them with care.
- gist.github.com Exploit Third Party Advisory
- lists.debian.org
- lists.debian.org
- snyk.io Third Party Advisory