CVE-2019-20394

Source
https://nvd.nist.gov/vuln/detail/CVE-2019-20394
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2019-20394.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2019-20394
Downstream
Published
2020-01-22T22:15:10Z
Modified
2025-10-15T10:50:14.416625Z
Severity
  • 8.8 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

A double-free is present in libyang before v1.0-r3 in the function yyparse() when a type statement in used in a notification statement. 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.

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
Fixed

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

Database specific

vanir_signatures

[
    {
        "signature_type": "Function",
        "deprecated": false,
        "source": "https://github.com/cesnet/libyang/commit/6cc51b1757dfbb7cff92de074ada65e8523289a6",
        "signature_version": "v1",
        "target": {
            "function": "yyparse",
            "file": "src/parser_yang_bis.c"
        },
        "digest": {
            "function_hash": "334333495555913111835902825800076662424",
            "length": 121759.0
        },
        "id": "CVE-2019-20394-41732613"
    },
    {
        "signature_type": "Line",
        "deprecated": false,
        "source": "https://github.com/cesnet/libyang/commit/6cc51b1757dfbb7cff92de074ada65e8523289a6",
        "signature_version": "v1",
        "target": {
            "file": "src/parser_yang_bis.c"
        },
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "164382308562417233091935855972747064438",
                "44550129803751250994624942069642899974",
                "132892422234432367498765861481733659786",
                "71028133021889715123863036278562934561"
            ]
        },
        "id": "CVE-2019-20394-c15508ec"
    }
]