Bug 973756 (CVE-2013-2178)

Summary: CVE-2013-2178 fail2ban: remote denial of service due to apache log parsing issue
Product: [Other] Security Response Reporter: Vincent Danen <vdanen>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: admiller, axel.thimm, jlieskov, jonathan.underwood, orion
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: impact=moderate,public=20130608,reported=20130612,source=full-disclosure,cvss2=5.0/AV:N/AC:L/Au:N/C:N/I:N/A:P,fedora-all/fail2ban=affected,epel-all/fail2ban=affected
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Bug Depends On: 973757, 973758    
Bug Blocks:    

Description Vincent Danen 2013-06-12 11:46:57 EDT
It was reported [1] that fail2ban improperly parses Apache log files, due to improper regular expressions.  This could allow a remote attacker to send a crafted URL to a web site which, when parsed by fail2ban, would deny a specific IP address (not the remote attacker's IP).

This was reported against fail2ban 0.8.9, but earlier versions use the same regular expression.  This has not yet been addressed upstream; the original report suggests replacement regular expressions, but in my (limited) testing they do not seem to work (testing using fail2ban-regex).

[1] https://vndh.net/note:fail2ban-089-denial-service
Comment 1 Vincent Danen 2013-06-12 11:48:28 EDT
Created fail2ban tracking bugs for this issue

Affects: fedora-all [bug 973757]
Affects: epel-all [bug 973758]
Comment 2 Jan Lieskovsky 2013-06-17 11:34:43 EDT
The CVE identifier of CVE-2013-2178 has been assigned to this issue:
Comment 3 Fedora Update System 2013-06-28 02:15:42 EDT
fail2ban-0.8.10-1.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 4 Fedora Update System 2013-06-28 14:50:56 EDT
fail2ban-0.8.10-1.el6 has been pushed to the Fedora EPEL 6 stable repository.  If problems still persist, please make note of it in this bug report.