CVE-2007-3998
published 2007-09-04CVE-2007-3998: The wordwrap function in PHP 4 before 4.4.8, and PHP 5 before 5.2.4, does not properly use the breakcharlen variable, which allows remote attackers to cause a…
PriorityP418medium5CVSS 2.0
AVNACLAuNCNINAP
EPSS
2.99%
85.8th percentile
The wordwrap function in PHP 4 before 4.4.8, and PHP 5 before 5.2.4, does not properly use the breakcharlen variable, which allows remote attackers to cause a denial of service (divide-by-zero error and application crash, or infinite loop) via certain arguments, as demonstrated by a 'chr(0), 0, ""' argument set.
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.05.0MEDIUMAV:N/AC:L/Au:N/C:N/I:N/A:P
vendor_ubuntu7.5HIGH
vendor_redhat5.0MEDIUM
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 floating point exception inside wordwrap
vendor_redhat·2007-08-30·CVSS 5.0
CVE-2007-3998 [MEDIUM] php floating point exception inside wordwrap
php floating point exception inside wordwrap
The wordwrap function in PHP 4 before 4.4.8, and PHP 5 before 5.2.4, does not properly use the breakcharlen variable, which allows remote attackers to cause a denial of service (divide-by-zero error and application crash, or infinite loop) via certain arguments, as demonstrated by a 'chr(0), 0, ""' argument set.
Statement: This issue did not affect the versions of PHP as shipped with Red Hat Enterprise Linux 2.1.
GHSA
GHSA-7r5x-79rr-q8gm: The wordwrap function in PHP 4 before 4
ghsa_unreviewed·2022-05-01
CVE-2007-3998 [MEDIUM] CWE-20 GHSA-7r5x-79rr-q8gm: The wordwrap function in PHP 4 before 4
The wordwrap function in PHP 4 before 4.4.8, and PHP 5 before 5.2.4, does not properly use the breakcharlen variable, which allows remote attackers to cause a denial of service (divide-by-zero error and application crash, or infinite loop) via certain arguments, as demonstrated by a 'chr(0), 0, ""' argument set.
No detection rules found.
No public exploits indexed.
http://lists.opensuse.org/opensuse-security-announce/2008-01/msg00006.htmlhttp://rhn.redhat.com/errata/RHSA-2007-0889.htmlhttp://secunia.com/advisories/26642http://secunia.com/advisories/26822http://secunia.com/advisories/26838http://secunia.com/advisories/26871http://secunia.com/advisories/26895http://secunia.com/advisories/26930http://secunia.com/advisories/26967http://secunia.com/advisories/27102http://secunia.com/advisories/27377http://secunia.com/advisories/27545http://secunia.com/advisories/27864http://secunia.com/advisories/28249http://secunia.com/advisories/28658http://secunia.com/advisories/30288http://secweb.se/en/advisories/php-wordwrap-vulnerability/http://support.avaya.com/elmodocs2/security/ASA-2007-449.htmhttp://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.mandriva.com/security/advisories?name=MDKSA-2007:187http://www.php.net/ChangeLog-5.php#5.2.4http://www.php.net/releases/5_2_4.phphttp://www.redhat.com/support/errata/RHSA-2007-0890.htmlhttp://www.redhat.com/support/errata/RHSA-2007-0891.htmlhttp://www.trustix.org/errata/2007/0026/http://www.ubuntu.com/usn/usn-549-2http://www.vupen.com/english/advisories/2007/3023https://issues.rpath.com/browse/RPL-1693https://issues.rpath.com/browse/RPL-1702https://launchpad.net/bugs/173043https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10603https://usn.ubuntu.com/549-1/https://www.redhat.com/archives/fedora-package-announce/2007-September/msg00354.htmlhttp://lists.opensuse.org/opensuse-security-announce/2008-01/msg00006.htmlhttp://rhn.redhat.com/errata/RHSA-2007-0889.htmlhttp://secunia.com/advisories/26642http://secunia.com/advisories/26822http://secunia.com/advisories/26838http://secunia.com/advisories/26871http://secunia.com/advisories/26895http://secunia.com/advisories/26930http://secunia.com/advisories/26967http://secunia.com/advisories/27102http://secunia.com/advisories/27377http://secunia.com/advisories/27545http://secunia.com/advisories/27864http://secunia.com/advisories/28249http://secunia.com/advisories/28658http://secunia.com/advisories/30288http://secweb.se/en/advisories/php-wordwrap-vulnerability/http://support.avaya.com/elmodocs2/security/ASA-2007-449.htmhttp://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.mandriva.com/security/advisories?name=MDKSA-2007:187http://www.php.net/ChangeLog-5.php#5.2.4http://www.php.net/releases/5_2_4.phphttp://www.redhat.com/support/errata/RHSA-2007-0890.htmlhttp://www.redhat.com/support/errata/RHSA-2007-0891.htmlhttp://www.trustix.org/errata/2007/0026/http://www.ubuntu.com/usn/usn-549-2http://www.vupen.com/english/advisories/2007/3023https://issues.rpath.com/browse/RPL-1693https://issues.rpath.com/browse/RPL-1702https://launchpad.net/bugs/173043https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10603https://usn.ubuntu.com/549-1/https://www.redhat.com/archives/fedora-package-announce/2007-September/msg00354.html
2007-09-04
Published