Vulnerabilities > CVE-2012-3425 - Improper Restriction of Operations within the Bounds of a Memory Buffer vulnerability in multiple products

047910
CVSS 0.0 - NONE
Attack vector
UNKNOWN
Attack complexity
UNKNOWN
Privileges required
UNKNOWN
Confidentiality impact
UNKNOWN
Integrity impact
UNKNOWN
Availability impact
UNKNOWN

Summary

The png_push_read_zTXt function in pngpread.c in libpng 1.0.x before 1.0.58, 1.2.x before 1.2.48, 1.4.x before 1.4.10, and 1.5.x before 1.5.10 allows remote attackers to cause a denial of service (out-of-bounds read) via a large avail_in field value in a PNG image.

Vulnerable Configurations

Part Description Count
OS
Canonical
4
OS
Opensuse
2
OS
Debian
1
Application
Libpng
140
Application
Redhat
2

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Buffer Overflow via Environment Variables
    This attack pattern involves causing a buffer overflow through manipulation of environment variables. Once the attacker finds that they can modify an environment variable, they may try to overflow associated buffers. This attack leverages implicit trust often placed in environment variables.
  • Overflow Buffers
    Buffer Overflow attacks target improper or missing bounds checking on buffer operations, typically triggered by input injected by an attacker. As a consequence, an attacker is able to write past the boundaries of allocated buffer regions in memory, causing a program crash or potentially redirection of execution as per the attackers' choice.
  • Client-side Injection-induced Buffer Overflow
    This type of attack exploits a buffer overflow vulnerability in targeted client software through injection of malicious content from a custom-built hostile service.
  • Filter Failure through Buffer Overflow
    In this attack, the idea is to cause an active filter to fail by causing an oversized transaction. An attacker may try to feed overly long input strings to the program in an attempt to overwhelm the filter (by causing a buffer overflow) and hoping that the filter does not fail securely (i.e. the user input is let into the system unfiltered).
  • MIME Conversion
    An attacker exploits a weakness in the MIME conversion routine to cause a buffer overflow and gain control over the mail server machine. The MIME system is designed to allow various different information formats to be interpreted and sent via e-mail. Attack points exist when data are converted to MIME compatible format and back.

