copyright | disclaimer | privacy | contact  
Australia's Leading Computer Emergency Response Team
Search this site

On this site

 > About AusCERT
 > Membership
 > Contact Us
 > PKI Services
 > Publications
 > Sec. Bulletins
 > Conferences
 > News & Media
 > Services
 > Web Log
 > Site Map
 > Site Help
 > Member login


ESB-2007.0868 -- [UNIX/Linux][Debian] -- New pcre3 packages fix arbitrary code execution

Date: 06 November 2007
References: ESB-2007.0869  ESB-2007.0966  AL-2008.0048  ESB-2008.0464  

Click here for printable version
Click here for PGP verifiable version
Hash: SHA1

             AUSCERT External Security Bulletin Redistribution

                   ESB-2007.0868 -- [UNIX/Linux][Debian]
              New pcre3 packages fix arbitrary code execution
                              6 November 2007


        AusCERT Security Bulletin Summary

Product:              pcre3
Publisher:            Debian
Operating System:     UNIX variants (UNIX, Linux, OSX)
                      Debian GNU/Linux 4.0
                      Debian GNU/Linux 3.1
Impact:               Execute Arbitrary Code/Commands
                      Denial of Service
                      Inappropriate Access
Access:               Existing Account
CVE Names:            CVE-2007-4768 CVE-2007-4767 CVE-2007-4766
                      CVE-2007-1662 CVE-2007-1661 CVE-2007-1660

Original Bulletin:

Comment: This advisory references vulnerabilities in products which run on
         platforms other than Debian. It is recommended that administrators
         running pcre3 check for an updated version of the software for
         their operating system.

- --------------------------BEGIN INCLUDED TEXT--------------------

Hash: SHA1

- - ------------------------------------------------------------------------
Debian Security Advisory DSA-1399-1                                   Florian Weimer
November 5th, 2007          
- - ------------------------------------------------------------------------

Package        : pcre3
Vulnerability  : several
Problem type   : local (remote)
Debian-specific: no
CVE Ids        : CVE-2007-1659 CVE-2007-1660 CVE-2007-1661 CVE-2007-1662
                 CVE-2007-4766 CVE-2007-4767 CVE-2007-4768

Tavis Ormandy of the Google Security Team has discovered several
security issues in PCRE, the Perl-Compatible Regular Expression library,
which potentially allow attackers to execute arbitrary code by compiling
specially crafted regular expressions.

Version 7.0 of the PCRE library featured a major rewrite of the regular
expression compiler, and it was deemed infeasible to backport the
security fixes in version 7.3 to the versions in Debian's stable and
oldstable distributions (6.7 and 4.5, respectively).  Therefore, this
update contains version 7.3, with special patches to improve the
compatibility with the older versions.  As a result, extra care is
necessary when applying this update.

The Common Vulnerabilities and Exposures project identifies the
following problems:


    Unmatched \Q\E sequences with orphan \E codes can cause the compiled
    regex to become desynchronized, resulting in corrupt bytecode that may
    result in multiple exploitable conditions.

    Multiple forms of character class had their sizes miscalculated on
    initial passes, resulting in too little memory being allocated.


    Multiple patterns of the form  \X?\d or \P{L}?\d in non-UTF-8 mode
    could backtrack before the start of the string, possibly leaking
    information from the address space, or causing a crash by reading out
    of bounds. 


    A number of routines can be fooled into reading past the end of an
    string looking for unmatched parentheses or brackets, resulting in a
    denial of service. 


    Multiple integer overflows in the processing of escape sequences could
    result in heap overflows or out of bounds reads/writes.


    Multiple infinite loops and heap overflows were disovered in the
    handling of \P and \P{x} sequences, where the length of these
    non-standard operations was mishandled.


    Character classes containing a lone unicode sequence were incorrectly
    optimised, resulting in a heap overflow.

For the stable distribution (etch), these problems have been fixed in
version 6.7+7.4-2.

For the old stable distribution (sarge), these problems have been fixed in
version 4.5+7.4-1.

For the unstable distribution (sid), these problems have been fixed in
version 7.3-1.

Upgrade instructions
- - --------------------

wget url
        will fetch the file for you
dpkg -i file.deb
        will install the referenced file.

If you are using the apt-get package manager, use the line for
sources.list as given below:

apt-get update
        will update the internal database
apt-get upgrade
        will install corrected packages

You may use an automated update by adding the resources from the
footer to the proper configuration.

Debian GNU/Linux 3.1 alias sarge
- - --------------------------------

Source archives:
    Size/MD5 checksum:      883 c0a3ccb50369530f99e2316800fc8235
    Size/MD5 checksum:    95042 afc6a74beeef8cf5d176f67c69d24134
    Size/MD5 checksum:  1106897 de886b22cddc8eaf620a421d3041ee0b

Architecture independent packages:
    Size/MD5 checksum:      762 6eaceaa90e829e7cdfa06fb998bb8233

alpha architecture (DEC Alpha)
    Size/MD5 checksum:   218176 350cc1e53f59d700e499d1a748f8cbd8
    Size/MD5 checksum:   191076 fb92cd7ca9ef7716e60160acea9d8074
    Size/MD5 checksum:    21342 27b99f0f6f80046b565fb2ee4521bc9f

arm architecture (ARM)
    Size/MD5 checksum:   209516 854273bab63857eaf33161db3c51fafb
    Size/MD5 checksum:    19404 dceedf5791eb956b0c17d981fde97d60
    Size/MD5 checksum:   183560 a2571d9ddd20dea2b8c02c6f82aa2e04

hppa architecture (HP PA RISC)
    Size/MD5 checksum:   208360 30d77147bb19d09c3022892f3c56799b
    Size/MD5 checksum:    21022 c7a12598a8d72e3a1920ddf59d41c05b
    Size/MD5 checksum:   190744 14a88e3a22a4513b33fd190fa985c459

i386 architecture (Intel ia32)
    Size/MD5 checksum:   206134 433a36e096973d372994b3652504707f
    Size/MD5 checksum:   183984 aa21622f099330f60614304832e4c7f5
    Size/MD5 checksum:    19034 d9af02efce9d0a499a0ab175a66a22ee

ia64 architecture (Intel ia64)
    Size/MD5 checksum:   228448 8185ea0adb742d386eafbedb1a6150fa
    Size/MD5 checksum:    24758 78fe5bff205289853471e48df1c9313f
    Size/MD5 checksum:   211152 cea2a6ce5b965832743c0934147b9dc6

m68k architecture (Motorola Mc680x0)
    Size/MD5 checksum:   172344 e36b664fd639e7da09087e48e3015e1c
    Size/MD5 checksum:    17974 e4cf7a1f5c4e877e6303de0f1713bf37
    Size/MD5 checksum:   194320 ec7a340511218566fbf8fd24107c8db4

mips architecture (MIPS (Big Endian))
    Size/MD5 checksum:   181276 c6d1b927b0c1d76ef0f8c9aab01cc46d
    Size/MD5 checksum:   208676 0cac847f1c0aac143dc4221e94591fa8
    Size/MD5 checksum:    20088 746734d3c58c1182f6e789e90421edab

mipsel architecture (MIPS (Little Endian))
    Size/MD5 checksum:    20236 cd7c9b57558c3f02336ef1a9336defd1
    Size/MD5 checksum:   207652 676e7376ae34519aeffca833fe148920
    Size/MD5 checksum:   181050 dfc9c14755d8cd1f6eda5869fc0cb7aa

powerpc architecture (PowerPC)
    Size/MD5 checksum:   185100 9f43e18ab5ca3fb66955c6e6c2ea8a66
    Size/MD5 checksum:    21244 d38c9a2953a360fee4985b16faf90356
    Size/MD5 checksum:   213414 d951d611b6db1843939c258b9ae75b4d

s390 architecture (IBM S/390)
    Size/MD5 checksum:   207600 67a6569168be876d2b277ab39741c8a8
    Size/MD5 checksum:    20146 9d444e72c0d2c5801dd73fc615fdf21b
    Size/MD5 checksum:   186128 fcf344c6fe92b16fac749d20c31e27b2

sparc architecture (Sun SPARC/UltraSPARC)
    Size/MD5 checksum:   182522 056c33ca98c1af1872554f11890a8aad
    Size/MD5 checksum:   206190 f03644175e2850034f6808f0d1474128
    Size/MD5 checksum:    19582 6ff7847326eb7d43bd47e889b4a41b19

Debian GNU/Linux 4.0 alias etch
- - -------------------------------

Source archives:
    Size/MD5 checksum:    79078 1894a9a0dbab52b63d7e1a28f37ab6c6
    Size/MD5 checksum:      888 4db4d7a4b61dada63242d7a95eaec294
    Size/MD5 checksum:  1106897 de886b22cddc8eaf620a421d3041ee0b

alpha architecture (DEC Alpha)
    Size/MD5 checksum:    90652 e33f31b71bfc1786479d5de48b920276
    Size/MD5 checksum:   265062 0b62fa0afb187330894b04961325471f
    Size/MD5 checksum:    21038 a7c378c89d6f69a5f04902b6a45a2a6d
    Size/MD5 checksum:   209104 52e7e3c9a756535f6f02dd07df1d276e

amd64 architecture (AMD x86_64 (AMD64))
    Size/MD5 checksum:    89822 b617645e94ca5269c1c757c7eb0a03bb
    Size/MD5 checksum:    20156 cf3f0d1a30d10a64c3f8067d5c8b98ad
    Size/MD5 checksum:   198372 f0b2e646431302b576e0de6f4e4cbd0c
    Size/MD5 checksum:   249792 cfcc6c71907b4aafd1f050569f413d2c

arm architecture (ARM)
    Size/MD5 checksum:    88786 70d5ed4db2b37df871483e236430bfd9
    Size/MD5 checksum:   198022 c10252b7cc4cb6f603efc21e20f6172f
    Size/MD5 checksum:   243784 3a34b552827049e989be0361faf88078
    Size/MD5 checksum:    19920 9bd0dafb9121bb40fa2e556b8cc27c11

hppa architecture (HP PA RISC)
    Size/MD5 checksum:   256874 aad214ff1157b3354c20348eb00e08ea
    Size/MD5 checksum:    92136 7f4b7cbfd19c837fa2e412d289ab662c
    Size/MD5 checksum:    20726 c759b1d33dd8ea8811c96ac9664c6242
    Size/MD5 checksum:   201700 c307db03fcc9d8e2cc1becd15e6458f6

i386 architecture (Intel ia32)
    Size/MD5 checksum:   246578 6fc5148f6848d4b90041a9d3d738779a
    Size/MD5 checksum:    89706 d59cc3cc167b6d81c18bd13ded830fa6
    Size/MD5 checksum:   197590 6f37a0e51e7fa6dc315f70a8f4347074
    Size/MD5 checksum:    19348 2cb19f81e576321be69962a29ffdfa60

ia64 architecture (Intel ia64)
    Size/MD5 checksum:    25654 5d93dd5f45f5ba92e97d7ce1891b7800
    Size/MD5 checksum:   230480 5853d6946a21a1404402371ba000e010
    Size/MD5 checksum:    93672 51714934316405999636b65a65a06bbe
    Size/MD5 checksum:   280418 fb98335f69702d3fed96449fbee41eee

mips architecture (MIPS (Big Endian))
    Size/MD5 checksum:    20416 01c7d89a278c432b86ab97f9b1ac96a8
    Size/MD5 checksum:   253406 7ad6c3ca69bcf480ae9d1b9199d88699
    Size/MD5 checksum:   197750 17619a85539b72c20884a68e6c4c313f
    Size/MD5 checksum:    90378 288ca9b0d5b3a599cdbe7703fc4880c1

