CVE-2019-19334

Source
https://cve.org/CVERecord?id=CVE-2019-19334
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2019-19334.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2019-19334
Downstream
Published
2019-12-06T16:15:10.920Z
Modified
2026-03-14T04:43:06.123122Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

In all versions of libyang before 1.0-r5, a stack-based buffer overflow was discovered in the way libyang parses YANG files with a leaf of type "identityref". An application that uses libyang to parse untrusted YANG files may be vulnerable to this flaw, which would allow an attacker to cause a denial of service or possibly gain code execution.

References

Affected packages

Git / github.com/cesnet/libyang

Affected ranges

Type
GIT
Repo
https://github.com/cesnet/libyang
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Fixed
Database specific
{
    "versions": [
        {
            "introduced": "0"
        },
        {
            "last_affected": "0.11-r1"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "0.11-r2"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "0.12-r1"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "0.12-r2"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "0.13-r1"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "0.13-r2"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "0.14-r1"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "0.15-r1"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "0.16-r1"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "0.16-r2"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "0.16-r3"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "1.0-r1"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "1.0-r2"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "1.0-r3"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "1.0-r4"
        }
    ]
}

Affected versions

v0.*
v0.11-r1
v0.11-r2
v0.12-r1
v0.12-r2
v0.13-r1
v0.13-r2
v0.14-r1
v0.15-r1
v0.16-r1
v0.16-r2
v0.16-r3
v1.*
v1.0-r1
v1.0-r2
v1.0-r3
v1.0-r4

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2019-19334.json"
unresolved_ranges
[
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "8.0"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "31"
            }
        ]
    }
]
vanir_signatures
[
    {
        "deprecated": false,
        "signature_type": "Line",
        "signature_version": "v1",
        "digest": {
            "line_hashes": [
                "292995609282841363669975935046566204682",
                "149517033522983099106477072070701937564",
                "297297297624460440254951196547675551567",
                "72996930533404138982397399557811059557",
                "274334248161745766359455477880545863750",
                "199060229445835364465972116034786537046"
            ],
            "threshold": 0.9
        },
        "source": "https://github.com/cesnet/libyang/commit/6980afae2ff9fcd6d67508b0a3f694d75fd059d6",
        "id": "CVE-2019-19334-0fc85d57",
        "target": {
            "file": "src/parser.c"
        }
    },
    {
        "deprecated": false,
        "signature_type": "Function",
        "signature_version": "v1",
        "digest": {
            "function_hash": "264754062392839519042860666898880122305",
            "length": 3550.0
        },
        "source": "https://github.com/cesnet/libyang/commit/6980afae2ff9fcd6d67508b0a3f694d75fd059d6",
        "id": "CVE-2019-19334-8e9f3d59",
        "target": {
            "file": "src/parser.c",
            "function": "make_canonical"
        }
    }
]