{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:yubico:yubihsm-shell:*:*:*:*:*:*:*:*",
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "last_affected": "2.0.2"
              }
            ],
            "source": "CPE_RANGE"
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "8ada38bdcaa032c0747487fcd72eb7c5267369d1"
            }
          ],
          "repo": "https://github.com/yubico/yubihsm-shell",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "unresolved_ranges": [
      {
        "cpes": [
          "cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*"
        ],
        "extracted_events": [
          {
            "introduced": "33"
          },
          {
            "last_affected": "33"
          }
        ],
        "source": "CPE_STRING",
        "vendor_product": "fedoraproject:fedora"
      }
    ]
  },
  "details": "An issue was discovered in the yh_create_session() function of yubihsm-shell through 2.0.2. The function does not explicitly check the returned session id from the device. An invalid session id would lead to out-of-bounds read and write operations in the session array. This could be used by an attacker to cause a denial of service attack.",
  "id": "CVE-2020-24387",
  "modified": "2026-07-08T05:38:49.095013082Z",
  "published": "2020-10-19T20:15:12.947Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Y77KQJW76M3PFOBFLBT6DLH2NWHYRNZO/"
    },
    {
      "type": "ADVISORY",
      "url": "https://developers.yubico.com/yubihsm-shell/"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/Yubico/yubihsm-shell"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.yubico.com/support/security-advisories/ysa-2020-06/"
    },
    {
      "type": "EVIDENCE",
      "url": "https://blog.inhq.net/posts/yubico-libyubihsm-vuln/"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
      "type": "CVSS_V3"
    }
  ]
}