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 PCRE PCRE 4.5 PCRE PCRE 4.4 PCRE PCRE 3.9 PCRE PCRE 3.7 PCRE PCRE 3.4 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.
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
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
Solution:
Updates are available. Please see the references for more information.
PCRE PCRE 7.1
-
PCRE pcre-8.02.tar.gz
ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.02.tar.gz
PCRE PCRE 7.2
-
PCRE pcre-8.02.tar.gz
ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.02.tar.gz
PCRE PCRE 7.4
-
PCRE pcre-8.02.tar.gz
ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.02.tar.gz
PCRE PCRE 8.01
-
PCRE pcre-8.02.tar.gz
ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.02.tar.gz
PCRE PCRE 7.5
-
PCRE pcre-8.02.tar.gz
ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.02.tar.gz
PCRE PCRE 7.6
-
PCRE pcre-8.02.tar.gz
ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.02.tar.gz
PCRE PCRE 6.7
-
PCRE pcre-8.02.tar.gz
ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.02.tar.gz
PCRE PCRE 7.7
-
PCRE pcre-8.02.tar.gz
ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.02.tar.gz
PCRE PCRE 7.3
-
PCRE pcre-8.02.tar.gz
ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.02.tar.gz
PCRE PCRE 7.0
-
PCRE pcre-8.02.tar.gz
ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.02.tar.gz
PCRE PCRE 3.4
-
PCRE pcre-8.02.tar.gz
ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.02.tar.gz
PCRE PCRE 3.7
-
PCRE pcre-8.02.tar.gz
ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.02.tar.gz
PCRE PCRE 3.9
-
PCRE pcre-8.02.tar.gz
ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.02.tar.gz
PCRE PCRE 4.4
-
PCRE pcre-8.02.tar.gz
ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.02.tar.gz
PCRE PCRE 4.5
-
PCRE pcre-8.02.tar.gz
ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.02.tar.gz
PCRE PCRE 5.0
-
PCRE pcre-8.02.tar.gz
ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.02.tar.gz
PCRE PCRE 6.0
-
PCRE pcre-8.02.tar.gz
ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.02.tar.gz
PCRE PCRE 6.1
-
PCRE pcre-8.02.tar.gz
ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.02.tar.gz
PCRE PCRE 6.2
-
PCRE pcre-8.02.tar.gz
ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.02.tar.gz
References
PCRE Regular Expression Compiling Workspace Buffer Overflow Vulnerability
References:
References:
- Bug 962 �?? buffer overflow in pcre_compile.c (Michael Santos)
- PCRE Changelog (PCRE)
- PCRE Project Page (PCRE)
- PCRE compile workspace overflow (Michael Santos
)