Skip to content
Fencer Vulns
high 7.5

CVE-2019-12761 json

Code Injection in PyXDG

published 2019-06-06 7 y ago modified 2026-06-17 4 mo ago also GHSA-r6v3-hpxj-r8rv , PYSEC-2019-199 , EUVD-2019-0119

cvss
7.5
version 3.0, NVD
cisa kev
Not listed
not in CISA's catalog
epss
2.1%
EPSS 2.1% chance of exploitation in 30 days, percentile 81%
public exploits
0
none known

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.

Patch / fix

  • pypi pyxdg 0.26
  • python pyxdg 0.26
  • pyxdg Debian 14, Debian 13, Debian 12 0.26-1

debian advisories DEBIAN-CVE-2019-12761

  • pyxdg Ubuntu 16.04 LTS 0.25-4ubuntu0.16.04.1
  • pyxdg Ubuntu 18.04 LTS 0.25-4ubuntu1.1
  • pyxdg Ubuntu Pro 14.04 LTS 0.25-4ubuntu0.14.04.1~esm1

ubuntu advisories UBUNTU-CVE-2019-12761

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • python-pyxdg SLES for SAP 15 SP1, SLES for SAP 15, SLES 15-LTSS +7 more 0.25-150000.3.3.1

suse advisories SUSE-SU-2022:2997-1

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2019-12761 updated cvss 6.1

pyxdg: code injection via crafted python code

  • Red Hat Enterprise Linux 6 pyxdg
    affected: no fix planned “Out of support scope”
  • Red Hat Enterprise Linux 8 python3-pyxdg
    affected: no fix planned “Will not fix”

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

2.10% chance of exploitation in the next 30 days, higher than 81% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • gist.github.com https://gist.github.com/dhondta/b45cd41f4186110a354dc7272916feba referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
NVD 3.0 7.5 CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
NVD 2.0 5.1 AV:N/AC:H/Au:N/C:P/I:P/A:P
GitHub 3.0 7.5 CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H

Affected packages

ecosystem package affected fixed in
pypi pyxdg
<0.26
0.26

Classification

Weakness
  • CWE-94 Improper Control of Generation of Code

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.