GitHub Advisoryadvisory · PyPI

GHSA-r6v3-hpxj-r8rv Code Injection in PyXDG

HIGH Published 2019-06-07 Modified 2024-10-15 Official page ↗
Aliases
CVE-2019-12761
Ecosystem
PyPI
Packages
pyxdg
Severity
High
CVSS vector
CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Weaknesses
CWE-94
Reviewed
2019-06-07

Affected packages

• PyPI pyxdg: < 0.26 → fixed in 0.26

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.

Related

Alias · CVE (1)

  • CVE-2019-12761 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… vulnerability

Weakness · CWE (1)

  • CWE-94 Improper Control of Generation of Code weakness

References