search menu icon-carat-right cmu-wordmark

CERT Coordination Center

libpng denial of service vulnerability

Vulnerability Note VU#684664

Original Release Date: 2007-05-16 | Last Revised: 2007-08-23

Overview

The libpng library contains a denial-of-service vulnerability.

Description

The libpng library can be used to allow other applications to render PNG images.

The libpng library contains a denial-of-service vulnerability.

From the Libpng-1.2.16-ADVISORY:
This vulnerability could be used to crash a browser when a user tries to view such a malformed PNG file. It is not known whether the vulnerability could be exploited otherwise.

The reason is that png_ptr->num_trans is set to 1 and then there is an error return after checking the CRC, so the trans[ ] array is never allocated. Since png_ptr->num_trans is nonzero, libpng tries to use the array later.

    An attacker may be able to exploit this vulnerability by convincing a user to open a specially crafted PNG image. The malicious image may be hosted on a website, or sent as an email attachment.

    Impact

    A remote, unauthenticated attacker may be able to create a denial-of-service condition.

    Solution

    Upgrade
    The libpng team has released a patch for libpng 1.0.25 and 1.2.17 to address this vulnerability. Administrators are encouraged to upgrade as soon as possible. Administrators who receive the libpng library from their operating system vendor should see the systems affected portion of this document for a list of affected vendors.

    Vendor Information

    684664
     

    View all 43 vendors View less vendors


    CVSS Metrics

    Group Score Vector
    Base 0 AV:--/AC:--/Au:--/C:--/I:--/A:--
    Temporal 0 E:ND/RL:ND/RC:ND
    Environmental 0 CDP:ND/TD:ND/CR:ND/IR:ND/AR:ND

    References

    Acknowledgements

    Thanks to the libpng team for information that was used in this report.

    This document was written by Ryan Giobbi.

    Other Information

    CVE IDs: CVE-2007-2445
    Severity Metric: 3.86
    Date Public: 2007-05-16
    Date First Published: 2007-05-16
    Date Last Updated: 2007-08-23 01:06 UTC
    Document Revision: 22

    Sponsored by CISA.