Skip to content
Heist/ feed
Back to feed
Critical

Security advisory

Type: advisorySources: OSVCVE: CVE-2019-19334

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2019-19334
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 12:35 UTC · Revision 1

Source evidence

CVE-2019-19334

core-osv · Original source

Published 6 Dec 2019, 16:15 UTC

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.

osv:CVE-2019-19334
Complete source record
{
  "id": "3e4b5d2a801d2d3f8293d7171d03d2fa348aa5f34cd938c0189e799839fe61c6",
  "url": "https://osv.dev/vulnerability/CVE-2019-19334",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2019-19334",
    "summary": "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.",
    "evidence": "osv:CVE-2019-19334",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2019-19334",
      "aliases": [
        "CVE-2019-19334"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/cesnet/libyang",
              "type": "GIT",
              "events": [
                {
                  "introduced": "14a95280b2bd77b5fd1d9b5f8af71b15679f1a8f"
                },
                {
                  "last_affected": "64248ec90179740e66416c78e0b3b914a8a07d30"
                },
                {
                  "fixed": "6980afae2ff9fcd6d67508b0a3f694d75fd059d6"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:cesnet:libyang:0.11:r1:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0.11-r1"
                      },
                      {
                        "last_affected": "0.11-r1"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:cesnet:libyang:0.11:r2:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0.11-r2"
                      },
                      {
                        "last_affected": "0.11-r2"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:cesnet:libyang:0.12:r1:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0.12-r1"
                      },
                      {
                        "last_affected": "0.12-r1"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:cesnet:libyang:0.12:r2:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0.12-r2"
                      },
                      {
                        "last_affected": "0.12-r2"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:cesnet:libyang:0.13:r1:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0.13-r1"
                      },
                      {
                        "last_affected": "0.13-r1"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:cesnet:libyang:0.13:r2:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0.13-r2"
                      },
                      {
                        "last_affected": "0.13-r2"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:cesnet:libyang:0.14:r1:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0.14-r1"
                      },
                      {
                        "last_affected": "0.14-r1"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:cesnet:libyang:0.15:r1:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0.15-r1"
                      },
                      {
                        "last_affected": "0.15-r1"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:cesnet:libyang:0.16:r1:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0.16-r1"
                      },
                      {
                        "last_affected": "0.16-r1"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:cesnet:libyang:0.16:r2:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0.16-r2"
                      },
                      {
                        "last_affected": "0.16-r2"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:cesnet:libyang:0.16:r3:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0.16-r3"
                      },
                      {
                        "last_affected": "0.16-r3"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:cesnet:libyang:1.0:r1:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "1.0-r1"
                      },
                      {
                        "last_affected": "1.0-r1"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:cesnet:libyang:1.0:r2:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "1.0-r2"
                      },
                      {
                        "last_affected": "1.0-r2"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:cesnet:libyang:1.0:r3:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "1.0-r3"
                      },
                      {
                        "last_affected": "1.0-r3"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:cesnet:libyang:1.0:r4:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "1.0-r4"
                      },
                      {
                        "last_affected": "1.0-r4"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "range": [
                      {
                        "fixed": "6980afae2ff9fcd6d67508b0a3f694d75fd059d6"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "0.11-r1",
            "0.11-r2",
            "0.12-r1",
            "0.12-r2",
            "0.13-r1",
            "0.13-r2",
            "0.14-r1",
            "0.15-r1",
            "0.16-r1",
            "0.16-r2",
            "0.16-r3",
            "1.0-r1",
            "1.0-r2",
            "1.0-r3",
            "1.0-r4",
            "v1.0-r4",
            "v1.0-r3",
            "v1.0-r2",
            "v1.0-r1",
            "v0.16-r2",
            "v0.16-r1",
            "v0.15-r1",
            "v0.14-r1",
            "v0.13-r2",
            "v0.12-r2",
            "v0.12-r1",
            "v0.11-r2",
            "v0.11-r1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2019-19334.json",
            "vanir_signatures": [
              {
                "id": "CVE-2019-19334-0fc85d57",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "292995609282841363669975935046566204682",
                    "149517033522983099106477072070701937564",
                    "297297297624460440254951196547675551567",
                    "72996930533404138982397399557811059557",
                    "274334248161745766359455477880545863750",
                    "199060229445835364465972116034786537046"
                  ]
                },
                "source": "https://github.com/cesnet/libyang/commit/6980afae2ff9fcd6d67508b0a3f694d75fd059d6",
                "target": {
                  "file": "src/parser.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2019-19334-8e9f3d59",
                "digest": {
                  "length": 3550,
                  "function_hash": "264754062392839519042860666898880122305"
                },
                "source": "https://github.com/cesnet/libyang/commit/6980afae2ff9fcd6d67508b0a3f694d75fd059d6",
                "target": {
                  "file": "src/parser.c",
                  "function": "make_canonical"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-20T13:56:47Z"
          }
        }
      ],
      "modified": "2026-10-20T13:56:47.913119560Z",
      "provider": "osv",
      "references": [
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PETB6TVMFV5KUD4IKVP2JPLBCYHUGSAJ/",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RL54JMS7XW7PI6JC4BFSNNLSX5AINQUL/",
        "https://access.redhat.com/errata/RHSA-2019:4360",
        "https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2019-19334",
        "https://github.com/CESNET/libyang/commit/6980afae2ff9fcd6d67508b0a3f694d75fd059d6"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:o:fedoraproject:fedora:31:*:*:*:*:*:*:*"
            ],
            "vendor_product": "fedoraproject:fedora",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "31"
                  },
                  {
                    "last_affected": "31"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:enterprise_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "8.0"
                  },
                  {
                    "last_affected": "8.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2019-19334",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 388425,
  "published_at": "2019-12-06T16:15:10.92+00:00"
}