{"id":101,"date":"2021-09-21T21:08:00","date_gmt":"2021-09-21T21:08:00","guid":{"rendered":"https:\/\/bentoboxinfosec.com\/wordpress_8\/?p=101"},"modified":"2023-05-26T21:19:45","modified_gmt":"2023-05-26T21:19:45","slug":"remote-code-execution-in-fail2ban-cve-2021-32749","status":"publish","type":"post","link":"https:\/\/bentoboxinfosec.com\/wordpress_8\/?p=101","title":{"rendered":"REMOTE CODE EXECUTION in fail2ban &#8211; CVE-2021-32749"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">fail2ban is very useful piece of software that stops brute forcing attacks on a variety of services. Knowing that fail2ban exists is serious source of frustration for me personally when I am completing a vulnerable machine or an exercise and the solution is &#8220;just brute force credentials using hydra and X wordlist.&#8221; In the back of my mind I&#8217;m always sighing and saying, &#8220;This isn&#8217;t a thing in the real world, it hasn&#8217;t been a thing for a long time.&#8221; <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">But what happens when the cure is the problem? CVE-2021-32749 has been disclosed and allows for Remote Code Execution in fail2ban. The vulnerability allows a bad actor to perform command injection by controlling the whois information associated with their IP address. The vulnerability has been patched in versions 0.10.7 and 0.11.3. As a workaround you can avoid the usage of action mail-whois.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Full writeup <a href=\"https:\/\/research.securitum.com\/fail2ban-remote-code-execution\/\">here!<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/cve.mitre.org\/cgi-bin\/cvename.cgi?name=CVE-2021-32749\">MITRE<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/nvd.nist.gov\/vuln\/detail\/CVE-2021-32749\">NIST<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>fail2ban is very useful piece of software that stops brute forcing attacks on a variety of services. Knowing that fail2ban exists is serious source of frustration for me personally when I am completing a vulnerable machine or an exercise and the solution is &#8220;just brute force credentials using hydra and X wordlist.&#8221; In the back &#8230; <a href=\"https:\/\/bentoboxinfosec.com\/wordpress_8\/?p=101\" class=\"more-link\">Read More<span class=\"screen-reader-text\"> &#8220;REMOTE CODE EXECUTION in fail2ban &#8211; CVE-2021-32749&#8221;<\/span> &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,5],"tags":[47,9,46,16],"class_list":["post-101","post","type-post","status-publish","format-standard","hentry","category-news","category-vulnerability","tag-cve-2021-32749","tag-cybersecurity-news","tag-fail2ban","tag-informationsecurity-news"],"_links":{"self":[{"href":"https:\/\/bentoboxinfosec.com\/wordpress_8\/index.php?rest_route=\/wp\/v2\/posts\/101","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bentoboxinfosec.com\/wordpress_8\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bentoboxinfosec.com\/wordpress_8\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bentoboxinfosec.com\/wordpress_8\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bentoboxinfosec.com\/wordpress_8\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=101"}],"version-history":[{"count":1,"href":"https:\/\/bentoboxinfosec.com\/wordpress_8\/index.php?rest_route=\/wp\/v2\/posts\/101\/revisions"}],"predecessor-version":[{"id":102,"href":"https:\/\/bentoboxinfosec.com\/wordpress_8\/index.php?rest_route=\/wp\/v2\/posts\/101\/revisions\/102"}],"wp:attachment":[{"href":"https:\/\/bentoboxinfosec.com\/wordpress_8\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=101"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bentoboxinfosec.com\/wordpress_8\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=101"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bentoboxinfosec.com\/wordpress_8\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=101"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}