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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | pyxdg | 0.26-1 | — |
| Debian 13 | pyxdg | 0.26-1 | — |
| Debian 12 | pyxdg | 0.26-1 | — |
| Debian 9 | pyxdg | 0.25-4+deb9u1 | DLA-2727-1 |
| Debian 8 | pyxdg | 0.25-4+deb8u1 | DLA-1819-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | pyxdg | 0.25-4ubuntu1.1 | USN-4700-1 |
| Ubuntu 16.04 LTS | pyxdg | 0.25-4ubuntu0.16.04.1 | USN-4700-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 14.04 LTS | pyxdg | 0.25-4ubuntu0.14.04.1~esm1 | USN-4700-1 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP1 | python-pyxdg | 0.25-150000.3.3.1 | SUSE-SU-2022:2997-1 |
| SLES 15 | python-pyxdg | 0.25-150000.3.3.1 | SUSE-SU-2022:2997-1 |
Show 5 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 15 SP1 | python-pyxdg | 0.25-150000.3.3.1 | SUSE-SU-2022:2997-1 |
| SLES for SAP 15 | python-pyxdg | 0.25-150000.3.3.1 | SUSE-SU-2022:2997-1 |
| SLE HPC 15 SP1 | python-pyxdg | 0.25-150000.3.3.1 | SUSE-SU-2022:2997-1 |
| SLE HPC 15 | python-pyxdg | 0.25-150000.3.3.1 | SUSE-SU-2022:2997-1 |
| SUSE Enterprise Storage 6 | python-pyxdg | 0.25-150000.3.3.1 | SUSE-SU-2022:2997-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | pyxdg | < 0.26 | 0.26 | GHSA-r6v3-hpxj-r8rv |
Advisories 4
- USN-4700-1 pyxdg vulnerability Ubuntu Security Notices (USN) · Jun 29, 2026
- DLA-2727-1 pyxdg - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-1819-1 pyxdg - security update Debian Security (DSA / DLA) · Mar 9, 2026
- SUSE-SU-2022:2997-1 Security update for python-pyxdg SUSE / openSUSE Security Updates · Feb 4, 2026