ID CVE-2018-5805
Summary A boundary error within the "quicktake_100_load_raw()" function (internal/dcraw_common.cpp) in LibRaw versions prior to 0.18.8 can be exploited to cause a stack-based buffer overflow and subsequently cause a crash.
References
Vulnerable Configurations
  • LibRaw 0.13.0
    cpe:2.3:a:libraw:libraw:0.13.0
  • LibRaw 0.13.1
    cpe:2.3:a:libraw:libraw:0.13.1
  • LibRaw 0.13.2
    cpe:2.3:a:libraw:libraw:0.13.2
  • LibRaw 0.13.3
    cpe:2.3:a:libraw:libraw:0.13.3
  • LibRaw 0.13.4
    cpe:2.3:a:libraw:libraw:0.13.4
  • LibRaw 0.13.5
    cpe:2.3:a:libraw:libraw:0.13.5
  • LibRaw 0.13.6
    cpe:2.3:a:libraw:libraw:0.13.6
  • LibRaw 0.13.7
    cpe:2.3:a:libraw:libraw:0.13.7
  • LibRaw 0.13.8
    cpe:2.3:a:libraw:libraw:0.13.8
  • LibRaw 0.14.0
    cpe:2.3:a:libraw:libraw:0.14.0
  • LibRaw 0.14.1
    cpe:2.3:a:libraw:libraw:0.14.1
  • LibRaw 0.14.2
    cpe:2.3:a:libraw:libraw:0.14.2
  • LibRaw 0.14.3
    cpe:2.3:a:libraw:libraw:0.14.3
  • LibRaw 0.14.4
    cpe:2.3:a:libraw:libraw:0.14.4
  • LibRaw 0.14.5
    cpe:2.3:a:libraw:libraw:0.14.5
  • LibRaw 0.14.6
    cpe:2.3:a:libraw:libraw:0.14.6
  • LibRaw 0.14.7
    cpe:2.3:a:libraw:libraw:0.14.7
  • LibRaw 0.15.0
    cpe:2.3:a:libraw:libraw:0.15.0
  • LibRaw 0.15.1
    cpe:2.3:a:libraw:libraw:0.15.1
  • LibRaw 0.15.2
    cpe:2.3:a:libraw:libraw:0.15.2
  • LibRaw 0.15.3
    cpe:2.3:a:libraw:libraw:0.15.3
  • LibRaw 0.15.4
    cpe:2.3:a:libraw:libraw:0.15.4
  • LibRaw 0.16.1-alpha
    cpe:2.3:a:libraw:libraw:0.16.1:alpha
  • LibRaw 0.18.1
    cpe:2.3:a:libraw:libraw:0.18.1
  • RedHat Enterprise Linux Desktop 7.0
    cpe:2.3:o:redhat:enterprise_linux_desktop:7.0
  • RedHat Enterprise Linux Server 7.0
    cpe:2.3:o:redhat:enterprise_linux_server:7.0
  • RedHat Enterprise Linux Workstation 7.0
    cpe:2.3:o:redhat:enterprise_linux_workstation:7.0
CVSS
Base: 6.8
Impact:
Exploitability:
CWE CWE-119
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.
  • Overflow Binary Resource File
    An attack of this type exploits a buffer overflow vulnerability in the handling of binary resources. Binary resources may include music files like MP3, image files like JPEG files, and any other binary file. These attacks may pass unnoticed to the client machine through normal usage of files, such as a browser loading a seemingly innocent JPEG file. This can allow the attacker access to the execution stack and execute arbitrary code in the target process. This attack pattern is a variant of standard buffer overflow attacks using an unexpected vector (binary files) to wrap its attack and open up a new attack vector. The attacker is required to either directly serve the binary content to the victim, or place it in a locale like a MP3 sharing application, for the victim to download. The attacker then is notified upon the download or otherwise locates the vulnerability opened up by the buffer overflow.
  • Buffer Overflow via Symbolic Links
    This type of attack leverages the use of symbolic links to cause buffer overflows. An attacker can try to create or manipulate a symbolic link file such that its contents result in out of bounds data. When the target software processes the symbolic link file, it could potentially overflow internal buffers with insufficient bounds checking.
  • Overflow Variables and Tags
    This type of attack leverages the use of tags or variables from a formatted configuration data to cause buffer overflow. The attacker crafts a malicious HTML page or configuration file that includes oversized strings, thus causing an overflow.
  • Buffer Overflow via Parameter Expansion
    In this attack, the target software is given input that the attacker knows will be modified and expanded in size during processing. This attack relies on the target software failing to anticipate that the expanded data may exceed some internal limit, thereby creating a buffer overflow.
  • Buffer Overflow in an API Call
    This attack targets libraries or shared code modules which are vulnerable to buffer overflow attacks. An attacker who has access to an API may try to embed malicious code in the API function call and exploit a buffer overflow vulnerability in the function's implementation. All clients that make use of the code library thus become vulnerable by association. This has a very broad effect on security across a system, usually affecting more than one software process.
  • Buffer Overflow in Local Command-Line Utilities
    This attack targets command-line utilities available in a number of shells. An attacker can leverage a vulnerability found in a command-line utility to escalate privilege to root.
