Description
Stack consumption vulnerability in the fnmatch implementation in apr_fnmatch.c in the Apache Portable Runtime (APR) library before 1.4.3 and the Apache HTTP Server before 2.2.18, and in fnmatch.c in libc in NetBSD 5.1, OpenBSD 4.8, FreeBSD, Apple Mac OS X 10.6, Oracle Solaris 10, and Android, allows context-dependent attackers to cause a denial of service (CPU and memory consumption) via *? sequences in the first argument, as demonstrated by attacks against mod_autoindex in httpd.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | apr | 1.4.4-1 | — |
| Debian 13 | apr | 1.4.4-1 | — |
| Debian 12 | apr | 1.4.4-1 | — |
| Debian 6.0 | apr | 1.4.2-6+squeeze2 | DSA-2237-2 |
| Debian 5.0 | apr | 1.2.12-5+lenny4 | DSA-2237-2 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 6 | apr +1 | 1.3.9-3.el6_0.1 | RHSA-2011:0507 |
| RHEL 5 | apr +2 | 1.2.7-11.el5_6.4 | RHSA-2011:0507 |
| RHEL 4 | apr +1 | 0.9.4-25.el4 | RHSA-2011:0507 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat JBoss Web Server 1 | ant | 1.7.1-13.jdk6.ep5.el4 | RHSA-2011:0897 |
| Red Hat JBoss Web Server 1 | ant-commons-net | 1.7.1-14.ep5.el6 | RHSA-2011:0897 |
| Red Hat JBoss Web Server 1 | ant-jmf +16 | 1.7.1-13.jdk6.ep5.el5 | RHSA-2011:0897 |
| Red Hat JBoss Web Server 1 | antlr | 2.7.7-7.ep5.el4 | RHSA-2011:0897 |
| Red Hat JBoss Web Server 1 | bcel | 5.2-8.1.ep5.el4 | RHSA-2011:0897 |
| Red Hat JBoss Web Server 1 | cglib | 2.2-5.1.1.jdk6.ep5.el4 | RHSA-2011:0897 |
| Red Hat JBoss Web Server 1 | dom4j | 1.6.1-11.ep5.el4 | RHSA-2011:0897 |
| Red Hat JBoss Web Server 1 | ecj | 1:3.3.1.1-3.2.2.jdk6.ep5.el4 | RHSA-2011:0897 |
| Red Hat JBoss Web Server 1 | ecj3 | 1:3.3.1.1-3.1.1.1.jdk6.ep5.el5 | RHSA-2011:0897 |
| Red Hat JBoss Web Server 1 | glassfish-jaf | 1.1.0-6.1.1.jdk6.ep5.el4 | RHSA-2011:0897 |
| Red Hat JBoss Web Server 1 | glassfish-javamail | 1.4.2-0.4.ep5.el4 | RHSA-2011:0897 |
| Red Hat JBoss Web Server 1 | glassfish-jsf | 1.2_13-2.2.1.jdk6.ep5.el4 | RHSA-2011:0897 |
| Red Hat JBoss Web Server 1 | hibernate3 +1 | 1:3.3.2-1.4.GA_CP04.ep5.el5 | RHSA-2011:0897 |
| Red Hat JBoss Web Server 1 | hibernate3-annotations +1 | 3.4.0-3.2.GA_CP04.ep5.el5 | RHSA-2011:0897 |
| Red Hat JBoss Web Server 1 | hibernate3-commons-annotations +1 | 3.1.0-1.8.ep5.el4 | RHSA-2011:0897 |
| Red Hat JBoss Web Server 1 | hibernate3-ejb-persistence-3.0-api +1 | 1:1.0.2-3.jdk6.ep5.el4 | RHSA-2011:0897 |
| Red Hat JBoss Web Server 1 | hibernate3-entitymanager +1 | 3.4.0-4.3.GA_CP04.ep5.el4 | RHSA-2011:0897 |
| Red Hat JBoss Web Server 1 | httpd +2 | 2.2.17-11.1.ep5.el5 | RHSA-2011:0897 |
| Red Hat JBoss Web Server 1 | httpd-tools | 2.2.17-11.2.ep5.el6 | RHSA-2011:0897 |
| Red Hat JBoss Web Server 1 | httpd22 +6 | 2.2.17-14.ep5.el4 | RHSA-2011:0897 |
| Red Hat JBoss Web Server 1 | jakarta-commons-beanutils | 1.8.0-4.1.1.jdk6.ep5.el4 | RHSA-2011:0897 |
| Red Hat JBoss Web Server 1 | jakarta-commons-chain | 1.2-2.2.ep5.el4 | RHSA-2011:0897 |
| Red Hat JBoss Web Server 1 | jakarta-commons-codec | 1.3-9.1.1.jdk6.ep5.el4 | RHSA-2011:0897 |
| Red Hat JBoss Web Server 1 | jakarta-commons-collections +1 | 3.2.1-4.ep5.el4 | RHSA-2011:0897 |
| Red Hat JBoss Web Server 1 | jakarta-commons-daemon | 1:1.0.5-1.ep5.el4 | RHSA-2011:0897 |
| Red Hat JBoss Web Server 1 | jakarta-commons-daemon-jsvc | 1:1.0.5-1.4.ep5.el4 | RHSA-2011:0897 |
| Red Hat JBoss Web Server 1 | jakarta-commons-dbcp +1 | 1.2.1-16.2.ep5.el6 | RHSA-2011:0897 |
| Red Hat JBoss Web Server 1 | jakarta-commons-digester | 1.8.1-8.1.jdk6.ep5.el4 | RHSA-2011:0897 |
| Red Hat JBoss Web Server 1 | jakarta-commons-el | 1.0-19.2.jdk6.ep5.el4 | RHSA-2011:0897 |
| Red Hat JBoss Web Server 1 | jakarta-commons-fileupload | 1:1.1.1-7.4.ep5.el4 | RHSA-2011:0897 |
| Red Hat JBoss Web Server 1 | jakarta-commons-httpclient | 1:3.1-1.1.1.jdk6.ep5.el4 | RHSA-2011:0897 |
| Red Hat JBoss Web Server 1 | jakarta-commons-io | 1.4-1.3.1.jdk6.ep5.el4 | RHSA-2011:0897 |
| Red Hat JBoss Web Server 1 | jakarta-commons-launcher | 1.1-4.6.1.ep5.el4 | RHSA-2011:0897 |
| Red Hat JBoss Web Server 1 | jakarta-commons-logging +1 | 1.1.1-0.4.1.jdk6.ep5.el4 | RHSA-2011:0897 |
| Red Hat JBoss Web Server 1 | jakarta-commons-logging-jboss | 1.1-10.2.1.jdk6.ep5.el4 | RHSA-2011:0897 |
| Red Hat JBoss Web Server 1 | jakarta-commons-modeler | 2.0-4.ep5.el4 | RHSA-2011:0897 |
| Red Hat JBoss Web Server 1 | jakarta-commons-pool +1 | 1.3-11.2.1.jdk6.ep5.el4 | RHSA-2011:0897 |
| Red Hat JBoss Web Server 1 | jakarta-commons-validator | 1.3.1-7.5.1.ep5.el4 | RHSA-2011:0897 |
| Red Hat JBoss Web Server 1 | jakarta-oro | 2.0.8-3.3.2.1.jdk6.ep5.el4 | RHSA-2011:0897 |
| Red Hat JBoss Web Server 1 | jakarta-taglibs-standard | 1.1.1-9.ep5.el4 | RHSA-2011:0897 |
| Red Hat JBoss Web Server 1 | javassist | 3.12.0-1.jdk6.ep5.el4 | RHSA-2011:0897 |
| Red Hat JBoss Web Server 1 | jboss-common-core | 2.2.17-1.ep5.el4 | RHSA-2011:0897 |
| Red Hat JBoss Web Server 1 | jboss-common-logging-jdk +1 | 2.1.2-1.ep5.el4 | RHSA-2011:0897 |
| Red Hat JBoss Web Server 1 | jboss-javaee +3 | 5.0.1-2.9.ep5.el4 | RHSA-2011:0897 |
| Red Hat JBoss Web Server 1 | jcommon | 1.0.16-1.2.1.jdk6.ep5.el4 | RHSA-2011:0897 |
| Red Hat JBoss Web Server 1 | jfreechart | 1.0.13-2.3.2.1.jdk6.ep5.el4 | RHSA-2011:0897 |
| Red Hat JBoss Web Server 1 | log4j | 1.2.14-18.1.jdk6.ep5.el4 | RHSA-2011:0897 |
| Red Hat JBoss Web Server 1 | mod_cluster +5 | 1.0.10-2.GA_CP01.ep5.el4 | RHSA-2011:0897 |
| Red Hat JBoss Web Server 1 | mod_jk +2 | 1.2.31-1.ep5.el4 | RHSA-2011:0897 |
| Red Hat JBoss Web Server 1 | mod_ssl | 1:2.2.17-11.1.ep5.el5 | RHSA-2011:0897 |
| Red Hat JBoss Web Server 1 | mod_ssl22 | 1:2.2.17-14.ep5.el4 | RHSA-2011:0897 |
| Red Hat JBoss Web Server 1 | mx4j | 1:3.0.1-9.3.4.ep5.el4 | RHSA-2011:0897 |
| Red Hat JBoss Web Server 1 | objectweb-asm | 3.1-5.3.1.jdk6.ep5.el4 | RHSA-2011:0897 |
| Red Hat JBoss Web Server 1 | objectweb-asm31 | 3.1-12.1.ep5.el6 | RHSA-2011:0897 |
| Red Hat JBoss Web Server 1 | regexp | 1.5-1.2.1.jdk6.ep5.el4 | RHSA-2011:0897 |
| Red Hat JBoss Web Server 1 | struts12 | 1.2.9-3.ep5.el4 | RHSA-2011:0897 |
| Red Hat JBoss Web Server 1 | tomcat-jkstatus-ant | 1.2.31-2.ep5.el4 | RHSA-2011:0897 |
| Red Hat JBoss Web Server 1 | tomcat-native | 1.1.20-2.0.ep5.el4 | RHSA-2011:0897 |
| Red Hat JBoss Web Server 1 | tomcat5 +12 | 5.5.33-14_patch_04.ep5.el4 | RHSA-2011:0897 |
| Red Hat JBoss Web Server 1 | tomcat6 +9 | 6.0.32-14_patch_03.ep5.el6 | RHSA-2011:0897 |
| Red Hat JBoss Web Server 1 | xalan-j2 | 2.7.1-5.3_patch_04.ep5.el4 | RHSA-2011:0897 |
| Red Hat JBoss Web Server 1 | xerces-j2 | 2.9.1-3.patch01.1.ep5.el4 | RHSA-2011:0897 |
| Red Hat JBoss Web Server 1 | xml-commons +3 | 1.3.04-7.10.jdk6.ep5.el5 | RHSA-2011:0897 |
| Red Hat JBoss Web Server 1 | xml-commons-which10 +4 | 1.3.04-7.14.ep5.el6 | RHSA-2011:0897 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | apr | 1.5.2-3.4 | openSUSE-SU-2024:11596-1, openSUSE-SU-2024:10063-1 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- Apache 1.4/2.2.x - APR 'apr_fnmatch()' Denial of Service EDB-35738 · dos · May 12, 2011 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 5
- RHSA-2011:0897 Red Hat Security Advisory: JBoss Enterprise Web Server 1.0.2 update Red Hat Security Advisories (RHSA) · Aug 5, 2026
- RHSA-2011:0507 Red Hat Security Advisory: apr security update Red Hat Security Advisories (RHSA) · Aug 5, 2026
- DSA-2237-2 apr - denial of service Debian Security (DSA / DLA) · Mar 9, 2026
- openSUSE-SU-2024:10063-1 libapr1-1.5.2-3.4 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:11596-1 apr-devel-1.7.0-3.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
References
- 44574 third-party-advisory
- HPSBUX02707 vendor-advisory
- SSRT100966 vendor-advisory
- [dev] 20110511 Re: Apache Portable Runtime 1.4.4 [...] Released mailing-list
- 48308 third-party-advisory
- 20110512 Multiple Vendors libc/fnmatch(3) DoS (incl apache) third-party-advisory
- HPSBUX02702 vendor-advisory
- SSRT100619 vendor-advisory
- oval:org.mitre.oval:def:14804 vdb-entry signature
- http://www.oracle.com/technetwork/topics/security/cpujuly2013-1899826.html
- http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libc/gen/fnmatch.c#rev1.22
- http://cxib.net/stuff/apr_fnmatch.txts
- oval:org.mitre.oval:def:14638 vdb-entry signature
- 1025527 vdb-entry
- http://svn.apache.org/viewvc?view=revision&revision=1098188
- http://www.openbsd.org/cgi-bin/cvsweb/src/lib/libc/gen/fnmatch.c#rev1.15
- http://www.apache.org/dist/apr/CHANGES-APR-1.4
- http://www.apache.org/dist/apr/Announcement1.x.html
- http://svn.apache.org/viewvc?view=revision&revision=1098799
- APPLE-SA-2011-10-12-3 vendor-advisory
- http://httpd.apache.org/security/vulnerabilities_22.html
- http://svn.apache.org/viewvc/apr/apr/branches/1.4.x/strings/apr_fnmatch.c?r1=731029&r2=1098902
- 8246 third-party-advisory
- DSA-2237 vendor-advisory
- RHSA-2011:0897 vendor-advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=703390
- 44564 third-party-advisory
- http://www.apache.org/dist/httpd/Announcement2.2.html
- http://www.oracle.com/technetwork/topics/security/cpujul2012-392727.html
- 44490 third-party-advisory
- http://cxib.net/stuff/apache.fnmatch.phps
- RHSA-2011:0896 vendor-advisory
- http://support.apple.com/kb/HT5002
- MDVSA-2011:084 vendor-advisory
- [dev] 20110510 Re: Apache Portable Runtime 1.4.4 [...] Released mailing-list
- MDVSA-2013:150 vendor-advisory
- RHSA-2011:0507 vendor-advisory
- SUSE-SU-2011:1229 vendor-advisory
- [dev] 20110510 Re: fnmatch rewrite in apr, apr 1.4.3 mailing-list
- [httpd-cvs] 20190815 svn commit: r1048742 [2/4] - in /websites/staging/httpd/trunk/content: ./ security/vulnerabilities-httpd.xml security/vulnerabilities_13.html security/vulnerabilities_20.html security/vulnerabilities_22.html security/vulnerabilit mailing-list
- [httpd-cvs] 20190815 svn commit: r1048743 [2/4] - in /websites/staging/httpd/trunk/content: ./ security/vulnerabilities-httpd.xml security/vulnerabilities_13.html security/vulnerabilities_20.html security/vulnerabilities_22.html security/vulnerabilit mailing-list
- [httpd-cvs] 20190815 svn commit: r1048743 [3/4] - in /websites/staging/httpd/trunk/content: ./ security/vulnerabilities-httpd.xml security/vulnerabilities_13.html security/vulnerabilities_20.html security/vulnerabilities_22.html security/vulnerabilit mailing-list
- [httpd-cvs] 20190815 svn commit: r1048742 [3/4] - in /websites/staging/httpd/trunk/content: ./ security/vulnerabilities-httpd.xml security/vulnerabilities_13.html security/vulnerabilities_20.html security/vulnerabilities_22.html security/vulnerabilit mailing-list
- [httpd-cvs] 20200401 svn commit: r1058586 [3/4] - in /websites/staging/httpd/trunk/content: ./ security/vulnerabilities-httpd.xml security/vulnerabilities_13.html security/vulnerabilities_20.html security/vulnerabilities_22.html security/vulnerabilit mailing-list
- [httpd-cvs] 20200401 svn commit: r1058586 [2/4] - in /websites/staging/httpd/trunk/content: ./ security/vulnerabilities-httpd.xml security/vulnerabilities_13.html security/vulnerabilities_20.html security/vulnerabilities_22.html security/vulnerabilit mailing-list
- [httpd-cvs] 20200401 svn commit: r1058587 [2/4] - in /websites/staging/httpd/trunk/content: ./ security/vulnerabilities-httpd.xml security/vulnerabilities_13.html security/vulnerabilities_20.html security/vulnerabilities_22.html security/vulnerabilit mailing-list
- [httpd-cvs] 20200401 svn commit: r1058587 [3/4] - in /websites/staging/httpd/trunk/content: ./ security/vulnerabilities-httpd.xml security/vulnerabilities_13.html security/vulnerabilities_20.html security/vulnerabilities_22.html security/vulnerabilit mailing-list
- [httpd-cvs] 20210330 svn commit: r1073139 [1/13] - in /websites/staging/httpd/trunk/content: ./ security/json/ mailing-list
- [httpd-cvs] 20210330 svn commit: r1073140 [3/4] - in /websites/staging/httpd/trunk/content: ./ security/cvejsontohtml.py security/vulnerabilities_13.html security/vulnerabilities_20.html security/vulnerabilities_22.html security/vulnerabilities_24.ht mailing-list
- [httpd-cvs] 20210330 svn commit: r1888194 [7/13] - /httpd/site/trunk/content/security/json/ mailing-list
- [httpd-cvs] 20210330 svn commit: r1073140 [2/4] - in /websites/staging/httpd/trunk/content: ./ security/cvejsontohtml.py security/vulnerabilities_13.html security/vulnerabilities_20.html security/vulnerabilities_22.html security/vulnerabilities_24.ht mailing-list
- [httpd-cvs] 20210330 svn commit: r1073143 [2/3] - in /websites/staging/httpd/trunk/content: ./ security/ mailing-list
- [httpd-cvs] 20210330 svn commit: r1073139 [7/13] - in /websites/staging/httpd/trunk/content: ./ security/json/ mailing-list
- [httpd-cvs] 20210330 svn commit: r1073149 [8/13] - in /websites/staging/httpd/trunk/content: ./ security/ security/json/ mailing-list
- [httpd-cvs] 20210330 svn commit: r1073146 [2/3] - in /websites/staging/httpd/trunk/content: ./ security/cvejsontohtml.py security/vulnerabilities-httpd.xml security/vulnerabilities_22.html security/vulnerabilities_24.html mailing-list
- [httpd-cvs] 20210330 svn commit: r1073149 [1/13] - in /websites/staging/httpd/trunk/content: ./ security/ security/json/ mailing-list
- [httpd-cvs] 20210330 svn commit: r1888222 - in /httpd/site/trunk/content/security/json: CVE-2010-2068.json CVE-2010-2791.json CVE-2011-0419.json CVE-2011-3368.json mailing-list
- [httpd-cvs] 20210606 svn commit: r1075470 [3/4] - in /websites/staging/httpd/trunk/content: ./ security/json/CVE-2020-13938.json security/vulnerabilities_13.html security/vulnerabilities_20.html security/vulnerabilities_22.html security/vulnerabiliti mailing-list