CVE-2007-4657
What it is
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.
At a glance
- Exploitability
- Can be exploited over the network without logging in. Limited direct impact.
- Exploit odds
- 3.0% chance of exploitation in the next 30 days (EPSS).
- Fix
- A patch, advisory or fixed version is referenced. Upgrade or apply it.
Timeline
- PublishedDisclosed publicly on CVE.org and NVD
- Last updatedMost recent change to the record
Why it ranks here
- Exploited in the wild: no, CISA does not list it.
- Exploit odds: 3.0% in the next 30 days (EPSS).
- Severity: 7.5 HIGH (CVSS).
- Fix: a patch or advisory is linked.
Details
- Published
- Last modified
- Exploit probability
- 3.0% · EPSS, next 30 days
- Weakness
- CWE-119 · Buffer errors
- Record status
- Modified
Affected
- PHP < 4.4.8
- PHP < 5.2.4
- Debian Linux 3.1
- Debian Linux 4.0
- Canonical Ubuntu Linux 6.06
- Canonical Ubuntu Linux 6.10
- Canonical Ubuntu Linux 7.04
- Canonical Ubuntu Linux 7.10
Attack profile CVSS 2.0 · 7.5
- Attack vector
- Network
- Complexity
- Low
- Authentication
- None
- Confidentiality
- Partial
- Integrity
- Partial
- Availability
- Partial
Raw vector
AV:N/AC:L/Au:N/C:P/I:P/A:P
Is it in your code?
Hand this to your coding agent. It searches your project for the affected products and checks versions. Nothing leaves your machine.
Read https://cve-list.com/agent/cve/CVE-2007-4657.md and follow it. Check whether this project is affected by CVE-2007-4657. Read only. Don't change anything and don't upload my code. Tell me yes, no or not sure, with the file as proof.
Fix and advisories
- http://www.php.net/ChangeLog-4.php
- http://www.php.net/ChangeLog-5.php#5.2.4
- http://www.php.net/releases/4_4_8.php
- http://www.php.net/releases/5_2_4.php
- http://www.php.net/ChangeLog-4.php
- http://www.php.net/ChangeLog-5.php#5.2.4
- http://www.php.net/releases/4_4_8.php
- http://www.php.net/releases/5_2_4.php
References
- http://secunia.com/advisories/26642
- http://secunia.com/advisories/26822
- http://secunia.com/advisories/26838
- http://secunia.com/advisories/27102
- http://secunia.com/advisories/27377
- http://secunia.com/advisories/27864
- http://secunia.com/advisories/28249
- http://secunia.com/advisories/28318
- http://secunia.com/advisories/28936
- http://secunia.com/advisories/30288
- http://secweb.se/en/advisories/php-strcspn-information-leak-vulnerability/
- http://slackware.com/security/viewer.php?l=slackware-security&y=2008&m=slackware-security.335136
- http://www.debian.org/security/2008/dsa-1444
- http://www.debian.org/security/2008/dsa-1578
- http://www.gentoo.org/security/en/glsa/glsa-200710-02.xml
- http://www.php.net/ChangeLog-4.php
- http://www.php.net/ChangeLog-5.php#5.2.4
- http://www.php.net/releases/4_4_8.php
- http://www.php.net/releases/5_2_4.php
- http://www.trustix.org/errata/2007/0026/
- http://www.ubuntu.com/usn/usn-549-2
- http://www.vupen.com/english/advisories/2007/3023
- http://www.vupen.com/english/advisories/2008/0059
- https://exchange.xforce.ibmcloud.com/vulnerabilities/36388
- https://exchange.xforce.ibmcloud.com/vulnerabilities/39399