7.5high
Code Injection in PyXDG
- Severity
- 7.5high CVSS:3.0 by NVD
- Exploit likelihood
- 2.10% (higher than 82% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-r6v3-hpxj-r8rvPYSEC-2019-199SNYK-PYTHON-PYXDG-174562
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| pyxdg (PyPI) | before 0.26 | GitHub Advisory Database, PyPA Advisory Database |
| python pyxdg | before 0.26 | NVD |
All scores
| GitHub | 7.5high CVSS:3.0 | CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 7.5high CVSS:3.0 | CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 5.1medium CVSS:2.0 | AV:N/AC:H/Au:N/C:P/I:P/A:P |
Classification
What each source says
CVE List
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.
NVD (es)
Se descubrió un problema de inyección de código en PyXDG antes de 0.26 a través del código Python creado en un elemento de Categoría de un documento de Menú XML en un archivo .menú. XDG_CONFIG_DIRS debe configurarse para activar el análisis xdg.Menu.parse dentro del directorio que contiene este archivo. Esto es debido a la falta de desinfección en xdg / Menu.py antes de una llamada de evaluación.
References
| https://gist.github.com/dhondta/b45cd41f4186110a354dc7272916feba | exploit, third-party-advisory, web | |
| https://snyk.io/vuln/SNYK-PYTHON-PYXDG-174562 | advisory, third-party-advisory, web | |
| https://lists.debian.org/debian-lts-announce/2019/06/msg00006.html | mailing-list, web | |
| https://lists.debian.org/debian-lts-announce/2021/08/msg00003.html | mailing-list, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2019-12761 | advisory | |
| https://github.com/pypa/advisory-database/tree/main/vulns/pyxdg/PYSEC-2019-199.yaml | web | |
| https://github.com/takluyver/pyxdg | package | |
| https://github.com/advisories/GHSA-r6v3-hpxj-r8rv | advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2019-12761 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-r6v3-hpxj-r8rv changed 2024-10-15 | CC-BY-4.0 |
| NVD | CVE-2019-12761 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2019-199 changed 2023-11-08 | CC-BY-4.0 |