Vulnerabilities > CVE-2019-9143 - Uncontrolled Recursion vulnerability in Exiv2 0.27

047910
CVSS 8.8 - HIGH
Attack vector
NETWORK
Attack complexity
LOW
Privileges required
NONE
Confidentiality impact
HIGH
Integrity impact
HIGH
Availability impact
HIGH
network
low complexity
exiv2
CWE-674

Summary

An issue was discovered in Exiv2 0.27. There is infinite recursion at Exiv2::Image::printTiffStructure in the file image.cpp. This can be triggered by a crafted file. It allows an attacker to cause Denial of Service (Segmentation fault) or possibly have unspecified other impact.

Vulnerable Configurations

Part Description Count
Application
Exiv2
1

Common Weakness Enumeration (CWE)

Common Attack Pattern Enumeration and Classification (CAPEC)

  • XML Nested Payloads
    Applications often need to transform data in and out of the XML format by using an XML parser. It may be possible for an attacker to inject data that may have an adverse effect on the XML parser when it is being processed. By nesting XML data and causing this data to be continuously self-referential, an attacker can cause the XML parser to consume more resources while processing, causing excessive memory consumption and CPU utilization. An attacker's goal is to leverage parser failure to his or her advantage. In most cases this type of an attack will result in a denial of service due to an application becoming unstable, freezing, or crash. However it may be possible to cause a crash resulting in arbitrary code execution, leading to a jump from the data plane to the control plane [R.230.1].
  • XML Oversized Payloads
    Applications often need to transform data in and out of the XML format by using an XML parser. It may be possible for an attacker to inject data that may have an adverse effect on the XML parser when it is being processed. By supplying oversized payloads in input vectors that will be processed by the XML parser, an attacker can cause the XML parser to consume more resources while processing, causing excessive memory consumption and CPU utilization, and potentially cause execution of arbitrary code. An attacker's goal is to leverage parser failure to his or her advantage. In many cases this type of an attack will result in a denial of service due to an application becoming unstable, freezing, or crash. However it is possible to cause a crash resulting in arbitrary code execution, leading to a jump from the data plane to the control plane [R.231.1].
  • Violating Implicit Assumptions Regarding XML Content (aka XML Denial of Service (XDoS))
    XML Denial of Service (XDoS) can be applied to any technology that utilizes XML data. This is, of course, most distributed systems technology including Java, .Net, databases, and so on. XDoS is most closely associated with web services, SOAP, and Rest, because remote service requesters can post malicious XML payloads to the service provider designed to exhaust the service provider's memory, CPU, and/or disk space. The main weakness in XDoS is that the service provider generally must inspect, parse, and validate the XML messages to determine routing, workflow, security considerations, and so on. It is exactly these inspection, parsing, and validation routines that XDoS targets. There are three primary attack vectors that XDoS can navigate Target CPU through recursion: attacker creates a recursive payload and sends to service provider Target memory through jumbo payloads: service provider uses DOM to parse XML. DOM creates in memory representation of XML document, but when document is very large (for example, north of 1 Gb) service provider host may exhaust memory trying to build memory objects. XML Ping of death: attack service provider with numerous small files that clog the system. All of the above attacks exploit the loosely coupled nature of web services, where the service provider has little to no control over the service requester and any messages the service requester sends.
  • XML Parser Attack
    Applications often need to transform data in and out of the XML format by using an XML parser. It may be possible for an attacker to inject data that may have an adverse effect on the XML parser when it is being processed. These adverse effects may include the parser crashing, consuming too much of a resource, executing too slowly, executing code supplied by an attacker, allowing usage of unintended system functionality, etc. An attacker's goal is to leverage parser failure to his or her advantage. In some cases it may be possible to jump from the data plane to the control plane via bad data being passed to an XML parser. [R.99.1]

Redhat