Nessus

  • NASL familyDebian Local Security Checks
    NASL idDEBIAN_DLA-375-1.NASL
    descriptionThe remote Debian host is running a version of libpng prior to 1.2.44-1+squeeze6. It is, therefore, affected by the following vulnerabilities : - An out-of-bounds read error exists in the png_push_read_zTXt() function within file pngpread.c when decompressing PNG images. An unauthenticated, remote attacker can exploit this, via a large
    last seen2020-03-17
    modified2016-08-02
    plugin id92678
    published2016-08-02
    reporterThis script is Copyright (C) 2016-2020 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/92678
    titleDebian DLA-375-1 : libpng Security Update
    code
    #%NASL_MIN_LEVEL 80502
    #
    # (C) Tenable Network Security, Inc.
    #
    # The package checks in this plugin were
    # extracted from Debian Security Advisory DLA-375-1.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(92678);
      script_version("1.6");
      script_set_attribute(attribute:"plugin_modification_date", value:"2020/03/12");
    
      script_cve_id(
        "CVE-2012-3425",
        "CVE-2015-8472",
        "CVE-2015-8540"
      );
      script_bugtraq_id(
        54652,
        78624,
        80592
      );
    
      script_name(english:"Debian DLA-375-1 : libpng Security Update");
      script_summary(english:"Checks dpkg output for the updated packages.");
    
      script_set_attribute(attribute:"synopsis", value:
    "The remote Debian host is missing a security update.");
      script_set_attribute(attribute:"description", value:
    "The remote Debian host is running a version of libpng prior to
    1.2.44-1+squeeze6. It is, therefore, affected by the following
    vulnerabilities :
    
      - An out-of-bounds read error exists in the
        png_push_read_zTXt() function within file pngpread.c
        when decompressing PNG images. An unauthenticated,
        remote attacker can exploit this, via a large 'avail_in'
        field to cause a denial of service condition.
        (CVE-2012-3425)
    
      - A buffer overflow condition exists in the png_set_PLTE()
        function within file pngset.c and the png_get_PLTE()
        function within file pngget.c when handling bit-depth
        values less than 8. An unauthenticated, remote attacker
        can exploit this, via a specially crafted IHDR chunk
        in a PNG image, to cause a denial of service or have
        other unspecified impact. (CVE-2015-8472)
    
      - An integer underflow condition exists in the
        png_check_keyword() function within file pngwutil.c. An
        unauthenticated, remote attacker can exploit this, via a
        specially crafted PNG image using a space character as
        a keyword, to cause a denial of service condition or
        other unspecified impact. (CVE-2015-8540)");
      script_set_attribute(attribute:"see_also", value:"https://lists.debian.org/debian-lts-announce/2015/12/msg00017.html");
      script_set_attribute(attribute:"solution", value:
    "Upgrade the affected packages.");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:C/I:C/A:C");
      script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
      script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H");
      script_set_cvss3_temporal_vector("CVSS:3.0/E:U/RL:O/RC:C");
      script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
      script_set_attribute(attribute:"exploit_available", value:"false");
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2012/04/08");
      script_set_attribute(attribute:"patch_publication_date", value:"2015/12/27");
      script_set_attribute(attribute:"plugin_publication_date", value:"2016/08/02");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:debian:debian_linux:libpng12-0");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:debian:debian_linux:libpng12-0-udeb");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:debian:debian_linux:libpng12-dev");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:debian:debian_linux:libpng3");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:debian:debian_linux:6.0");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_family(english:"Debian Local Security Checks");
    
      script_copyright(english:"This script is Copyright (C) 2016-2020 Tenable Network Security, Inc.");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/Debian/release", "Host/Debian/dpkg-l");
    
      exit(0);
    }
    
    include("audit.inc");
    include("debian_package.inc");
    
    
    if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    if (!get_kb_item("Host/Debian/release")) audit(AUDIT_OS_NOT, "Debian");
    if (!get_kb_item("Host/Debian/dpkg-l")) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    
    flag = 0;
    if (deb_check(release:"6.0", prefix:"libpng12-0", reference:"1.2.44-1+squeeze6")) flag++;
    if (deb_check(release:"6.0", prefix:"libpng12-0-udeb", reference:"1.2.44-1+squeeze6")) flag++;
    if (deb_check(release:"6.0", prefix:"libpng12-dev", reference:"1.2.44-1+squeeze6")) flag++;
    if (deb_check(release:"6.0", prefix:"libpng3", reference:"1.2.44-1+squeeze6")) flag++;
    
    if (flag)
    {
      security_report_v4(
        port       : 0,
        severity   : SECURITY_HOLE,
        extra      : deb_report_get()
      );
      exit(0);
    }
    else audit(AUDIT_HOST_NOT, "affected");
    
  • NASL familySuSE Local Security Checks
    NASL idSUSE_LIBPNG-8234.NASL
    descriptionAn integer overflow has been fixed in libpng.
    last seen2020-06-05
    modified2012-08-15
    plugin id61547
    published2012-08-15
    reporterThis script is Copyright (C) 2012-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/61547
    titleSuSE 10 Security Update : libpng (ZYPP Patch Number 8234)
  • NASL familyUbuntu Local Security Checks
    NASL idUBUNTU_USN-2815-1.NASL
    descriptionMikulas Patocka discovered that libpng incorrectly handled certain large fields. If a user or automated system using libpng were tricked into opening a specially crafted image, an attacker could exploit this to cause libpng to crash, leading to a denial of service. This issue only affected Ubuntu 12.04 LTS. (CVE-2012-3425) Qixue Xiao discovered that libpng incorrectly handled certain time values. If a user or automated system using libpng were tricked into opening a specially crafted image, an attacker could exploit this to cause libpng to crash, leading to a denial of service. (CVE-2015-7981) It was discovered that libpng incorrectly handled certain small bit-depth values. If a user or automated system using libpng were tricked into opening a specially crafted image, an attacker could exploit this to cause a denial of service or execute code with the privileges of the user invoking the program. (CVE-2015-8126). Note that Tenable Network Security has extracted the preceding description block directly from the Ubuntu security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen2020-06-01
    modified2020-06-02
    plugin id86993
    published2015-11-20
    reporterUbuntu Security Notice (C) 2015-2019 Canonical, Inc. / NASL script (C) 2015-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/86993
    titleUbuntu 12.04 LTS / 14.04 LTS / 15.04 / 15.10 : libpng vulnerabilities (USN-2815-1)
  • NASL familySuSE Local Security Checks
    NASL idSUSE_11_LIBPNG-DEVEL-120726.NASL
    descriptionAn integer overflow has been fixed in libpng.
    last seen2020-06-05
    modified2013-01-25
    plugin id64190
    published2013-01-25
    reporterThis script is Copyright (C) 2013-2020 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/64190
    titleSuSE 11.1 Security Update : libpng (SAT Patch Number 6596)
  • NASL familyDebian Local Security Checks
    NASL idDEBIAN_DLA-343.NASL
    description - CVE-2015-7981 Added a safety check in png_set_tIME() (Bug report from Qixue Xiao). - CVE-2015-8126 Multiple buffer overflows in the (1) png_set_PLTE and (2) png_get_PLTE functions in libpng before 1.0.64, 1.1.x and 1.2.x before 1.2.54, 1.3.x and 1.4.x before 1.4.17, 1.5.x before 1.5.24, and 1.6.x before 1.6.19 allow remote attackers to cause a denial of service (application crash) or possibly have unspecified other impact via a small bit-depth value in an IHDR (aka image header) chunk in a PNG image. - CVE-2012-3425 vulnerable code is not present here NOTE: Tenable Network Security has extracted the preceding description block directly from the DLA security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen2020-03-17
    modified2015-11-18
    plugin id86907
    published2015-11-18
    reporterThis script is Copyright (C) 2015-2020 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/86907
    titleDebian DLA-343-1 : libpng security update
  • NASL familySuSE Local Security Checks
    NASL idOPENSUSE-2012-474.NASL
    description - fixed CVE-2012-3425 [bnc#772760]
    last seen2020-06-05
    modified2014-06-13
    plugin id74699
    published2014-06-13
    reporterThis script is Copyright (C) 2014-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/74699
    titleopenSUSE Security Update : libpng14 (openSUSE-SU-2012:0934-1)