CVE-2005-4872
Perl-Compatible Regular Expression (PCRE) library before 6.2 does not properly count the number of named capturing subpatterns, which…
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.
Exploitation
EPSS 2.32%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 84.1% of all scored CVEs. Scores of 26 Nov 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
n/a
n/a
|
affected all versions
|
Is my server affected?
Find the installed version of the package (replace PACKAGE with its name) and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i PACKAGE
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2005-4872 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2005-4872RHEL, Rocky, Alma, Fedora
rpm -q PACKAGE
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2005-4872Alpine
apk list --installed | grep -i PACKAGEWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2005-4872
trivy image --scanners vuln IMAGE | grep CVE-2005-4872
Patchbrief makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Install the agent.
References
Advisories
- http://support.avaya.com/elmodocs2/security/ASA-2007-493.htm support.avaya.com
- MDVSA-2008:030 mandriva.com · vendor advisory
- SUSE-SA:2008:004 lists.opensuse.org · vendor advisory
- 28658 secunia.com · third party advisory
- 27773 secunia.com · third party advisory
- RHSA-2007:1052 redhat.com · vendor advisory
- SUSE-SA:2007:062 novell.com · vendor advisory
- http://www.pcre.org/changelog.txt pcre.org
- 27869 secunia.com · third party advisory
- 27582 secunia.com · third party advisory
Other references
- 26462 securityfocus.com · vdb entry
- oval:org.mitre.oval:def:11615 oval.cisecurity.org · vdb entry, signature
- http://scary.beasts.org/security/CESA-2007-006.html scary.beasts.org
Source: the record CVE-2005-4872 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.