advisories
bugzilla
id1800472
titleCVE-2019-20421 exiv2: infinite loop and hang in Jp2Image::readMetadata() in jp2image.cpp could lead to DoS
oval
OR
  • commentRed Hat Enterprise Linux must be installed
    ovaloval:com.redhat.rhba:tst:20070304026
  • AND
    • commentRed Hat Enterprise Linux 8 is installed
      ovaloval:com.redhat.rhba:tst:20193384074
    • OR
      • AND
        • commentgnome-color-manager-debugsource is earlier than 0:3.28.0-3.el8
          ovaloval:com.redhat.rhsa:tst:20201577001
        • commentgnome-color-manager-debugsource is signed with Red Hat redhatrelease2 key
          ovaloval:com.redhat.rhsa:tst:20201577002
      • AND
        • commentgnome-color-manager is earlier than 0:3.28.0-3.el8
          ovaloval:com.redhat.rhsa:tst:20201577003
        • commentgnome-color-manager is signed with Red Hat redhatrelease2 key
          ovaloval:com.redhat.rhsa:tst:20183140168
      • AND
        • commentlibgexiv2-debugsource is earlier than 0:0.10.8-4.el8
          ovaloval:com.redhat.rhsa:tst:20201577005
        • commentlibgexiv2-debugsource is signed with Red Hat redhatrelease2 key
          ovaloval:com.redhat.rhsa:tst:20201577006
      • AND
        • commentlibgexiv2 is earlier than 0:0.10.8-4.el8
          ovaloval:com.redhat.rhsa:tst:20201577007
        • commentlibgexiv2 is signed with Red Hat redhatrelease2 key
          ovaloval:com.redhat.rhsa:tst:20183140350
      • AND
        • commentlibgexiv2-devel is earlier than 0:0.10.8-4.el8
          ovaloval:com.redhat.rhsa:tst:20201577009
        • commentlibgexiv2-devel is signed with Red Hat redhatrelease2 key
          ovaloval:com.redhat.rhsa:tst:20183140346
      • AND
        • commentgegl-debugsource is earlier than 0:0.2.0-39.el8
          ovaloval:com.redhat.rhsa:tst:20201577011
        • commentgegl-debugsource is signed with Red Hat redhatrelease2 key
          ovaloval:com.redhat.rhsa:tst:20201577012
      • AND
        • commentgegl is earlier than 0:0.2.0-39.el8
          ovaloval:com.redhat.rhsa:tst:20201577013
        • commentgegl is signed with Red Hat redhatrelease2 key
          ovaloval:com.redhat.rhsa:tst:20121455004
      • AND
        • commentexiv2-debugsource is earlier than 0:0.27.2-5.el8
          ovaloval:com.redhat.rhsa:tst:20201577015
        • commentexiv2-debugsource is signed with Red Hat redhatrelease2 key
          ovaloval:com.redhat.rhsa:tst:20201577016
      • AND
        • commentexiv2-libs is earlier than 0:0.27.2-5.el8
          ovaloval:com.redhat.rhsa:tst:20201577017
        • commentexiv2-libs is signed with Red Hat redhatrelease2 key
          ovaloval:com.redhat.rhsa:tst:20192101004
      • AND
        • commentexiv2 is earlier than 0:0.27.2-5.el8
          ovaloval:com.redhat.rhsa:tst:20201577019
        • commentexiv2 is signed with Red Hat redhatrelease2 key
          ovaloval:com.redhat.rhsa:tst:20192101002
      • AND
        • commentexiv2-doc is earlier than 0:0.27.2-5.el8
          ovaloval:com.redhat.rhsa:tst:20201577021
        • commentexiv2-doc is signed with Red Hat redhatrelease2 key
          ovaloval:com.redhat.rhsa:tst:20192101006
      • AND
        • commentexiv2-devel is earlier than 0:0.27.2-5.el8
          ovaloval:com.redhat.rhsa:tst:20201577023
        • commentexiv2-devel is signed with Red Hat redhatrelease2 key
          ovaloval:com.redhat.rhsa:tst:20192101008
rhsa
idRHSA-2020:1577
released2020-04-28
severityModerate
titleRHSA-2020:1577: exiv2 security, bug fix, and enhancement update (Moderate)
rpms
  • exiv2-0:0.27.2-5.el8
  • exiv2-debuginfo-0:0.27.2-5.el8
  • exiv2-debugsource-0:0.27.2-5.el8
  • exiv2-devel-0:0.27.2-5.el8
  • exiv2-doc-0:0.27.2-5.el8
  • exiv2-libs-0:0.27.2-5.el8
  • exiv2-libs-debuginfo-0:0.27.2-5.el8
  • gegl-0:0.2.0-39.el8
  • gegl-debuginfo-0:0.2.0-39.el8
  • gegl-debugsource-0:0.2.0-39.el8
  • gnome-color-manager-0:3.28.0-3.el8
  • gnome-color-manager-debuginfo-0:3.28.0-3.el8
  • gnome-color-manager-debugsource-0:3.28.0-3.el8
  • libgexiv2-0:0.10.8-4.el8
  • libgexiv2-debuginfo-0:0.10.8-4.el8
  • libgexiv2-debugsource-0:0.10.8-4.el8
  • libgexiv2-devel-0:0.10.8-4.el8