nessus via4
  • NASL family SuSE Local Security Checks
    NASL id SUSE_SU-2019-0002-1.NASL
    description This update for libraw fixes the following issues : Security issues fixed : CVE-2018-5808: Fixed a stack-based buffer overflow and code execution vulnerability in find_green() function internal/dcraw_common.cpp (bsc#1118894). CVE-2018-5805: Fixed a boundary error within the quicktake_100_load_raw function (bsc#1097973) CVE-2018-5806: Fixed a a NULL pointer dereference in the leaf_hdr_load_raw function (bsc#1097974) Note that Tenable Network Security has extracted the preceding description block directly from the SUSE security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen 2019-02-21
    modified 2019-01-07
    plugin id 120982
    published 2019-01-07
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=120982
    title SUSE SLED12 Security Update : libraw (SUSE-SU-2019:0002-1)
  • NASL family SuSE Local Security Checks
    NASL id OPENSUSE-2018-1619.NASL
    description This update for libraw fixes the following issues : The following security vulnerabilities were addressed : - CVE-2018-5804: Fixed a type confusion error within the identify function that could trigger a division by zero, leading to a denial of service (Dos). (boo#1097975) - CVE-2018-5805: Fixed a boundary error within the quicktake_100_load_raw function that could cause a stack-based buffer overflow and subsequently trigger a crash. (boo#1097973) - CVE-2018-5806: Fixed an error within the leaf_hdr_load_raw function that could trigger a NULL pointer deference, leading to a denial of service (DoS). (boo#1097974) - CVE-2018-5808: Fixed an error within the find_green function that could cause a stack-based buffer overflow and subsequently execute arbitrary code. (boo#1118894) - CVE-2018-5816: Fixed a type confusion error within the identify function that could trigger a division by zero, leading to a denial of service (DoS). (boo#1097975)
    last seen 2019-02-21
    modified 2019-01-04
    plugin id 119949
    published 2018-12-31
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=119949
    title openSUSE Security Update : libraw (openSUSE-2018-1619)
  • NASL family Oracle Linux Local Security Checks
    NASL id ORACLELINUX_ELSA-2018-3065.NASL
    description From Red Hat Security Advisory 2018:3065 : An update for libkdcraw is now available for Red Hat Enterprise Linux 7. Red Hat Product Security has rated this update as having a security impact of Moderate. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available for each vulnerability from the CVE link(s) in the References section. Libkdcraw is a C++ interface around the LibRaw library used to decode the RAW picture files. Security Fix(es) : * LibRaw: Stack-based buffer overflow in quicktake_100_load_raw() function in internal/dcraw_common.cpp (CVE-2018-5805) * LibRaw: Heap-based buffer overflow in LibRaw::kodak_ycbcr_load_raw function in internal/dcraw_common.cpp (CVE-2018-5800) * LibRaw: NULL pointer dereference in LibRaw::unpack function src/ libraw_cxx.cpp (CVE-2018-5801) * LibRaw: Out-of-bounds read in kodak_radc_load_raw function internal/ dcraw_common.cpp (CVE-2018-5802) * LibRaw: NULL pointer dereference in leaf_hdr_load_raw() function in internal/dcraw_common.cpp (CVE-2018-5806) For more details about the security issue(s), including the impact, a CVSS score, and other related information, refer to the CVE page(s) listed in the References section. Additional Changes : For detailed information on changes in this release, see the Red Hat Enterprise Linux 7.6 Release Notes linked from the References section.
    last seen 2019-02-21
    modified 2018-12-31
    plugin id 118767
    published 2018-11-07
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=118767
    title Oracle Linux 7 : libkdcraw (ELSA-2018-3065)
  • NASL family CentOS Local Security Checks
    NASL id CENTOS_RHSA-2018-3065.NASL
    description An update for libkdcraw is now available for Red Hat Enterprise Linux 7. Red Hat Product Security has rated this update as having a security impact of Moderate. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available for each vulnerability from the CVE link(s) in the References section. Libkdcraw is a C++ interface around the LibRaw library used to decode the RAW picture files. Security Fix(es) : * LibRaw: Stack-based buffer overflow in quicktake_100_load_raw() function in internal/dcraw_common.cpp (CVE-2018-5805) * LibRaw: Heap-based buffer overflow in LibRaw::kodak_ycbcr_load_raw function in internal/dcraw_common.cpp (CVE-2018-5800) * LibRaw: NULL pointer dereference in LibRaw::unpack function src/ libraw_cxx.cpp (CVE-2018-5801) * LibRaw: Out-of-bounds read in kodak_radc_load_raw function internal/ dcraw_common.cpp (CVE-2018-5802) * LibRaw: NULL pointer dereference in leaf_hdr_load_raw() function in internal/dcraw_common.cpp (CVE-2018-5806) For more details about the security issue(s), including the impact, a CVSS score, and other related information, refer to the CVE page(s) listed in the References section. Additional Changes : For detailed information on changes in this release, see the Red Hat Enterprise Linux 7.6 Release Notes linked from the References section.
    last seen 2019-02-21
    modified 2018-12-31
    plugin id 118987
    published 2018-11-16
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=118987
    title CentOS 7 : libkdcraw (CESA-2018:3065)
  • NASL family Red Hat Local Security Checks
    NASL id REDHAT-RHSA-2018-3065.NASL
    description An update for libkdcraw is now available for Red Hat Enterprise Linux 7. Red Hat Product Security has rated this update as having a security impact of Moderate. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available for each vulnerability from the CVE link(s) in the References section. Libkdcraw is a C++ interface around the LibRaw library used to decode the RAW picture files. Security Fix(es) : * LibRaw: Stack-based buffer overflow in quicktake_100_load_raw() function in internal/dcraw_common.cpp (CVE-2018-5805) * LibRaw: Heap-based buffer overflow in LibRaw::kodak_ycbcr_load_raw function in internal/dcraw_common.cpp (CVE-2018-5800) * LibRaw: NULL pointer dereference in LibRaw::unpack function src/ libraw_cxx.cpp (CVE-2018-5801) * LibRaw: Out-of-bounds read in kodak_radc_load_raw function internal/ dcraw_common.cpp (CVE-2018-5802) * LibRaw: NULL pointer dereference in leaf_hdr_load_raw() function in internal/dcraw_common.cpp (CVE-2018-5806) For more details about the security issue(s), including the impact, a CVSS score, and other related information, refer to the CVE page(s) listed in the References section. Additional Changes : For detailed information on changes in this release, see the Red Hat Enterprise Linux 7.6 Release Notes linked from the References section.
    last seen 2019-02-21
    modified 2018-12-31
    plugin id 118522
    published 2018-10-31
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=118522
    title RHEL 7 : libkdcraw (RHSA-2018:3065)
  • NASL family Scientific Linux Local Security Checks
    NASL id SL_20181030_LIBKDCRAW_ON_SL7_X.NASL
    description * LibRaw: Stack-based buffer overflow in quicktake_100_load_raw() function in internal/dcraw_common.cpp (CVE-2018-5805) * LibRaw: Heap-based buffer overflow in LibRaw::kodak_ycbcr_load_raw function in internal/dcraw_common.cpp (CVE-2018-5800) * LibRaw: NULL pointer dereference in LibRaw::unpack function src/libraw_cxx.cpp (CVE-2018-5801) * LibRaw: Out-of-bounds read in kodak_radc_load_raw function internal/dcraw_common.cpp (CVE-2018-5802) * LibRaw: NULL pointer dereference in leaf_hdr_load_raw() function in internal/dcraw_common.cpp (CVE-2018-5806)
    last seen 2019-02-21
    modified 2018-12-31
    plugin id 119190
    published 2018-11-27
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=119190
    title Scientific Linux Security Update : libkdcraw on SL7.x x86_64
redhat via4
advisories
rhsa
id RHSA-2018:3065
rpms
  • libkdcraw-0:4.10.5-5.el7
  • libkdcraw-devel-0:4.10.5-5.el7
refmap via4
misc
secunia 81000
Last major update 07-12-2018 - 17:29
Published 07-12-2018 - 17:29
Last modified 28-12-2018 - 16:30
Back to Top