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-09-16T07:03:09.068906Z
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

Debian:11 / libyang

Package

Name
libyang
Purl
pkg:deb/debian/libyang?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.0.176-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:13 / libyang

Package

Name
libyang
Purl
pkg:deb/debian/libyang?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.0.176-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:14 / libyang

Package

Name
libyang
Purl
pkg:deb/debian/libyang?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.0.176-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

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