{
  "threat_severity" : "Moderate",
  "public_date" : "2020-10-06T00:00:00Z",
  "bugzilla" : {
    "description" : "opensc: stack-based buffer overflow in sc_pkcs15emu_gemsafeGPK_init",
    "id" : "1885950",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=1885950"
  },
  "cvss3" : {
    "cvss3_base_score" : "5.3",
    "cvss3_scoring_vector" : "CVSS:3.1/AV:P/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H",
    "status" : "verified"
  },
  "cwe" : "CWE-787",
  "details" : [ "The gemsafe GPK smart card software driver in OpenSC before 0.21.0-rc1 has a stack-based buffer overflow in sc_pkcs15emu_gemsafeGPK_init." ],
  "affected_release" : [ {
    "product_name" : "Red Hat Enterprise Linux 8",
    "release_date" : "2021-05-18T00:00:00Z",
    "advisory" : "RHSA-2021:1600",
    "cpe" : "cpe:/o:redhat:enterprise_linux:8",
    "package" : "opensc-0:0.20.0-4.el8"
  } ],
  "package_state" : [ {
    "product_name" : "Red Hat Enterprise Linux 7",
    "fix_state" : "Out of support scope",
    "package_name" : "opensc",
    "cpe" : "cpe:/o:redhat:enterprise_linux:7"
  } ],
  "references" : [ "https://www.cve.org/CVERecord?id=CVE-2020-26571\nhttps://nvd.nist.gov/vuln/detail/CVE-2020-26571" ],
  "name" : "CVE-2020-26571",
  "mitigation" : {
    "value" : "This flaw can be mitigated in cases where you can use opensc without the gemsafeGPK driver enabled. In such cases, the vulnerable driver can be disabled by specifying them in /etc/opensc.conf card_drivers field in allowlist fashion.\nOne such example:\n```\napp default {\ncard_drivers = cac, cac1, PIV-II;\n}\n```\nThis would only enable the cac, cac1, and PIV-II smart card drivers, and all others would be disabled, including the gemsafeGPK driver. With the gemsafeGPK driver disabled, this flaw is mitigated. It is important to list all drivers that you need in the card_drivers field so that they are not disabled too.",
    "lang" : "en:us"
  },
  "csaw" : false
}