OS Command Injection in Yaws - CVE-2020-24916
Published: September 9, 2020 / Updated: September 27, 2020
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary shell commands on the target system.
The vulnerability exists due to improper input validation within CGI implementation in Yaws web server. A remote unauthenticated attacker can pass specially crafted data to the application and execute arbitrary OS commands on the target system.
Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.
Affected software
Arch Linux
Ubuntu
yaws (Debian package)
erlang-yapp (Ubuntu package)
erlang-yaws (Ubuntu package)
yaws (Ubuntu package)
yaws-mail (Ubuntu package)
How to mitigate CVE-2020-24916
yaws (Debian package) - update to 2.0.6+dfsg-1+deb10u1
erlang-yapp (Ubuntu package) - update to 2.0.4+dfsg-2ubuntu0.1
erlang-yaws (Ubuntu package) - update to 2.0.4+dfsg-2ubuntu0.1
yaws (Ubuntu package) - update to 2.0.4+dfsg-2ubuntu0.1
yaws-mail (Ubuntu package) - update to 2.0.4+dfsg-2ubuntu0.1
External References
- https://github.com/erlyaws/yaws/commits/master
- https://github.com/vulnbe/poc-yaws-cgi-shell-injection
- https://lists.debian.org/debian-lts-announce/2020/09/msg00022.html
- https://packetstormsecurity.com/files/159106/Yaws-2.0.7-XML-Injection-Command-Injection.html
- https://vuln.be/post/yaws-xxe-and-shell-injections/