5.0
MEDIUM
CVE-2007-3998
Apache PHP Wordwrap Buffer Overflow Vulnerability
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.

INFO

Published Date :

Sept. 4, 2007, 6:17 p.m.

Last Modified :

Oct. 26, 2018, 1:59 p.m.

Remotely Exploitable :

Yes !

Impact Score :

2.9

Exploitability Score :

10.0
Affected Products

The following products are affected by CVE-2007-3998 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Canonical ubuntu_linux
1 Debian debian_linux
1 Php php
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2007-3998.

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

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2007-3998 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2007-3998 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • Modified Analysis by [email protected]

    Oct. 26, 2018

    Action Type Old Value New Value
    Changed Reference Type https://launchpad.net/bugs/173043 No Types Assigned https://launchpad.net/bugs/173043 Third Party Advisory
    Changed Reference Type http://www.gentoo.org/security/en/glsa/glsa-200710-02.xml No Types Assigned http://www.gentoo.org/security/en/glsa/glsa-200710-02.xml Third Party Advisory
    Changed Reference Type http://www.redhat.com/support/errata/RHSA-2007-0890.html No Types Assigned http://www.redhat.com/support/errata/RHSA-2007-0890.html Third Party Advisory
    Changed Reference Type http://www.php.net/ChangeLog-5.php#5.2.4 Patch http://www.php.net/ChangeLog-5.php#5.2.4 Vendor Advisory
    Changed Reference Type http://support.avaya.com/elmodocs2/security/ASA-2007-449.htm No Types Assigned http://support.avaya.com/elmodocs2/security/ASA-2007-449.htm Third Party Advisory
    Changed Reference Type http://www.vupen.com/english/advisories/2007/3023 No Types Assigned http://www.vupen.com/english/advisories/2007/3023 Permissions Required, Third Party Advisory
    Changed Reference Type http://www.ubuntu.com/usn/usn-549-2 No Types Assigned http://www.ubuntu.com/usn/usn-549-2 Third Party Advisory
    Changed Reference Type http://secunia.com/advisories/26967 No Types Assigned http://secunia.com/advisories/26967 Third Party Advisory
    Changed Reference Type http://rhn.redhat.com/errata/RHSA-2007-0889.html No Types Assigned http://rhn.redhat.com/errata/RHSA-2007-0889.html Third Party Advisory
    Changed Reference Type http://secunia.com/advisories/26822 No Types Assigned http://secunia.com/advisories/26822 Third Party Advisory
    Changed Reference Type http://www.debian.org/security/2008/dsa-1444 No Types Assigned http://www.debian.org/security/2008/dsa-1444 Third Party Advisory
    Changed Reference Type http://secunia.com/advisories/27377 No Types Assigned http://secunia.com/advisories/27377 Third Party Advisory
    Changed Reference Type http://secunia.com/advisories/28249 No Types Assigned http://secunia.com/advisories/28249 Third Party Advisory
    Changed Reference Type http://www.php.net/releases/5_2_4.php No Types Assigned http://www.php.net/releases/5_2_4.php Vendor Advisory
    Changed Reference Type http://secunia.com/advisories/26642 Patch, Vendor Advisory http://secunia.com/advisories/26642 Third Party Advisory
    Changed Reference Type http://www.trustix.org/errata/2007/0026/ No Types Assigned http://www.trustix.org/errata/2007/0026/ Broken Link
    Changed Reference Type http://www.redhat.com/support/errata/RHSA-2007-0891.html No Types Assigned http://www.redhat.com/support/errata/RHSA-2007-0891.html Third Party Advisory
    Changed Reference Type https://issues.rpath.com/browse/RPL-1693 No Types Assigned https://issues.rpath.com/browse/RPL-1693 Broken Link
    Changed Reference Type http://secunia.com/advisories/30288 No Types Assigned http://secunia.com/advisories/30288 Third Party Advisory
    Changed Reference Type http://www.debian.org/security/2008/dsa-1578 No Types Assigned http://www.debian.org/security/2008/dsa-1578 Third Party Advisory
    Changed Reference Type http://lists.opensuse.org/opensuse-security-announce/2008-01/msg00006.html No Types Assigned http://lists.opensuse.org/opensuse-security-announce/2008-01/msg00006.html Third Party Advisory
    Changed Reference Type http://secunia.com/advisories/26838 No Types Assigned http://secunia.com/advisories/26838 Third Party Advisory
    Changed Reference Type http://www.mandriva.com/security/advisories?name=MDKSA-2007:187 No Types Assigned http://www.mandriva.com/security/advisories?name=MDKSA-2007:187 Third Party Advisory
    Changed Reference Type https://www.redhat.com/archives/fedora-package-announce/2007-September/msg00354.html No Types Assigned https://www.redhat.com/archives/fedora-package-announce/2007-September/msg00354.html Third Party Advisory
    Changed Reference Type https://issues.rpath.com/browse/RPL-1702 No Types Assigned https://issues.rpath.com/browse/RPL-1702 Broken Link
    Changed Reference Type https://usn.ubuntu.com/549-1/ No Types Assigned https://usn.ubuntu.com/549-1/ Third Party Advisory
    Changed Reference Type http://secunia.com/advisories/26871 No Types Assigned http://secunia.com/advisories/26871 Third Party Advisory
    Changed Reference Type http://secunia.com/advisories/27102 No Types Assigned http://secunia.com/advisories/27102 Third Party Advisory
    Changed Reference Type http://secunia.com/advisories/28658 No Types Assigned http://secunia.com/advisories/28658 Third Party Advisory
    Changed Reference Type http://secweb.se/en/advisories/php-wordwrap-vulnerability/ No Types Assigned http://secweb.se/en/advisories/php-wordwrap-vulnerability/ Third Party Advisory
    Changed Reference Type http://secunia.com/advisories/26930 No Types Assigned http://secunia.com/advisories/26930 Third Party Advisory
    Changed Reference Type http://secunia.com/advisories/27545 No Types Assigned http://secunia.com/advisories/27545 Third Party Advisory
    Changed Reference Type http://secunia.com/advisories/27864 No Types Assigned http://secunia.com/advisories/27864 Third Party Advisory
    Changed Reference Type https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10603 No Types Assigned https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10603 Third Party Advisory
    Changed Reference Type http://secunia.com/advisories/26895 No Types Assigned http://secunia.com/advisories/26895 Third Party Advisory
    Changed CPE Configuration OR *cpe:2.3:a:php:php:*:*:*:*:*:*:*:* versions up to (including) 4.4.7 *cpe:2.3:a:php:php:*:*:*:*:*:*:*:* versions up to (including) 5.2.3 OR *cpe:2.3:o:debian:debian_linux:3.1:*:*:*:*:*:*:* *cpe:2.3:o:debian:debian_linux:4.0:*:*:*:*:*:*:*
    Added CPE Configuration OR *cpe:2.3:a:php:php:*:*:*:*:*:*:*:* versions from (including) 4.0.0 up to (excluding) 4.4.8 *cpe:2.3:a:php:php:*:*:*:*:*:*:*:* versions from (including) 5.0.0 up to (excluding) 5.2.4
    Added CPE Configuration OR *cpe:2.3:o:canonical:ubuntu_linux:6.06:*:*:*:lts:*:*:* *cpe:2.3:o:canonical:ubuntu_linux:6.10:*:*:*:*:*:*:* *cpe:2.3:o:canonical:ubuntu_linux:7.04:*:*:*:*:*:*:* *cpe:2.3:o:canonical:ubuntu_linux:7.10:*:*:*:*:*:*:*
  • CVE Modified by [email protected]

    Oct. 03, 2018

    Action Type Old Value New Value
    Removed Reference http://www.ubuntulinux.org/support/documentation/usn/usn-549-1 [No Types Assigned]
    Added Reference https://usn.ubuntu.com/549-1/ [No Types Assigned]
  • CVE Modified by [email protected]

    Sep. 29, 2017

    Action Type Old Value New Value
    Removed Reference http://oval.mitre.org/repository/data/getDef?id=oval:org.mitre.oval:def:10603 [No Types Assigned]
    Added Reference https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10603 [No Types Assigned]
  • Initial Analysis by [email protected]

    Sep. 05, 2007

    Action Type Old Value New Value
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2007-3998 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2007-3998 weaknesses.

