Buffer overflow in Pcre

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.

Vulnerability class: Buffer Overflow

EPSS: 0.023 (81.7th percentile) — read the EPSS interpretation.

Affected products

  • Pcre
  • N/a — versions n/a

Weakness classification (CWE)

Public proof-of-concept exploits

References

Frequently asked questions

What is CVE-2005-4872?
CVE-2005-4872 is a vulnerability in Pcre, classified under Improper Restriction of Operations within the Bounds of a Memory Buffer. Published 2005-12-31.
Is CVE-2005-4872 known to be exploited?
1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.