Vulnerability Name:

CVE-2019-20397 (CCN-174979)

Assigned:2019-03-28
Published:2019-03-28
Updated:2020-01-23
Summary:A double-free is present in libyang before v1.0-r1 in the function yyparse() when an organization field is not terminated. Applications that use libyang to parse untrusted input yang files may be vulnerable to this flaw, which would cause a crash or potentially code execution.
CVSS v3 Severity:8.8 High (CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H)
7.7 High (Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/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): Network
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
9.8 Critical (CCN CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H)
8.5 High (CCN Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): None
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): High
Integrity (I): High
Availibility (A): High
7.0 High (REDHAT CVSS v3.1 Vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H)
6.1 Medium (REDHAT Temporal CVSS v3.1 Vector: CVSS:3.1/AV:L/AC:H/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): High
Privileges Required (PR): None
User Interaction (UI): Required
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): High
Integrity (I): High
Availibility (A): High
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
10.0 High (CCN CVSS v2 Vector: AV:N/AC:L/Au:N/C:C/I:C/A:C)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Low
Athentication (Au): None
Impact Metrics:Confidentiality (C): Complete
Integrity (I): Complete
Availibility (A): Complete
Vulnerability Type:CWE-415
CWE-416
Vulnerability Consequences:Gain Access
References:Source: MITRE
Type: CNA
CVE-2019-20397

Source: MISC
Type: Issue Tracking, Patch, Third Party Advisory
https://bugzilla.redhat.com/show_bug.cgi?id=1793928

Source: XF
Type: UNKNOWN
libyang-cve201920397-code-exec(174979)

Source: MISC
Type: Patch, Third Party Advisory
https://github.com/CESNET/libyang/commit/88bd6c548ba79bce176cd875e9b56e7e0ef4d8d4

Source: MISC
Type: Third Party Advisory
https://github.com/CESNET/libyang/compare/v0.16-r3...v1.0-r1

Source: CCN
Type: libyang GIT Repository
Heap corruption due to invalid unterminated organization field in YANG file #739

Source: MISC
Type: Third Party Advisory
https://github.com/CESNET/libyang/issues/739

Source: CCN
Type: WhiteSource Vulnerability Database
CVE-2019-20397

Vulnerable Configuration:Configuration 1:
  • cpe:/a:cesnet:libyang:0.11:r1:*:*:*:*:*:*
  • OR cpe:/a:cesnet:libyang:0.11:r2:*:*:*:*:*:*
  • OR cpe:/a:cesnet:libyang:0.12:r1:*:*:*:*:*:*
  • OR cpe:/a:cesnet:libyang:0.12:r2:*:*:*:*:*:*
  • OR cpe:/a:cesnet:libyang:0.13:r1:*:*:*:*:*:*
  • OR cpe:/a:cesnet:libyang:0.13:r2:*:*:*:*:*:*
  • OR cpe:/a:cesnet:libyang:0.14:r1:*:*:*:*:*:*
  • OR cpe:/a:cesnet:libyang:0.15:r1:*:*:*:*:*:*
  • OR cpe:/a:cesnet:libyang:0.16:r1:*:*:*:*:*:*
  • OR cpe:/a:cesnet:libyang:0.16:r2:*:*:*:*:*:*
  • OR cpe:/a:cesnet:libyang:0.16:r3:*:*:*:*:*:*

  • Configuration RedHat 1:
  • cpe:/a:redhat:enterprise_linux:8:*:*:*:*:*:*:*

  • Configuration RedHat 2:
  • cpe:/a:redhat:enterprise_linux:8::appstream:*:*:*:*:*

  • Configuration CCN 1:
  • cpe:/a:cesnet:libyang:1.0:r1:*:*:*:*:*:*

  • * Denotes that component is vulnerable
    Oval Definitions
    Definition IDClassTitleLast Modified
    oval:com.redhat.rhea:def:20211906
    P
    RHEA-2021:1906: libyang bug fix and enhancement update (Moderate)
    2021-05-18
    BACK
    cesnet libyang 0.11 r1
    cesnet libyang 0.11 r2
    cesnet libyang 0.12 r1
    cesnet libyang 0.12 r2
    cesnet libyang 0.13 r1
    cesnet libyang 0.13 r2
    cesnet libyang 0.14 r1
    cesnet libyang 0.15 r1
    cesnet libyang 0.16 r1
    cesnet libyang 0.16 r2
    cesnet libyang 0.16 r3
    cesnet libyang 1.0 r1