Stack consumption vulnerability in the fnmatch implementation in apr_fnmatch.c in the Apache Portable Runtime (APR) library before 1.4.3 and
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.
- Published
- May 16, 2011
- Updated
- Jun 16, 2026
- EPSS
- 30.4% · 98th percentile
- CWE
- CWE-770
Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.
Report tools
Action score
26
Monitor
Low priority for now.
- CVSS
- 17 / 40 · 4.3 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 9 / 30 · 30.4%
Affected systems
| Vendor | Product | CPE |
|---|---|---|
| apache | portable runtime | cpe:2.3:a:apache:portable_runtime |
| apache | http server | cpe:2.3:a:apache:http_server |
| apple | mac os x | cpe:2.3:o:apple:mac_os_x |
| freebsd | freebsd | cpe:2.3:o:freebsd:freebsd |
| android | cpe:2.3:o:google:android | |
| netbsd | netbsd | cpe:2.3:o:netbsd:netbsd |
| openbsd | openbsd | cpe:2.3:o:openbsd:openbsd |
| oracle | solaris | cpe:2.3:o:oracle:solaris |
| debian | debian linux | cpe:2.3:o:debian:debian_linux |
| suse | linux enterprise server | cpe:2.3:o:suse:linux_enterprise_server |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- apache http server2.0.0 and later · up to 2.0.65 inclusive
- apache http server2.2.0 and later · up to 2.2.18 inclusive
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:12 | apr | before 1.4.4-1 | 1.4.4-1 |
| Debian:5.0 | apr | before 1.2.12-5+lenny4 | 1.2.12-5+lenny4 |
| Debian:6.0 | apr | before 1.4.2-6+squeeze2 | 1.4.2-6+squeeze2 |
| openSUSE:Tumbleweed | apr | before 1.5.2-3.4 | 1.5.2-3.4 |
| openSUSE:Tumbleweed | apr | before 1.7.0-3.1 | 1.7.0-3.1 |
| Red Hat:enterprise_linux:4::as | apr | before 0:0.9.4-25.el4 | 0:0.9.4-25.el4 |
| Red Hat:enterprise_linux:4::as | apr-debuginfo | before 0:0.9.4-25.el4 | 0:0.9.4-25.el4 |
| Red Hat:enterprise_linux:4::as | apr-devel | before 0:0.9.4-25.el4 | 0:0.9.4-25.el4 |
| Red Hat:enterprise_linux:5::client | apr-docs | before 0:1.2.7-11.el5_6.4 | 0:1.2.7-11.el5_6.4 |
| Red Hat:enterprise_linux:5::client_workstation | apr | before 0:1.2.7-11.el5_6.4 | 0:1.2.7-11.el5_6.4 |
| Red Hat:enterprise_linux:5::client_workstation | apr-debuginfo | before 0:1.2.7-11.el5_6.4 | 0:1.2.7-11.el5_6.4 |
| Red Hat:enterprise_linux:5::client_workstation | apr-devel | before 0:1.2.7-11.el5_6.4 | 0:1.2.7-11.el5_6.4 |
| Red Hat:enterprise_linux:6::client | apr | before 0:1.3.9-3.el6_0.1 | 0:1.3.9-3.el6_0.1 |
| Red Hat:enterprise_linux:6::client | apr-debuginfo | before 0:1.3.9-3.el6_0.1 | 0:1.3.9-3.el6_0.1 |
| Red Hat:enterprise_linux:6::client | apr-devel | before 0:1.3.9-3.el6_0.1 | 0:1.3.9-3.el6_0.1 |
| Red Hat:jboss_enterprise_web_server:1::el4 | ant | before 0:1.7.1-13.jdk6.ep5.el4 | 0:1.7.1-13.jdk6.ep5.el4 |
| Red Hat:jboss_enterprise_web_server:1::el4 | antlr | before 0:2.7.7-7.ep5.el4 | 0:2.7.7-7.ep5.el4 |
| Red Hat:jboss_enterprise_web_server:1::el4 | bcel | before 0:5.2-8.1.ep5.el4 | 0:5.2-8.1.ep5.el4 |
| Red Hat:jboss_enterprise_web_server:1::el4 | cglib | before 0:2.2-5.1.1.jdk6.ep5.el4 | 0:2.2-5.1.1.jdk6.ep5.el4 |
| Red Hat:jboss_enterprise_web_server:1::el4 | dom4j | before 0:1.6.1-11.ep5.el4 | 0:1.6.1-11.ep5.el4 |
| Red Hat:jboss_enterprise_web_server:1::el4 | ecj | before 1:3.3.1.1-3.2.2.jdk6.ep5.el4 | 1:3.3.1.1-3.2.2.jdk6.ep5.el4 |
| Red Hat:jboss_enterprise_web_server:1::el4 | glassfish-jaf | before 0:1.1.0-6.1.1.jdk6.ep5.el4 | 0:1.1.0-6.1.1.jdk6.ep5.el4 |
| Red Hat:jboss_enterprise_web_server:1::el4 | glassfish-javamail | before 0:1.4.2-0.4.ep5.el4 | 0:1.4.2-0.4.ep5.el4 |
| Red Hat:jboss_enterprise_web_server:1::el4 | glassfish-jsf | before 0:1.2_13-2.2.1.jdk6.ep5.el4 | 0:1.2_13-2.2.1.jdk6.ep5.el4 |
+96
Same product
apache: all recordsOther highest-scoring records for the same primary product.
- CVE-2022-28331Apache Portable Runtime (APR): Windows out-of-bounds write in apr_socket_sendv function39Monitor
- CVE-2022-24963Apache Portable Runtime (APR): out-of-bound writes in the apr_encode family of functions39Monitor
- CVE-2012-0840tables/apr_hash.c in the Apache Portable Runtime (APR) library through 1.4.5 computes hash values without restricting the ability to trigger33Monitor
- CVE-2017-12613When apr_time_exp*() or apr_os_exp_time*() functions are invoked with an invalid month field value in Apache Portable Runtime APR 1.6.2 and 29Monitor
- CVE-2021-35940Regression of CVE-2017-1261328Monitor
- CVE-2023-49582Apache Portable Runtime (APR): Unexpected lax shared memory permissions22Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| debian:apr | 1.4.4-1 · Debian:12 | Package registry (OSV) |
| opensuse:apr | 1.5.2-3.4 · openSUSE:Tumbleweed | Package registry (OSV) |
| red hat:ant | 0:1.7.1-13.jdk6.ep5.el4 · Red Hat:jboss_enterprise_web_server:1::el4 | Package registry (OSV) |
| red hat:antlr | 0:2.7.7-7.ep5.el4 · Red Hat:jboss_enterprise_web_server:1::el4 | Package registry (OSV) |
| red hat:apr | 0:0.9.4-25.el4 · Red Hat:enterprise_linux:4::as | Package registry (OSV) |
| red hat:apr-debuginfo | 0:0.9.4-25.el4 · Red Hat:enterprise_linux:4::as | Package registry (OSV) |
| red hat:apr-devel | 0:0.9.4-25.el4 · Red Hat:enterprise_linux:4::as | Package registry (OSV) |
| red hat:apr-docs | 0:1.2.7-11.el5_6.4 · Red Hat:enterprise_linux:5::client | Package registry (OSV) |
| red hat:bcel | 0:5.2-8.1.ep5.el4 · Red Hat:jboss_enterprise_web_server:1::el4 | Package registry (OSV) |
| red hat:cglib | 0:2.2-5.1.1.jdk6.ep5.el4 · Red Hat:jboss_enterprise_web_server:1::el4 | Package registry (OSV) |
| red hat:dom4j | 0:1.6.1-11.ep5.el4 · Red Hat:jboss_enterprise_web_server:1::el4 | Package registry (OSV) |
| red hat:ecj | 1:3.3.1.1-3.2.2.jdk6.ep5.el4 · Red Hat:jboss_enterprise_web_server:1::el4 | Package registry (OSV) |
| red hat:glassfish-jaf | 0:1.1.0-6.1.1.jdk6.ep5.el4 · Red Hat:jboss_enterprise_web_server:1::el4 | Package registry (OSV) |
| red hat:glassfish-javamail | 0:1.4.2-0.4.ep5.el4 · Red Hat:jboss_enterprise_web_server:1::el4 | Package registry (OSV) |
Exploit status
Proof of concept available
A public proof of concept or detection signature exists. Exploit knowledge is out there; don't delay patching.
Evidence
- Exploit-DB entry ×1
Noroxi does not host or link to exploit code. Metasploit module names and Nuclei template ids are shown (names, not code); Exploit-DB entries and PoC repositories are given as counts only.
| Source | Kind | Date |
|---|---|---|
| Exploit-DB entry | dos | 2011-05-12 |
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
- First PoC-5 d
- Published
- TodaySep 30, 2026+5616 d
FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
No commit or PR link among the references.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
No credits in the CNA record.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
No nightly-computed relations.
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
No known public program.
Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).
Technical details
Attack conditions
If successful
- Confidentiality
- none
- Integrity
- none
- Availability
- P · the service can be disrupted
- Attack complexity
- M
- Confidentiality impact
- None
- Integrity impact
- None
- Availability impact
- P
Weakness class (CWE)
CWE-770 · Allocation of Resources Without Limits or ThrottlingCVSS vector
AV:N/AC:M/Au:N/C:N/I:N/A:P
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
- FloodingCAPEC-125likelihood: High · Medium
- Excessive AllocationCAPEC-130likelihood: Medium · Medium
- XML Ping of the DeathCAPEC-147likelihood: Low · Medium
- Exponential Data ExpansionCAPEC-197likelihood: High · Medium
- Serialized Data Parameter BlowupCAPEC-229likelihood: High · High
- Serialized Data with Nested PayloadsCAPEC-230likelihood: Medium · High
- Oversized Serialized Data PayloadsCAPEC-231likelihood: Medium · High
- HTTP DoSCAPEC-469Low
ATT&CK techniques
- Network Denial of Service:Direct Network FloodT1498.001
- Network Denial of Service:Reflection AmplificationT1498.002
- Endpoint Denial of ServiceT1499
- Endpoint Denial of Service: OS Exhaustion FloodT1499.001
- Endpoint Denial of Service:Service Exhaustion FloodT1499.002
- Endpoint Denial of Service:Application Exhaustion FloodT1499.003
Noroxi analysis
No Noroxi analysis for this record yet
We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.
We use this product, ask for helpChange log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
- cvsweb.netbsd.org/bsdweb.cgi/src/lib/libc/gen/fnmatch.c#rev1.22
- cxib.net/stuff/apache.fnmatch.phps
- cxib.net/stuff/apr_fnmatch.txts
- httpd.apache.org/security/vulnerabilities_22.html
- lists.apple.com/archives/Security-announce/2011//Oct/msg00003.html
- lists.opensuse.org/opensuse-security-announce/2011-11/msg00011.html
- marc.info/?l=bugtraq&m=131551295528105&w=2
- marc.info/?l=bugtraq&m=131731002122529&w=2
- marc.info/?l=bugtraq&m=132033751509019&w=2
- marc.info/?l=bugtraq&m=134987041210674&w=2
- secunia.com/advisories/44490
- secunia.com/advisories/44564
- secunia.com/advisories/44574
- secunia.com/advisories/48308
- securitytracker.com/id?1025527
- support.apple.com/kb/HT5002
- svn.apache.org/viewvc/apr/apr/branches/1.4.x/strings/apr_fnmatch.c?r1=731029&r2=1098902
- svn.apache.org/viewvc?view=revision&revision=1098188
- svn.apache.org/viewvc?view=revision&revision=1098799
- www.apache.org/dist/apr/Announcement1.x.html
Vendor advisories and official records. Exploit/PoC links are deliberately left out.