7.5
CWE
119 189 190
Advisory Published
Updated

CVE-2007-4657: Buffer Overflow

First published: Tue Sep 04 2007(Updated: )

Multiple integer overflows in PHP 4 before 4.4.8, and PHP 5 before 5.2.4, allow remote attackers to obtain sensitive information (memory contents) or cause a denial of service (thread crash) via a large len value to the (1) strspn or (2) strcspn function, which triggers an out-of-bounds read. NOTE: this affects different product versions than CVE-2007-3996.

Credit: cve@mitre.org

Affected SoftwareAffected VersionHow to fix
PHP>=4.0.0<4.4.8
PHP>=5.0.0<5.2.4
Debian Linux=3.1
Debian Linux=4.0
Ubuntu=6.06
Ubuntu=7.04
Ubuntu=7.10
Ubuntu=6.10

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.

Frequently Asked Questions

  • What is the severity of CVE-2007-4657?

    CVE-2007-4657 has been classified as a medium severity vulnerability due to its potential to cause denial of service and information leakage.

  • How do I fix CVE-2007-4657?

    To fix CVE-2007-4657, upgrade PHP to version 4.4.8 or later, or to version 5.2.4 or later.

  • What software is affected by CVE-2007-4657?

    CVE-2007-4657 affects PHP versions before 4.4.8 and 5.2.4, as well as specific versions of Debian and Ubuntu Linux.

  • What types of exploitations are possible with CVE-2007-4657?

    CVE-2007-4657 can be exploited to obtain sensitive information through memory leaks or can lead to a denial of service by crashing the application.

  • Is CVE-2007-4657 still a concern for modern applications?

    CVE-2007-4657 is less of a concern for modern applications using supported PHP versions, but users of outdated versions should be aware of this vulnerability.

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