CVE-2019-12761
JSON

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 packageVersionsReported by
Unspecified productn/aCVE List
pyxdg (PyPI)before 0.26GitHub Advisory Database, PyPA Advisory Database
python pyxdgbefore 0.26NVD

All scores

GitHub7.5high CVSS:3.0CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
NVD7.5high CVSS:3.0CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
NVD5.1medium CVSS:2.0AV: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

Sources

SourceRecordLicence
CVE ListCVE-2019-12761 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-r6v3-hpxj-r8rv changed 2024-10-15CC-BY-4.0
NVDCVE-2019-12761 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2019-199 changed 2023-11-08CC-BY-4.0