Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-28904

In function ext_get_plugin() in libyang <= v1.0.225, it doesn't check whether the value of revision is NULL. If revision is NULL, the operation of strcmp(revision, ext_plugins[u].revision) will lead to a crash.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-28904
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 09:46 UTC · Revision 1

Source evidence

CVE-2021-28904

core-osv · Original source

Published 20 May 2021, 19:15 UTC

In function ext_get_plugin() in libyang <= v1.0.225, it doesn't check whether the value of revision is NULL. If revision is NULL, the operation of strcmp(revision, ext_plugins[u].revision) will lead to a crash.

osv:CVE-2021-28904
Complete source record
{
  "id": "ba19f1bda391422802952b207172fd79ff2283d2c160b3a7ef05db328ff8dc0e",
  "url": "https://osv.dev/vulnerability/CVE-2021-28904",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-28904",
    "summary": "In function ext_get_plugin() in libyang <= v1.0.225, it doesn't check whether the value of revision is NULL. If revision is NULL, the operation of strcmp(revision, ext_plugins[u].revision) will lead to a crash.",
    "evidence": "osv:CVE-2021-28904",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2021-28904",
      "aliases": [
        "CVE-2021-28904"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/cesnet/libyang",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "8e9f87949974c7b2c6dc5e830c0e78e4160fbc50"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:cesnet:libyang:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "1.0.225"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v1.0.225",
            "v1.0.167",
            "v1.0.130",
            "v1.0.109",
            "v1.0-r5",
            "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-2021-28904.json"
          }
        }
      ],
      "modified": "2026-10-20T10:47:55.809261032Z",
      "provider": "osv",
      "references": [
        "https://security.gentoo.org/glsa/202107-54",
        "https://github.com/CESNET/libyang/issues/1451"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2021-28904",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 379832,
  "published_at": "2021-05-20T19:15:07.673+00:00"
}