Skip to content
Heist/ feed
Back to feed
MediumFix available

opensc — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2023-40660

A flaw was found in OpenSC packages that allow a potential PIN bypass. When a token/card is authenticated by one process, it can perform cryptographic operations in other processes when an empty zero-length pin is passed. This issue poses a security risk, particularly for OS logon/screen unlock and for small, permanently connected tokens to computers. Additionally, the token can internally track login status. This flaw allows an attacker to gain unauthorized access, carry out malicious actions, or compromise the system without the user's awareness.

Products
opensc
Affected versions
0.23.0-0.3
Fixed versions
0.23.0-0.3+deb12u1, 0.23.0-2
CVEs
CVE-2023-40660
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 15:57 UTC · Revision 1

Source evidence

DEBIAN-CVE-2023-40660

core-osv · Original source

Published 6 Nov 2023, 17:15 UTC

A flaw was found in OpenSC packages that allow a potential PIN bypass. When a token/card is authenticated by one process, it can perform cryptographic operations in other processes when an empty zero-length pin is passed. This issue poses a security risk, particularly for OS logon/screen unlock and for small, permanently connected tokens to computers. Additionally, the token can internally track login status. This flaw allows an attacker to gain unauthorized access, carry out malicious actions, or compromise the system without the user's awareness.

osv:DEBIAN-CVE-2023-40660

opensc

Fixed versions: 0.23.0-0.3+deb12u1

opensc

Fixed versions: 0.23.0-2

opensc

Fixed versions: 0.23.0-2

Complete source record
{
  "id": "f8a94642c1abaf0069e76b26834539f7ae2143c3d8380271a6a1d75ba992ebc3",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2023-40660",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2023-40660",
    "summary": "A flaw was found in OpenSC packages that allow a potential PIN bypass. When a token/card is authenticated by one process, it can perform cryptographic operations in other processes when an empty zero-length pin is passed. This issue poses a security risk, particularly for OS logon/screen unlock and for small, permanently connected tokens to computers. Additionally, the token can internally track login status. This flaw allows an attacker to gain unauthorized access, carry out malicious actions, or compromise the system without the user's awareness.",
    "evidence": "osv:DEBIAN-CVE-2023-40660",
    "products": [
      {
        "name": {
          "value": "opensc",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.23.0-0.3+deb12u1",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "0.23.0-0.3",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "opensc",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.23.0-2",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "opensc",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.23.0-2",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "DEBIAN-CVE-2023-40660",
      "aliases": [
        "DEBIAN-CVE-2023-40660"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "0.23.0-0.3+deb12u1"
                }
              ]
            }
          ],
          "package": {
            "name": "opensc",
            "purl": "pkg:deb/debian/opensc?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "versions": [
            "0.23.0-0.3"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-40660.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "0.23.0-2"
                }
              ]
            }
          ],
          "package": {
            "name": "opensc",
            "purl": "pkg:deb/debian/opensc?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-40660.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "0.23.0-2"
                }
              ]
            }
          ],
          "package": {
            "name": "opensc",
            "purl": "pkg:deb/debian/opensc?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-40660.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-26T18:02:31.568026005Z",
      "provider": "osv",
      "upstream": [
        "CVE-2023-40660"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2023-40660"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2023-40660",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 456168,
  "published_at": "2023-11-06T17:15:11.757+00:00"
}