A code injection issue was discovered in PyXDG before 0.26 via crafted Python code in a…
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- High
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 2 without a fix
Attack profile from CVSS 3.0 · NVD. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-94.
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
| — | pyxdg (PyPI) | before 0.26 | 0.26 | Patch available | GHSA-r6v3-hpxj-r8rv |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
- pyxdg (PyPI) Vendor— Affected before 0.26 Fixed in 0.26 Patch available GHSA-r6v3-hpxj-r8rv
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:python:pyxdg:*:*:*:*:*:*:*:* | before 0.26 | Vulnerable | python-pillow |
- cpe:2.3:a:python:pyxdg:*:*:*:*:*:*:*:* Versions before 0.26 Vulnerable ·python-pillow
Remediation
- Fix · GHSA-r6v3-hpxj-r8rv pyxdg (PyPI) Fixed in 0.26 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 6 | Affected | No fix planned: Out of support scope |
| Red Hat Enterprise Linux 8 | Affected | No fix planned: Will not fix |
Timeline
- 2026-10-02 Threatist record created from CVE-2019-12761
- 2026-10-03 Alias added: GHSA-r6v3-hpxj-r8rv
References
More python-pillow Pyxdg vulnerabilities
- TI-2014-01264 Race condition in the xdg.BaseDirectory.get_runtime_dir function in python-xdg 0.25… CVSS 2.0LOW 3.3
Sources
- CVE-2019-12761 · CVE Program
- CVE-2019-12761 · NVD
- FIRST EPSS
- GHSA-r6v3-hpxj-r8rv · GitHub Advisory Database · CC BY 4.0
- CVE-2019-12761 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences