First published: Wed Nov 14 2007(Updated: )
<a href="https://access.redhat.com/security/cve/CVE-2006-7224">CVE-2006-7224</a> initially described several integer overflows in pcre, all described here: <a href="http://scary.beasts.org/security/CESA-2007-006.html">http://scary.beasts.org/security/CESA-2007-006.html</a> This id should be used to describe issue #1 in that advisory: 1) Integer overflow leading to buffer overflow. pcre_compile: --- /* Compute the size of data block needed and get it, either from malloc or externally provided function. */ size = length + sizeof(real_pcre) + name_count * (max_name_size + 3); re = (real_pcre *)(pcre_malloc)(size); --- Unfortunately, a malicious regex can easily cause large "name_count" and "max_name_size" such that this calculation overflows. Demo: (?P)(?P<0>)(?P<1>)...fill in this sequence...(?P<4293>)
Affected Software | Affected Version | How to fix |
---|---|---|
PCRE |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
The severity of REDHAT-BUG-383341 is classified as critical due to the potential for integer overflow vulnerabilities in PCRE.
To fix REDHAT-BUG-383341, upgrade to the latest version of PCRE that contains the necessary security patches.
REDHAT-BUG-383341 affects systems running vulnerable versions of the PCRE library.
REDHAT-BUG-383341 is an integer overflow vulnerability that may lead to system instability or arbitrary code execution.
REDHAT-BUG-383341 was disclosed in 2007, related to the CVE-2006-7224 vulnerabilities.