High
Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2019-12761
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 07:58 UTC · Revision 1
Source evidence
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.
osv:CVE-2019-12761
Complete source record
{
"id": "c6191a8f0f77726729740b9f76cdff83945df9501c9591bed918d4f71b8cc06b",
"url": "https://osv.dev/vulnerability/CVE-2019-12761",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2019-12761",
"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.",
"evidence": "osv:CVE-2019-12761",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2019-12761",
"aliases": [
"CVE-2019-12761",
"GHSA-r6v3-hpxj-r8rv",
"PYSEC-2019-199",
"SNYK-PYTHON-PYXDG-174562"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://gitlab.freedesktop.org/xdg/pyxdg",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "7db14dcf4c4305c3859a2d9fcf9f5da2db328330"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:python:pyxdg:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "0.26"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"rel-0.25",
"rel-0.24",
"rel-0.23",
"rel-0.22",
"rel-0.21",
"rel-0.20",
"rel-0.20rc1"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2019-12761.json"
}
}
],
"modified": "2026-10-24T10:31:00.990657847Z",
"provider": "osv",
"references": [
"https://lists.debian.org/debian-lts-announce/2019/06/msg00006.html",
"https://lists.debian.org/debian-lts-announce/2021/08/msg00003.html",
"https://snyk.io/vuln/SNYK-PYTHON-PYXDG-174562",
"https://gist.github.com/dhondta/b45cd41f4186110a354dc7272916feba"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2019-12761",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 439692,
"published_at": "2019-06-06T19:29:00.533+00:00"
}