PCRE Regular Expression Compiling Workspace Buffer Overflow Vulnerability

BID:39974

Info

PCRE Regular Expression Compiling Workspace Buffer Overflow Vulnerability

Bugtraq ID: 39974
Class: Boundary Condition Error
CVE:
Remote: Yes
Local: No
Published: May 06 2010 12:00AM
Updated: May 06 2010 12:00AM
Credit: Michael Santos
Vulnerable: PCRE PCRE 6.2
PCRE PCRE 6.1
PCRE PCRE 6.0
PCRE PCRE 5.0
+ Redhat Fedora Core4
PCRE PCRE 4.5
+ Debian Linux 3.1 sparc
+ Debian Linux 3.1 s/390
+ Debian Linux 3.1 ppc
+ Debian Linux 3.1 mipsel
+ Debian Linux 3.1 mips
+ Debian Linux 3.1 m68k
+ Debian Linux 3.1 ia-64
+ Debian Linux 3.1 ia-32
+ Debian Linux 3.1 hppa
+ Debian Linux 3.1 arm
+ Debian Linux 3.1 amd64
+ Debian Linux 3.1 alpha
+ Debian Linux 3.1
+ Redhat Fedora Core3
+ Ubuntu Ubuntu Linux 5.0 4 powerpc
+ Ubuntu Ubuntu Linux 5.0 4 i386
+ Ubuntu Ubuntu Linux 5.0 4 amd64
+ Ubuntu Ubuntu Linux 4.1 ppc
+ Ubuntu Ubuntu Linux 4.1 ia64
+ Ubuntu Ubuntu Linux 4.1 ia32
PCRE PCRE 4.4
PCRE PCRE 3.9
PCRE PCRE 3.7
PCRE PCRE 3.4
+ Debian Linux 3.0 sparc
+ Debian Linux 3.0 s/390
+ Debian Linux 3.0 ppc
+ Debian Linux 3.0 mipsel
+ Debian Linux 3.0 mips
+ Debian Linux 3.0 m68k
+ Debian Linux 3.0 ia-64
+ Debian Linux 3.0 ia-32
+ Debian Linux 3.0 hppa
+ Debian Linux 3.0 arm
+ Debian Linux 3.0 alpha
+ Debian Linux 3.0
PCRE PCRE 8.01
PCRE PCRE 7.7
PCRE PCRE 7.6
PCRE PCRE 7.5
PCRE PCRE 7.4
PCRE PCRE 7.3
PCRE PCRE 7.2
PCRE PCRE 7.1
PCRE PCRE 7.0
PCRE PCRE 6.7
Not Vulnerable: PCRE PCRE 8.02

Discussion

PCRE Regular Expression Compiling Workspace Buffer Overflow Vulnerability

PCRE is prone to a buffer-overflow vulnerability because the library fails to perform adequate boundary checks on user-supplied input.

Attackers may leverage this issue to execute arbitrary code in the context of an application using the PCRE library. Failed attacks may result in denial-of-service conditions.

Versions prior to PCRE 8.02 are vulnerable; applications which use the PCRE library may also be affected.

Exploit / POC

PCRE Regular Expression Compiling Workspace Buffer Overflow Vulnerability

The following proof of concept is available:

perl -e 'print "/","("x819, ")"x819, "/"' | pcretest

Solution / Fix

PCRE Regular Expression Compiling Workspace Buffer Overflow Vulnerability

Solution:
Updates are available. Please see the references for more information.


PCRE PCRE 7.1

PCRE PCRE 7.2

PCRE PCRE 7.4

PCRE PCRE 8.01

PCRE PCRE 7.5

PCRE PCRE 7.6

PCRE PCRE 6.7

PCRE PCRE 7.7

PCRE PCRE 7.3

PCRE PCRE 7.0

PCRE PCRE 3.4

PCRE PCRE 3.7

PCRE PCRE 3.9

PCRE PCRE 4.4

PCRE PCRE 4.5

PCRE PCRE 5.0

PCRE PCRE 6.0

PCRE PCRE 6.1

PCRE PCRE 6.2

References

PCRE Regular Expression Compiling Workspace Buffer Overflow Vulnerability

References:
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report