CVE-2019-20391

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

An invalid memory access flaw is present in libyang before v1.0-r3 in the function resolvefeaturevalue() when an if-feature statement is used inside a bit. Applications that use libyang to parse untrusted input yang files may crash.

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

[
    {
        "deprecated": false,
        "target": {
            "file": "src/resolve.c"
        },
        "signature_type": "Line",
        "source": "https://github.com/cesnet/libyang/commit/bdb596ddc07596fa212f231135b87d0b9178f6f8",
        "id": "CVE-2019-20391-16593093",
        "digest": {
            "line_hashes": [
                "155430779242861446466177299443060400718",
                "15933832550298970296093717907452545562",
                "210533867413985869976612204320521306275",
                "217119053337116050957207098743507905420"
            ],
            "threshold": 0.9
        },
        "signature_version": "v1"
    },
    {
        "deprecated": false,
        "target": {
            "file": "src/resolve.c",
            "function": "resolve_iffeature"
        },
        "signature_type": "Function",
        "source": "https://github.com/cesnet/libyang/commit/bdb596ddc07596fa212f231135b87d0b9178f6f8",
        "id": "CVE-2019-20391-9d460c02",
        "digest": {
            "length": 143.0,
            "function_hash": "144887731380011650420799519691260820041"
        },
        "signature_version": "v1"
    }
]