{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:opensc_project:opensc:*:*:*:*:*:*:*:*",
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "0.22.0"
              }
            ],
            "source": [
              "CPE_RANGE",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "c902e1992195e00ada12d71beb1029287cd72037"
            },
            {
              "fixed": "05648b06"
            },
            {
              "fixed": "17d8980c"
            },
            {
              "fixed": "40c50a3a"
            },
            {
              "fixed": "5d4daf6c"
            },
            {
              "fixed": "cae5c71f"
            }
          ],
          "repo": "https://github.com/opensc/opensc",
          "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"
      },
      {
        "cpes": [
          "cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*"
        ],
        "extracted_events": [
          {
            "introduced": "7.0"
          },
          {
            "last_affected": "7.0"
          }
        ],
        "source": "CPE_STRING",
        "vendor_product": "redhat:enterprise_linux"
      }
    ]
  },
  "details": "Heap buffer overflow issues were found in Opensc before version 0.22.0 in pkcs15-oberthur.c that could potentially crash programs using the library.",
  "id": "CVE-2021-42781",
  "modified": "2026-07-08T05:36:17.812177247Z",
  "published": "2022-04-18T17:15:16.303Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://lists.debian.org/debian-lts-announce/2023/06/msg00025.html"
    },
    {
      "type": "WEB",
      "url": "https://lists.debian.org/debian-lts-announce/2024/12/msg00026.html"
    },
    {
      "type": "ADVISORY",
      "url": "https://security.gentoo.org/glsa/202209-03"
    },
    {
      "type": "FIX",
      "url": "https://bugzilla.redhat.com/show_bug.cgi?id=2016439"
    },
    {
      "type": "FIX",
      "url": "https://github.com/OpenSC/OpenSC/commit/05648b06"
    },
    {
      "type": "FIX",
      "url": "https://github.com/OpenSC/OpenSC/commit/17d8980c"
    },
    {
      "type": "FIX",
      "url": "https://github.com/OpenSC/OpenSC/commit/40c50a3a"
    },
    {
      "type": "FIX",
      "url": "https://github.com/OpenSC/OpenSC/commit/5d4daf6c"
    },
    {
      "type": "FIX",
      "url": "https://github.com/OpenSC/OpenSC/commit/cae5c71f"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L",
      "type": "CVSS_V3"
    }
  ]
}