CVE-2005-4872 Memory corruption in n/a

Medium 4.3 Published Updated

A buffer overflow in the PCRE library allows attackers to cause a denial of service via crafted regular expressions with many named subpatterns.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2005-4872?

CVE-2005-4872 is a medium-severity memory corruption vulnerability in n/a, published on 14 Nov 2007. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-119

Which versions are affected by CVE-2005-4872?

It affects 1 product.

Products include Pcre Pcre.

How do I fix CVE-2005-4872?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2005-4872 being exploited?

There is no known exploitation of CVE-2005-4872 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2005-4872, GHSA-m5xf-8w89-qqxm.

Is CVE-2005-4872 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free