CVE-2005-4872
CVE-2005-4872 is a medium-severity vulnerability in Pcre with a CVSS 2.0 base score of 4.3. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-119.
Key facts
- Severity: Medium (CVSS 2.0 base score 4.3)
- EPSS exploit prediction: 2% (81st percentile)
- Actively exploited: Not listed in CISA KEV
- Weakness: CWE-119
- Affected product: Pcre
- Published:
- Last modified:
Description
Perl-Compatible Regular Expression (PCRE) library before 6.2 does not properly count the number of named capturing subpatterns, which allows context-dependent attackers to cause a denial of service (crash) via a regular expression with a large number of named subpatterns, which triggers a buffer overflow. NOTE: this issue was originally subsumed by CVE-2006-7224, but that CVE has been REJECTED and split.
Frequently asked questions
- What is CVE-2005-4872?
- Perl-Compatible Regular Expression (PCRE) library before 6.2 does not properly count the number of named capturing subpatterns, which allows context-dependent attackers to cause a denial of service (crash) via a regular expression with a large number of named subpatterns, which triggers a buffer overflow. NOTE: this issue was originally subsumed by CVE-2006-7224, but that CVE has been REJECTED and split.
- How severe is CVE-2005-4872?
- CVE-2005-4872 has a CVSS 2.0 base score of 4.3, rated medium severity.
- Is CVE-2005-4872 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 2% (81st percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2005-4872?
- CVE-2005-4872 affects Pcre. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2005-4872?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
- When was CVE-2005-4872 published?
- CVE-2005-4872 was published on 2005-12-31 and last updated on 2026-06-16.
References
- http://lists.opensuse.org/opensuse-security-announce/2008-01/msg00006.html
- http://scary.beasts.org/security/CESA-2007-006.html
- http://secunia.com/advisories/27582
- http://secunia.com/advisories/27773
- http://secunia.com/advisories/27869
- http://secunia.com/advisories/28658
- http://support.avaya.com/elmodocs2/security/ASA-2007-493.htm
- http://www.mandriva.com/security/advisories?name=MDVSA-2008:030
- http://www.novell.com/linux/security/advisories/2007_62_pcre.html
- http://www.pcre.org/changelog.txt
- http://www.redhat.com/support/errata/RHSA-2007-1052.html
- http://www.securityfocus.com/bid/26462
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A11615
Affected products (1)
- cpe:2.3:a:pcre:pcre:*:*:*:*:*:*:*:*
More vulnerabilities in Pcre
- CVE-2015-3210 — Critical (CVSS 9.8): Heap-based buffer overflow in PCRE 8.34 through 8.37 and PCRE2 10.10 allows remote attackers to execute arbitrary code…
- CVE-2016-3191 — Critical (CVSS 9.8): The compile_branch function in pcre_compile.c in PCRE 8.x before 8.39 and pcre2_compile.c in PCRE2 before 10.22…
- CVE-2016-1283 — Critical (CVSS 9.8): The pcre_compile2 function in pcre_compile.c in PCRE 8.38 mishandles the…
- CVE-2015-8391 — Critical (CVSS 9.8): The pcre_compile function in pcre_compile.c in PCRE before 8.38 mishandles certain [: nesting, which allows remote…
- CVE-2015-5073 — Critical (CVSS 9.1): Heap-based buffer overflow in the find_fixedlength function in pcre_compile.c in PCRE before 8.38 allows remote…
- CVE-2015-2325 — High (CVSS 7.8): The compile_branch function in PCRE before 8.37 allows context-dependent attackers to compile incorrect code, cause a…
Other CWE-119 (Improper Restriction of Operations within the Bounds of a Memory Buffer) vulnerabilities
- CVE-2026-2778 — Critical (CVSS 10.0): Sandbox escape due to incorrect boundary conditions in the DOM: Core & HTML component. This vulnerability was fixed in…
- CVE-2026-2776 — Critical (CVSS 10.0): Sandbox escape due to incorrect boundary conditions in the Telemetry component in External Software. This vulnerability…
- CVE-2025-1866 — Critical (CVSS 10.0): Improper Restriction of Operations within the Bounds of a Memory Buffer vulnerability in warmcat libwebsockets allows…
- CVE-2022-27625 — Critical (CVSS 10.0): A vulnerability regarding improper restriction of operations within the bounds of a memory buffer is found in the…
- CVE-2022-27624 — Critical (CVSS 10.0): A vulnerability regarding improper restriction of operations within the bounds of a memory buffer is found in the…
- CVE-2020-11896 — Critical (CVSS 10.0): The Treck TCP/IP stack before 6.0.1.66 allows Remote Code Execution, related to IPv4 tunneling.