Home / Pcre / Pcre / CVE-2005-4872
CVE-2005-4872: is it exploited, and which versions of Pcre are affected and fixed?
CVE-2005-4872 is a memory corruption (buffer overflow) vulnerability in Pcre. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 07:38 UTC). Affected: pcre through 6.1 (NVD). No fixed version is listed in the sources yet; check the vendor advisory. Severity: Medium (4.3, CVSS 2.0, from NVD).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 07:38 UTC, CVE record November 19, 2026, 07:21 UTC and NVD November 19, 2026, 08:53 UTC.
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.
From the CVE record by redhat, last updated August 8, 2024, 00:01 UTC.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| pcre | pcre | through 6.1 | application |
NVD analysis (status Modified), last modified June 16, 2026, 22:19 UTC.
How severe is CVE-2005-4872?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 4.3 | CVSS 2.0 | AV:N/AC:M/Au:N/C:N/I:N/A:P | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2005-4872 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 2.32% probability of exploitation activity in the next 30 days, percentile 84.0 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer
Where are the vendor advisories and references?
- http://support.avaya.com/elmodocs2/security/ASA-2007-493.htm x_refsource_CONFIRM
- MDVSA-2008:030 vendor-advisory, x_refsource_MANDRIVA
- SUSE-SA:2008:004 vendor-advisory, x_refsource_SUSE
- 28658 third-party-advisory, x_refsource_SECUNIA
- 27773 third-party-advisory, x_refsource_SECUNIA
- 26462 vdb-entry, x_refsource_BID
- RHSA-2007:1052 vendor-advisory, x_refsource_REDHAT
- SUSE-SA:2007:062 vendor-advisory, x_refsource_SUSE
- http://www.pcre.org/changelog.txt x_refsource_CONFIRM
- 27869 third-party-advisory, x_refsource_SECUNIA
- oval:org.mitre.oval:def:11615 vdb-entry, signature, x_refsource_OVAL
- 27582 third-party-advisory, x_refsource_SECUNIA
- http://scary.beasts.org/security/CESA-2007-006.html x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- November 14, 2007
- Published
- November 14, 2007, 21:00 UTC
- CVE record updated
- August 8, 2024, 00:01 UTC by redhat
- NVD
- Modified, last modified June 16, 2026, 22:19 UTC
- Last checked
- CVE list November 19, 2026, 07:21 UTC; NVD November 19, 2026, 08:53 UTC; KEV December 3, 2026, 07:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect Pcre?
- Jun 15, 2020CVE-2019-20838 Pcre: out-of-bounds read
- Jun 15, 2020CVE-2020-14155 Pcre: integer overflow
- Jan 14, 2020CVE-2015-2326 Pcre: out-of-bounds read
- Jan 14, 2020CVE-2015-2325 Pcre: out-of-bounds read
- Mar 17, 2019CVE-2017-16231 Pcre: memory corruption (buffer overflow) disputed
- Jul 11, 2017CVE-2017-11164 Pcre: uncontrolled recursion
- Mar 23, 2017CVE-2017-7246 Pcre: memory corruption (buffer overflow)
- Mar 23, 2017CVE-2017-7245 Pcre: memory corruption (buffer overflow)
Questions about CVE-2005-4872
Is CVE-2005-4872 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 07:38 UTC. FIRST's EPSS gives it a 2.32% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Pcre are affected by CVE-2005-4872?
pcre through 6.1, per the NVD. The tables above give every range the sources list.
Which version fixes CVE-2005-4872?
None of the sources (the CVE record, the NVD and GitHub's reviewed advisories) lists a fixed version yet. Check the vendor's advisory in the references.
How severe is CVE-2005-4872?
Medium (4.3, CVSS 2.0, from NVD). The severity table above shows each score with its source.
Where is the official record of CVE-2005-4872?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.