cve/2019/CVE-2019-12761.md
2024-06-09 00:33:16 +00:00

21 lines
978 B
Markdown

### [CVE-2019-12761](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-12761)
![](https://img.shields.io/static/v1?label=Product&message=n%2Fa&color=blue)
![](https://img.shields.io/static/v1?label=Version&message=n%2Fa&color=blue)
![](https://img.shields.io/static/v1?label=Vulnerability&message=n%2Fa&color=brighgreen)
### 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.
### POC
#### Reference
- https://gist.github.com/dhondta/b45cd41f4186110a354dc7272916feba
- https://gist.github.com/dhondta/b45cd41f4186110a354dc7272916feba
- https://snyk.io/vuln/SNYK-PYTHON-PYXDG-174562
- https://snyk.io/vuln/SNYK-PYTHON-PYXDG-174562
#### Github
No PoCs found on GitHub currently.