mipsel architecture (MIPS (Little Endian))
    Size/MD5 checksum:   252222 12c6750dcd7ed0bcfd947083981367a2
    Size/MD5 checksum:    90350 aee7bd92b0cffd904cd4773b38396859
    Size/MD5 checksum:   197412 d80633436080fed5611bb7403e9ba06f
    Size/MD5 checksum:    20454 d5bfe0b06780f9286eea54d184652ab4

powerpc architecture (PowerPC)
    Size/MD5 checksum:    21268 27714c1940a36759ce00479802eb1e79
    Size/MD5 checksum:   197508 0eb430eb3d93bd269e1bd039553fe2f1
    Size/MD5 checksum:   252890 ef3bd238d7bc96f98a6e2b7e1b4fd4c3
    Size/MD5 checksum:    91972 1631a4484913482d0095921279ecbb02

s390 architecture (IBM S/390)
    Size/MD5 checksum:    20096 2470ee4920d007e89006c29f6657995d
    Size/MD5 checksum:   248408 12cc9fed15c7df3927cf2b1a67e7d932
    Size/MD5 checksum:    90404 393b5a20b3ff3994fa67b54d655a1580
    Size/MD5 checksum:   199852 41c608c3b77965984baf8369fc195e1a

sparc architecture (Sun SPARC/UltraSPARC)
    Size/MD5 checksum:    19410 7fbb3350f740710b851a0559b0dd037b
    Size/MD5 checksum:   197518 d0665f02b329c6d61715e2a35205d014
    Size/MD5 checksum:   247038 10cace98a25999d4a8cf15536a7e95f6
    Size/MD5 checksum:    88598 09bb6fa7dd8ebf1d3a18b46be0e398d4

  These files will probably be moved into the stable distribution on
  its next update.

- - ---------------------------------------------------------------------------------
For apt-get: deb stable/updates main
For dpkg-ftp: dists/stable/updates/main
Mailing list:
Package info: `apt-cache show <pkg>' and<pkg>
Version: GnuPG v1.4.6 (GNU/Linux)


- --------------------------END INCLUDED TEXT--------------------

You have received this e-mail bulletin as a result of your organisation's
registration with AusCERT. The mailing list you are subscribed to is
maintained within your organisation, so if you do not wish to continue
receiving these bulletins you should contact your local IT manager. If
you do not know who that is, please send an email to
and we will forward your request to the appropriate person.

NOTE: Third Party Rights
This security bulletin is provided as a service to AusCERT's members.  As
AusCERT did not write the document quoted above, AusCERT has had no control
over its content. The decision to follow or act on information or advice
contained in this security bulletin is the responsibility of each user or
organisation, and should be considered in accordance with your organisation's
site policies and procedures. AusCERT takes no responsibility for consequences
which may arise from following or acting on information or advice contained in
this security bulletin.

NOTE: This is only the original release of the security bulletin.  It may
not be updated when updates to the original are made.  If downloading at
a later date, it is recommended that the bulletin is retrieved directly
from the author's website to ensure that the information is still current.

Contact information for the authors of the original document is included
in the Security Bulletin above.  If you have any questions or need further
information, please contact them directly.

Previous advisories and external security bulletins can be retrieved from:

If you believe that your computer system has been compromised or attacked in 
any way, we encourage you to let us know by completing the secure National IT 
Incident Reporting Form at:

Australian Computer Emergency Response Team
The University of Queensland
Qld 4072

Internet Email:
Facsimile:      (07) 3365 7031
Telephone:      (07) 3365 4417 (International: +61 7 3365 4417)
                AusCERT personnel answer during Queensland business hours
                which are GMT+10:00 (AEST).
                On call after hours for member emergencies only.