7.5
CWE
NVD-CWE-Other 119 190
Advisory Published
Updated

CVE-2005-2491: Buffer Overflow

First published: Mon Aug 22 2005(Updated: )

Integer overflow in pcre_compile.c in Perl Compatible Regular Expressions (PCRE) before 6.2, as used in multiple products such as Python, Ethereal, and PHP, allows attackers to execute arbitrary code via quantifier values in regular expressions, which leads to a heap-based buffer overflow.

Credit: secalert@redhat.com secalert@redhat.com

Affected SoftwareAffected VersionHow to fix
PCRE (Perl Compatible Regular Expressions)=5.0
PCRE (Perl Compatible Regular Expressions)=6.0
PCRE (Perl Compatible Regular Expressions)=6.1

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Reference Links

Frequently Asked Questions

  • What is the severity of CVE-2005-2491?

    CVE-2005-2491 is considered high severity due to its potential for arbitrary code execution through a heap-based buffer overflow.

  • How do I fix CVE-2005-2491?

    To fix CVE-2005-2491, you should upgrade to PCRE version 6.2 or later, where the vulnerability is resolved.

  • What products are affected by CVE-2005-2491?

    CVE-2005-2491 affects various products, including Python, Ethereal, and PHP that utilize vulnerable versions of PCRE.

  • How does CVE-2005-2491 allow an attacker to exploit systems?

    CVE-2005-2491 allows an attacker to exploit systems by using specially crafted regular expressions with quantifier values that trigger the integer overflow.

  • Who is impacted by CVE-2005-2491?

    Individuals and organizations using affected versions of PCRE in their applications are impacted by CVE-2005-2491.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203