Live threats

All CVEs / Python

CVE-2019-12761Python Pyxdg

High 7.5 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Pyxdg.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
pythonpyxdg< 0.26

Official sources

References

Links published by the sources. Open them with care.