Vulnerability Name:

CVE-2018-12034 (CCN-144932)

Assigned:2018-06-08
Published:2018-06-08
Updated:2018-08-01
Summary:In YARA 3.7.1 and prior, parsing a specially crafted compiled rule file can cause an out of bounds read vulnerability in yr_execute_code in libyara/exec.c.
CVSS v3 Severity:7.8 High (CVSS v3.1 Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H)
6.8 Medium (Temporal CVSS v3.1 Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Local
Attack Complexity (AC): Low
Privileges Required (PR): None
User Interaction (UI): Required
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): High
Integrity (I): High
Availibility (A): High
5.3 Medium (CCN CVSS v3.1 Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L)
4.6 Medium (CCN Temporal CVSS v3.1 Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Local
Attack Complexity (AC): Low
Privileges Required (PR): None
User Interaction (UI): Required
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): Low
Integrity (I): Low
Availibility (A): Low
CVSS v2 Severity:6.8 Medium (CVSS v2 Vector: AV:N/AC:M/Au:N/C:P/I:P/A:P)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Medium
Authentication (Au): None
Impact Metrics:Confidentiality (C): Partial
Integrity (I): Partial
Availibility (A): Partial
4.3 Medium (CCN CVSS v2 Vector: AV:L/AC:L/Au:S/C:P/I:P/A:P)
Exploitability Metrics:Access Vector (AV): Local
Access Complexity (AC): Low
Athentication (Au): Single_Instance
Impact Metrics:Confidentiality (C): Partial
Integrity (I): Partial
Availibility (A): Partial
Vulnerability Type:CWE-125
Vulnerability Consequences:Gain Access
References:Source: MITRE
Type: CNA
CVE-2018-12034

Source: MISC
Type: Exploit, Third Party Advisory
https://bnbdr.github.io/posts/swisscheese/

Source: XF
Type: UNKNOWN
yara-cve201812034-bo(144932)

Source: MISC
Type: Exploit, Third Party Advisory
https://github.com/bnbdr/swisscheese

Source: CCN
Type: yara GIT Repository
Out-of-bounds read, write in yr_execute_code #891

Source: CONFIRM
Type: Issue Tracking, Patch, Third Party Advisory
https://github.com/VirusTotal/yara/issues/891

Vulnerable Configuration:Configuration 1:
  • cpe:/a:virustotal:yara:*:*:*:*:*:*:*:* (Version <= 3.7.1)

  • * Denotes that component is vulnerable
    Oval Definitions
    Definition IDClassTitleLast Modified
    oval:com.ubuntu.xenial:def:2018120340000000
    V
    CVE-2018-12034 on Ubuntu 16.04 LTS (xenial) - low.
    2018-06-15
    oval:com.ubuntu.artful:def:201812034000
    V
    CVE-2018-12034 on Ubuntu 17.10 (artful) - low.
    2018-06-15
    oval:com.ubuntu.xenial:def:201812034000
    V
    CVE-2018-12034 on Ubuntu 16.04 LTS (xenial) - low.
    2018-06-15
    oval:com.ubuntu.disco:def:2018120340000000
    V
    CVE-2018-12034 on Ubuntu 19.04 (disco) - low.
    2018-06-15
    oval:com.ubuntu.bionic:def:201812034000
    V
    CVE-2018-12034 on Ubuntu 18.04 LTS (bionic) - low.
    2018-06-15
    oval:com.ubuntu.cosmic:def:2018120340000000
    V
    CVE-2018-12034 on Ubuntu 18.10 (cosmic) - low.
    2018-06-15
    oval:com.ubuntu.cosmic:def:201812034000
    V
    CVE-2018-12034 on Ubuntu 18.10 (cosmic) - low.
    2018-06-15
    oval:com.ubuntu.bionic:def:2018120340000000
    V
    CVE-2018-12034 on Ubuntu 18.04 LTS (bionic) - low.
    2018-06-15
    oval:com.ubuntu.trusty:def:201812034000
    V
    CVE-2018-12034 on Ubuntu 14.04 LTS (trusty) - low.
    2018-06-15
    BACK
    virustotal yara *