CAPEC-3: Using Leading 'Ghost' Character Sequences to Bypass Input Filters Using Leading 'Ghost' Character Sequences to Bypass Input Filters CAPEC-7: Blind SQL Injection Blind SQL Injection CAPEC-8: Buffer Overflow in an API Call Buffer Overflow in an API Call CAPEC-9: Buffer Overflow in Local Command-Line Utilities Buffer Overflow in Local Command-Line Utilities CAPEC-10: Buffer Overflow via Environment Variables Buffer Overflow via Environment Variables CAPEC-13: Subverting Environment Variable Values Subverting Environment Variable Values CAPEC-14: Client-side Injection-induced Buffer Overflow Client-side Injection-induced Buffer Overflow CAPEC-22: Exploiting Trust in Client Exploiting Trust in Client CAPEC-23: File Content Injection File Content Injection CAPEC-24: Filter Failure through Buffer Overflow Filter Failure through Buffer Overflow CAPEC-28: Fuzzing Fuzzing CAPEC-31: Accessing/Intercepting/Modifying HTTP Cookies Accessing/Intercepting/Modifying HTTP Cookies CAPEC-42: MIME Conversion MIME Conversion CAPEC-43: Exploiting Multiple Input Interpretation Layers Exploiting Multiple Input Interpretation Layers CAPEC-45: Buffer Overflow via Symbolic Links Buffer Overflow via Symbolic Links CAPEC-46: Overflow Variables and Tags Overflow Variables and Tags CAPEC-47: Buffer Overflow via Parameter Expansion Buffer Overflow via Parameter Expansion CAPEC-52: Embedding NULL Bytes Embedding NULL Bytes CAPEC-53: Postfix, Null Terminate, and Backslash Postfix, Null Terminate, and Backslash CAPEC-63: Cross-Site Scripting (XSS) Cross-Site Scripting (XSS) CAPEC-64: Using Slashes and URL Encoding Combined to Bypass Validation Logic Using Slashes and URL Encoding Combined to Bypass Validation Logic CAPEC-67: String Format Overflow in syslog() String Format Overflow in syslog() CAPEC-71: Using Unicode Encoding to Bypass Validation Logic Using Unicode Encoding to Bypass Validation Logic CAPEC-72: URL Encoding URL Encoding CAPEC-73: User-Controlled Filename User-Controlled Filename CAPEC-78: Using Escaped Slashes in Alternate Encoding Using Escaped Slashes in Alternate Encoding CAPEC-79: Using Slashes in Alternate Encoding Using Slashes in Alternate Encoding CAPEC-80: Using UTF-8 Encoding to Bypass Validation Logic Using UTF-8 Encoding to Bypass Validation Logic CAPEC-81: Web Server Logs Tampering Web Server Logs Tampering CAPEC-83: XPath Injection XPath Injection CAPEC-85: AJAX Footprinting AJAX Footprinting CAPEC-88: OS Command Injection OS Command Injection CAPEC-101: Server Side Include (SSI) Injection Server Side Include (SSI) Injection CAPEC-104: Cross Zone Scripting Cross Zone Scripting CAPEC-108: Command Line Execution through SQL Injection Command Line Execution through SQL Injection CAPEC-109: Object Relational Mapping Injection Object Relational Mapping Injection CAPEC-110: SQL Injection through SOAP Parameter Tampering SQL Injection through SOAP Parameter Tampering CAPEC-120: Double Encoding Double Encoding CAPEC-135: Format String Injection Format String Injection CAPEC-136: LDAP Injection LDAP Injection CAPEC-153: Input Data Manipulation Input Data Manipulation CAPEC-182: Flash Injection Flash Injection CAPEC-209: XSS Using MIME Type Mismatch XSS Using MIME Type Mismatch CAPEC-230: Serialized Data with Nested Payloads Serialized Data with Nested Payloads CAPEC-231: Oversized Serialized Data Payloads Oversized Serialized Data Payloads CAPEC-250: XML Injection XML Injection CAPEC-261: Fuzzing for garnering other adjacent user/sensitive data Fuzzing for garnering other adjacent user/sensitive data CAPEC-267: Leverage Alternate Encoding Leverage Alternate Encoding CAPEC-473: Signature Spoof Signature Spoof CAPEC-588: DOM-Based XSS DOM-Based XSS CAPEC-664: Server Side Request Forgery Server Side Request Forgery
Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

2.04 }} 1.03%

score

0.89204

percentile

CVSS2 - Vulnerability Scoring System
Access Vector
Access Complexity
Authentication
Confidentiality
Integrity
Availability