Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2020-26572

The TCOS smart card software driver in OpenSC before 0.21.0-rc1 has a stack-based buffer overflow in tcos_decipher.

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

Source evidence

CVE-2020-26572

core-osv · Original source

Published 6 Oct 2020, 02:15 UTC

The TCOS smart card software driver in OpenSC before 0.21.0-rc1 has a stack-based buffer overflow in tcos_decipher.

osv:CVE-2020-26572
Complete source record
{
  "id": "b0d6eb89cdc8bff6258f9262b45e4bf7e68430048fc35e175754b6b83aab14a8",
  "url": "https://osv.dev/vulnerability/CVE-2020-26572",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2020-26572",
    "summary": "The TCOS smart card software driver in OpenSC before 0.21.0-rc1 has a stack-based buffer overflow in tcos_decipher.",
    "evidence": "osv:CVE-2020-26572",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2020-26572",
      "aliases": [
        "CVE-2020-26572"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/opensc/opensc",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "45e29056ccde422e70ed3585084a7f150c632515"
                },
                {
                  "fixed": "9d294de90d1cc66956389856e60b6944b27b4817"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:opensc_project:opensc:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "0.20.0"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "9d294de90d1cc66956389856e60b6944b27b4817"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "0.20.0",
            "0.20.0-rc4",
            "0.20.0-rc3",
            "0.20.0-rc2",
            "0.20.0-rc1",
            "0.19.0",
            "0.19.0-rc1",
            "0.18.0",
            "0.18.0-rc2",
            "0.18.0-rc1",
            "0.17.0",
            "0.17.0-rc2",
            "0.17.0-rc1",
            "0.16.0",
            "v0.16.0-pre1",
            "0.15.0",
            "0.14.0",
            "0.14.0rtm",
            "0.14.0rc2",
            "0.13.0",
            "0.13.0rc1",
            "0.13.0pre1",
            "v0.12.2",
            "0.12.2",
            "0.12.2-rc1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-26572.json",
            "vanir_signatures": [
              {
                "id": "CVE-2020-26572-70cc3a8b",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "58466695333159636353363207331574836164",
                    "202577461546426578785310313971106836046",
                    "284255860012804969870862664979029655002",
                    "139437758083297902526057034584382767580"
                  ]
                },
                "source": "https://github.com/opensc/opensc/commit/9d294de90d1cc66956389856e60b6944b27b4817",
                "target": {
                  "file": "src/libopensc/card-tcos.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2020-26572-cb06db58",
                "digest": {
                  "length": 1581,
                  "function_hash": "114247950551260681955303043934807423823"
                },
                "source": "https://github.com/opensc/opensc/commit/9d294de90d1cc66956389856e60b6944b27b4817",
                "target": {
                  "file": "src/libopensc/card-tcos.c",
                  "function": "tcos_decipher"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-20T14:05:18Z"
          }
        }
      ],
      "modified": "2026-10-20T14:05:18.337605966Z",
      "provider": "osv",
      "references": [
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/EXOHFDMNMO6IDECAGUTB3SJGAGXVRT6S/",
        "https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=22967",
        "https://lists.debian.org/debian-lts-announce/2021/11/msg00027.html",
        "https://github.com/OpenSC/OpenSC/commit/9d294de90d1cc66956389856e60b6944b27b4817"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "debian:debian_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "9.0"
                  },
                  {
                    "last_affected": "9.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*"
            ],
            "vendor_product": "fedoraproject:fedora",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "33"
                  },
                  {
                    "last_affected": "33"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2020-26572",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 388551,
  "published_at": "2020-10-06T02:15:13.13+00:00"
}