###### tags: `Env.Nw` # XVIII. CVE-2021-3156 1. Download the Linux ubuntu 20.04.01 vmware image from [link](https://www.linuxvmimages.com/images/ubuntu-2004/#ubuntu-20041). 2. Import the OS image to Vmware and then enter to OS. - Default user/ pass is as ubuntu/ ubuntu 3. Download the PoC code from [link](https://github.com/CptGibbon/CVE-2021-3156) 4. Extract the CVE-2021-3156 PoC code 5. Update the APT package list at first using command as `apt update -y --fix-missing` ![](https://hackmd.io/_uploads/ryoRMPW8q.png) 6. Using the following command to install the dependency packages `apt install -y make gcc` 7. Switch to CVE-2021-3156 PoC code subfolder. 8. Compile the source code. `make` 9. Using id command to retrive the current user status ![](https://hackmd.io/_uploads/r1XfVDb85.png) 10. exploit ![](https://hackmd.io/_uploads/r1nXNwZL5.png)