CVE-2007-3998

Description

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.

Category

5.0
CVSS
Severity: Medium
CVSS 2.0 •
EPSS 6.46% Top 10%
Vendor Advisory opensuse.org Vendor Advisory redhat.com Vendor Advisory debian.org Vendor Advisory gentoo.org Vendor Advisory trustix.org Vendor Advisory redhat.com Vendor Advisory ubuntu.com Vendor Advisory debian.org Vendor Advisory mandriva.com Vendor Advisory ubuntu.com Vendor Advisory redhat.com Vendor Advisory redhat.com Vendor Advisory php.net Vendor Advisory php.net
Affected: n/a n/a
Published at:
Updated at:

References

Link Tags
http://secunia.com/advisories/30288 third party advisory
http://secunia.com/advisories/26822 third party advisory
https://launchpad.net/bugs/173043 third party advisory
https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10603 vdb entry third party advisory signature
http://lists.opensuse.org/opensuse-security-announce/2008-01/msg00006.html third party advisory vendor advisory
http://secunia.com/advisories/28658 third party advisory
https://www.redhat.com/archives/fedora-package-announce/2007-September/msg00354.html third party advisory vendor advisory
http://secunia.com/advisories/26967 third party advisory
http://www.debian.org/security/2008/dsa-1444 third party advisory vendor advisory
http://www.gentoo.org/security/en/glsa/glsa-200710-02.xml third party advisory vendor advisory
http://secunia.com/advisories/27864 third party advisory
http://www.php.net/ChangeLog-5.php#5.2.4 vendor advisory
http://secunia.com/advisories/26930 third party advisory
http://www.trustix.org/errata/2007/0026/ vendor advisory broken link
http://rhn.redhat.com/errata/RHSA-2007-0889.html third party advisory vendor advisory
https://usn.ubuntu.com/549-1/ third party advisory vendor advisory
https://issues.rpath.com/browse/RPL-1693 broken link
http://secunia.com/advisories/28249 third party advisory
http://www.debian.org/security/2008/dsa-1578 third party advisory vendor advisory
https://issues.rpath.com/browse/RPL-1702 broken link
http://secunia.com/advisories/27545 third party advisory
http://support.avaya.com/elmodocs2/security/ASA-2007-449.htm third party advisory
http://secunia.com/advisories/26838 third party advisory
http://secweb.se/en/advisories/php-wordwrap-vulnerability/ third party advisory
http://secunia.com/advisories/27377 third party advisory
http://www.mandriva.com/security/advisories?name=MDKSA-2007:187 third party advisory vendor advisory
http://secunia.com/advisories/27102 third party advisory
http://www.vupen.com/english/advisories/2007/3023 permissions required vdb entry third party advisory
http://www.php.net/releases/5_2_4.php vendor advisory
http://secunia.com/advisories/26895 third party advisory
http://www.ubuntu.com/usn/usn-549-2 third party advisory vendor advisory
http://www.redhat.com/support/errata/RHSA-2007-0890.html third party advisory vendor advisory
http://www.redhat.com/support/errata/RHSA-2007-0891.html third party advisory vendor advisory
http://secunia.com/advisories/26871 third party advisory
http://secunia.com/advisories/26642 third party advisory

Frequently Asked Questions

What is the severity of CVE-2007-3998?
CVE-2007-3998 has been scored as a medium severity vulnerability.
How to fix CVE-2007-3998?
To fix CVE-2007-3998, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2007-3998 being actively exploited in the wild?
It is possible that CVE-2007-3998 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~6% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.