CVE-2007-4657
published 2007-09-04CVE-2007-4657: 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…
PriorityP429high7.5CVSS 2.0
AVNACLAuNCPIPAP
EPSS
2.99%
85.8th percentile
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.
Affected
8 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| debian | debian_linux | — | — |
| debian | debian_linux | — | — |
| php | php | >= 4.0.0 < 4.4.8 | 4.4.8 |
| php | php | >= 5.0.0 < 5.2.4 | 5.2.4 |
CVSS provenance
nvdv2.07.5HIGHAV:N/AC:L/Au:N/C:P/I:P/A:P
vendor_ubuntu7.5HIGH
vendor_redhat6.8MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Ubuntu
PHP regression
vendor_ubuntu·2007-12-03·CVSS 7.5
[HIGH] PHP regression
Title: PHP regression
Summary: PHP regression
USN-549-1 fixed vulnerabilities in PHP. However, some upstream changes
were incomplete, which caused crashes in certain situations with Ubuntu
7.10. This update fixes the problem.
We apologize for the inconvenience.
Original advisory details:
It was discovered that the wordwrap function did not correctly
check lengths. Remote attackers could exploit this to cause
a crash or monopolize CPU resources, resulting in a denial of
service. (CVE-2007-3998)
Integer overflows were discovered in the strspn and strcspn functions.
Attackers could exploit this to read arbitrary areas of memory, possibly
gaining access to sensitive information. (CVE-2007-4657)
Stanislav Malyshev discovered that money_format function did not correctly
handle certain tok
Ubuntu
PHP vulnerabilities
vendor_ubuntu·2007-11-29·CVSS 7.5
CVE-2007-1285 [HIGH] PHP vulnerabilities
Title: PHP vulnerabilities
Summary: PHP vulnerabilities
It was discovered that the wordwrap function did not correctly
check lengths. Remote attackers could exploit this to cause
a crash or monopolize CPU resources, resulting in a denial of
service. (CVE-2007-3998)
Integer overflows were discovered in the strspn and strcspn functions.
Attackers could exploit this to read arbitrary areas of memory, possibly
gaining access to sensitive information. (CVE-2007-4657)
Stanislav Malyshev discovered that money_format function did not correctly
handle certain tokens. If a PHP application were tricked into processing
a bad format string, a remote attacker could execute arbitrary code with
application privileges. (CVE-2007-4658)
It was discovered that the php_openssl_make_REQ function did not
co
Red Hat
php integer overflow in strspn/strcspn
vendor_redhat·CVSS 6.8
CVE-2007-4657 [MEDIUM] php integer overflow in strspn/strcspn
php integer overflow in strspn/strcspn
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.
Statement: The only effect of this bug is to cause the process to read from a random segment of memory, if a large "length" parameter is passed to the strspn/strcspn function, which is under the control of the script author. This bug has no security impact.
GHSA
GHSA-43ww-xqjh-ppmf: Multiple integer overflows in PHP 4 before 4
ghsa_unreviewed·2022-05-01·CVSS 6.8
CVE-2007-4657 [MEDIUM] CWE-119 GHSA-43ww-xqjh-ppmf: Multiple integer overflows in PHP 4 before 4
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.
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
http://secunia.com/advisories/26642http://secunia.com/advisories/26822http://secunia.com/advisories/26838http://secunia.com/advisories/27102http://secunia.com/advisories/27377http://secunia.com/advisories/27864http://secunia.com/advisories/28249http://secunia.com/advisories/28318http://secunia.com/advisories/28936http://secunia.com/advisories/30288http://secweb.se/en/advisories/php-strcspn-information-leak-vulnerability/http://slackware.com/security/viewer.php?l=slackware-security&y=2008&m=slackware-security.335136http://www.debian.org/security/2008/dsa-1444http://www.debian.org/security/2008/dsa-1578http://www.gentoo.org/security/en/glsa/glsa-200710-02.xmlhttp://www.php.net/ChangeLog-4.phphttp://www.php.net/ChangeLog-5.php#5.2.4http://www.php.net/releases/4_4_8.phphttp://www.php.net/releases/5_2_4.phphttp://www.trustix.org/errata/2007/0026/http://www.ubuntu.com/usn/usn-549-2http://www.vupen.com/english/advisories/2007/3023http://www.vupen.com/english/advisories/2008/0059https://exchange.xforce.ibmcloud.com/vulnerabilities/36388https://exchange.xforce.ibmcloud.com/vulnerabilities/39399https://issues.rpath.com/browse/RPL-1693https://issues.rpath.com/browse/RPL-1702https://launchpad.net/bugs/173043https://usn.ubuntu.com/549-1/http://secunia.com/advisories/26642http://secunia.com/advisories/26822http://secunia.com/advisories/26838http://secunia.com/advisories/27102http://secunia.com/advisories/27377http://secunia.com/advisories/27864http://secunia.com/advisories/28249http://secunia.com/advisories/28318http://secunia.com/advisories/28936http://secunia.com/advisories/30288http://secweb.se/en/advisories/php-strcspn-information-leak-vulnerability/http://slackware.com/security/viewer.php?l=slackware-security&y=2008&m=slackware-security.335136http://www.debian.org/security/2008/dsa-1444http://www.debian.org/security/2008/dsa-1578http://www.gentoo.org/security/en/glsa/glsa-200710-02.xmlhttp://www.php.net/ChangeLog-4.phphttp://www.php.net/ChangeLog-5.php#5.2.4http://www.php.net/releases/4_4_8.phphttp://www.php.net/releases/5_2_4.phphttp://www.trustix.org/errata/2007/0026/http://www.ubuntu.com/usn/usn-549-2http://www.vupen.com/english/advisories/2007/3023http://www.vupen.com/english/advisories/2008/0059https://exchange.xforce.ibmcloud.com/vulnerabilities/36388https://exchange.xforce.ibmcloud.com/vulnerabilities/39399https://issues.rpath.com/browse/RPL-1693https://issues.rpath.com/browse/RPL-1702https://launchpad.net/bugs/173043https://usn.ubuntu.com/549-1/
2007-09-04
Published