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

fail2ban は、sshd ログファイルを適切に解析処理しないため、/etc/hosts.deny ファイルに任意のホストを追加される、およびサービス運用妨害 (DoS) 状態となる脆弱性が存在します。

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

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

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

NVD Vulnerability Information
CVE-2006-6302
Summary

fail2ban 0.7.4 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 login name containing certain strings with an IP address.

Summary

fail2ban 0.7.4 y anteriores no realizan de forma adecuada una análisis sintáctico de los ficheros de log de sshd, lo cual permite a atacantes remotos añadir hosts de su elección en el fichero /etc/hosts.deny y provocar una denegación de servicio añadiendo direcciones IP de su elección al fichero de log de sshd, como ha sido demostrado accediendo por ssh utilizando un nombre de acceso que contiene ciertas cadenas con una dirección IP.

Publication Date Dec. 7, 2006, 4:28 a.m.
Registration Date Jan. 29, 2021, 3:51 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.7.4
Related information, measures and tools
Common Vulnerabilities List