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.
The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.
Link | Tags |
---|---|
https://gist.github.com/dhondta/b45cd41f4186110a354dc7272916feba | third party advisory exploit |
https://snyk.io/vuln/SNYK-PYTHON-PYXDG-174562 | third party advisory |
https://lists.debian.org/debian-lts-announce/2019/06/msg00006.html | mailing list |
https://lists.debian.org/debian-lts-announce/2021/08/msg00003.html | mailing list |