製品・ソフトウェアに関する情報
fail2ban における /etc/hosts.deny ファイルに任意のホストを追加される脆弱性
Title fail2ban における /etc/hosts.deny ファイルに任意のホストを追加される脆弱性
Summary

第三者により、任意の IP アドレスを sshd ログファイルに追加されることで、/etc/hosts.deny ファイルに任意のホストを追加される、およびサービス運用妨害 (DoS) 状態にされる脆弱性が存在します。

Possible impacts 第三者により、任意の IP アドレスを sshd ログファイルに追加されることで、/etc/hosts.deny ファイルに任意のホストを追加される、およびサービス運用妨害 (DoS) 状態にされる可能性があります。
Solution

ベンダ情報および参考情報を参照して適切な対策を実施してください。

Publication Date Aug. 13, 2007, midnight
Registration Date June 26, 2012, 3:54 p.m.
Last Update June 26, 2012, 3:54 p.m.
CVSS2.0 : 警告
Score 6.8
Vector AV:N/AC:M/Au:N/C:P/I:P/A:P
Affected System
Fail2ban
Fail2ban 0.8 およびそれ以前
CVE (情報セキュリティ 共通脆弱性識別子)
ベンダー情報
Change Log
No Changed Details Date of change
0 [2012年06月26日]
  掲載
Feb. 17, 2018, 10:37 a.m.

NVD Vulnerability Information
CVE-2007-4321
Summary

fail2ban 0.8 and earlier does not properly parse sshd log files, which allows remote attackers to add arbitrary hosts to the /etc/hosts.deny file and cause a denial of service by adding arbitrary IP addresses to the sshd log file, as demonstrated by logging in via ssh with a client protocol version identification containing an IP address string, a different vector than CVE-2006-6302.

Summary

fail2ban 0.8 y anteriores no analizan sintácticamente de forma correcta los ficheros de log, lo cual permite a atacantes remotos añadir hosts de su elección al fichero /etc/hosts.deny y provocar una denegación de servicio añadiendo direcciones IP al fichero de log de ssh, como ha sido demostrado iniciando sesión vía ssh con una identificación de versión del protocolo del cliente que contiene una cadena de dirección IP, un vector diferente que CVE-2006-6302.

Publication Date Aug. 14, 2007, 9:17 a.m.
Registration Date Jan. 29, 2021, 2:18 p.m.
Last Update April 23, 2026, 9:35 a.m.
Affected software configurations
Configuration1 or higher or less more than less than
cpe:2.3:a:fail2ban:fail2ban:0.8:*:*:*:*:*:*:*
Related information, measures and tools
Common Vulnerabilities List