### [CVE-2019-20044](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-20044) ![](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 In Zsh before 5.8, attackers able to execute commands can regain privileges dropped by the --no-PRIVILEGED option. Zsh fails to overwrite the saved uid, so the original privileges can be restored by executing MODULE_PATH=/dir/with/module zmodload with a module that calls setuid(). ### POC #### Reference - http://seclists.org/fulldisclosure/2020/May/53 - http://seclists.org/fulldisclosure/2020/May/53 - http://seclists.org/fulldisclosure/2020/May/55 - http://seclists.org/fulldisclosure/2020/May/55 - http://seclists.org/fulldisclosure/2020/May/59 - http://seclists.org/fulldisclosure/2020/May/59 #### Github - https://github.com/MRXXII/zsh