Debian Package Tracker
Register | Log in
Subscribe

opensc

Smart card utilities with support for PKCS#15 compatible cards

Choose email to subscribe with

general
  • source: opensc (main)
  • version: 0.27.1-3
  • maintainer: Debian OpenSC Maintainers (archive) (DMD)
  • uploaders: Eric Dorland [DMD]
  • arch: any
  • std-ver: 4.7.0
  • VCS: Git (Browse, QA)
versions [more versions can be listed by madison] [old versions available from snapshot.debian.org]
[pool directory]
  • o-o-stable: 0.21.0-1
  • o-o-sec: 0.21.0-1+deb11u1
  • oldstable: 0.23.0-0.3+deb12u2
  • stable: 0.26.1-2
  • testing: 0.27.1-2
  • unstable: 0.27.1-3
versioned links
  • 0.21.0-1: [.dsc, use dget on this link to retrieve source package] [changelog] [copyright] [rules] [control]
  • 0.21.0-1+deb11u1: [.dsc, use dget on this link to retrieve source package] [changelog] [copyright] [rules] [control]
  • 0.23.0-0.3+deb12u2: [.dsc, use dget on this link to retrieve source package] [changelog] [copyright] [rules] [control]
  • 0.26.1-2: [.dsc, use dget on this link to retrieve source package] [changelog] [copyright] [rules] [control]
  • 0.27.1-2: [.dsc, use dget on this link to retrieve source package] [changelog] [copyright] [rules] [control]
  • 0.27.1-3: [.dsc, use dget on this link to retrieve source package] [changelog] [copyright] [rules] [control]
binaries
  • opensc (13 bugs: 0, 11, 2, 0)
  • opensc-pkcs11 (3 bugs: 0, 3, 0, 0)
action needed
1 security issue in forky high

There is 1 open security issue in forky.

1 important issue:
  • CVE-2026-103531: A flaw has been found in OpenSC up to 0.27.1. The impacted element is the function setcos_construct_fci_44 of the file src/libopensc/card-setcos.c. Executing a manipulation of the argument type_attr can lead to stack-based buffer overflow. The attack can be launched remotely. This patch is called ad730304052937c32b4eb489a06835ac6123632c. It is best practice to apply a patch to resolve this issue.
Created: 2026-10-01 Last update: 2026-10-05 05:00
7 security issues in bookworm high

There are 7 open security issues in bookworm.

1 important issue:
  • CVE-2026-103531: A flaw has been found in OpenSC up to 0.27.1. The impacted element is the function setcos_construct_fci_44 of the file src/libopensc/card-setcos.c. Executing a manipulation of the argument type_attr can lead to stack-based buffer overflow. The attack can be launched remotely. This patch is called ad730304052937c32b4eb489a06835ac6123632c. It is best practice to apply a patch to resolve this issue.
6 issues postponed or untriaged:
  • CVE-2025-13763: (needs triaging) Multiple uses of uninitialized variables were found in libopensc that may lead to information disclosure or application crash. An attack requires a crafted USB device or smart card that would present the system with specially crafted responses to the APDUs
  • CVE-2025-49010: (needs triaging) OpenSC is an open source smart card tools and middleware. Prior to version 0.27.0, an attacker with physical access to the computer at the time user or administrator uses a token can cause a stack-buffer-overflow write in GET RESPONSE. The attack requires crafted USB device or smart card that would present the system with specially crafted responses to the APDUs. This issue has been patched in version 0.27.0.
  • CVE-2025-66037: (needs triaging) OpenSC is an open source smart card tools and middleware. Prior to version 0.27.0, feeding a crafted input to the fuzz_pkcs15_reader harness causes OpenSC to perform an out-of-bounds heap read in the X.509/SPKI handling path. Specifically, sc_pkcs15_pubkey_from_spki_fields() allocates a zero-length buffer and then reads one byte past the end of that allocation. This issue has been patched in version 0.27.0.
  • CVE-2025-66038: (needs triaging) OpenSC is an open source smart card tools and middleware. Prior to version 0.27.0, sc_compacttlv_find_tag searches a compact-TLV buffer for a given tag. In compact-TLV, a single byte encodes the tag (high nibble) and value length (low nibble). With a 1-byte buffer {0x0A}, the encoded element claims tag=0 and length=10 but no value bytes follow. Calling sc_compacttlv_find_tag with search tag 0x00 returns a pointer equal to buf+1 and outlen=10 without verifying that the claimed value length fits within the remaining buffer. In cases where the sc_compacttlv_find_tag is provided untrusted data (such as being read from cards/files), attackers may be able to influence it to return out-of-bounds pointers leading to downstream memory corruption when subsequent code tries to dereference the pointer. This issue has been patched in version 0.27.0.
  • CVE-2025-66215: (needs triaging) OpenSC is an open source smart card tools and middleware. Prior to version 0.27.0, an attacker with physical access to the computer at the time user or administrator uses a token can cause a stack-buffer-overflow WRITE in card-oberthur. The attack requires crafted USB device or smart card that would present the system with specially crafted responses to the APDUs. This issue has been patched in version 0.27.0.
  • CVE-2026-10275: (needs triaging) A flaw has been found in OpenSC up to 0.26.1. This affects the function test_kpgen_certwrite of the file src/tools/pkcs11-tool.c of the component pkcs11-tool Key Generation Module. This manipulation causes buffer overflow. The attack is possible to be carried out remotely. The complexity of an attack is rather high. It is indicated that the exploitability is difficult. The exploit has been published and may be used. Patch name: 814f745b3b6d100295f65f1935edd33d520d33ab. It is recommended to apply a patch to fix this issue.
Created: 2026-10-01 Last update: 2026-10-05 05:00
Depends on packages which need a new maintainer normal
The packages that opensc depends on which need a new maintainer are:
  • docbook-xsl (#802370)
    • Build-Depends: docbook-xsl
Created: 2023-09-01 Last update: 2026-10-06 05:00
3 bugs tagged patch in the BTS normal
The BTS contains patches fixing 3 bugs, consider including or untagging them.
Created: 2026-09-02 Last update: 2026-10-06 04:30
lintian reports 3 warnings normal
Lintian reports 3 warnings about this package. You should make the package lintian clean getting rid of them.
Created: 2026-03-01 Last update: 2026-03-01 00:00
debian/patches: 4 patches to forward upstream low

Among the 4 debian patches available in version 0.27.1-3 of the package, we noticed the following issues:

  • 4 patches where the metadata indicates that the patch has not yet been forwarded upstream. You should either forward the patch upstream or update the metadata to document its real status.
Created: 2023-02-26 Last update: 2026-10-05 11:31
7 low-priority security issues in trixie low

There are 7 open security issues in trixie.

7 issues left for the package maintainer to handle:
  • CVE-2025-13763: (needs triaging) Multiple uses of uninitialized variables were found in libopensc that may lead to information disclosure or application crash. An attack requires a crafted USB device or smart card that would present the system with specially crafted responses to the APDUs
  • CVE-2025-49010: (needs triaging) OpenSC is an open source smart card tools and middleware. Prior to version 0.27.0, an attacker with physical access to the computer at the time user or administrator uses a token can cause a stack-buffer-overflow write in GET RESPONSE. The attack requires crafted USB device or smart card that would present the system with specially crafted responses to the APDUs. This issue has been patched in version 0.27.0.
  • CVE-2025-66037: (needs triaging) OpenSC is an open source smart card tools and middleware. Prior to version 0.27.0, feeding a crafted input to the fuzz_pkcs15_reader harness causes OpenSC to perform an out-of-bounds heap read in the X.509/SPKI handling path. Specifically, sc_pkcs15_pubkey_from_spki_fields() allocates a zero-length buffer and then reads one byte past the end of that allocation. This issue has been patched in version 0.27.0.
  • CVE-2025-66038: (needs triaging) OpenSC is an open source smart card tools and middleware. Prior to version 0.27.0, sc_compacttlv_find_tag searches a compact-TLV buffer for a given tag. In compact-TLV, a single byte encodes the tag (high nibble) and value length (low nibble). With a 1-byte buffer {0x0A}, the encoded element claims tag=0 and length=10 but no value bytes follow. Calling sc_compacttlv_find_tag with search tag 0x00 returns a pointer equal to buf+1 and outlen=10 without verifying that the claimed value length fits within the remaining buffer. In cases where the sc_compacttlv_find_tag is provided untrusted data (such as being read from cards/files), attackers may be able to influence it to return out-of-bounds pointers leading to downstream memory corruption when subsequent code tries to dereference the pointer. This issue has been patched in version 0.27.0.
  • CVE-2025-66215: (needs triaging) OpenSC is an open source smart card tools and middleware. Prior to version 0.27.0, an attacker with physical access to the computer at the time user or administrator uses a token can cause a stack-buffer-overflow WRITE in card-oberthur. The attack requires crafted USB device or smart card that would present the system with specially crafted responses to the APDUs. This issue has been patched in version 0.27.0.
  • CVE-2026-10275: (needs triaging) A flaw has been found in OpenSC up to 0.26.1. This affects the function test_kpgen_certwrite of the file src/tools/pkcs11-tool.c of the component pkcs11-tool Key Generation Module. This manipulation causes buffer overflow. The attack is possible to be carried out remotely. The complexity of an attack is rather high. It is indicated that the exploitability is difficult. The exploit has been published and may be used. Patch name: 814f745b3b6d100295f65f1935edd33d520d33ab. It is recommended to apply a patch to fix this issue.
  • CVE-2026-103531: (needs triaging) A flaw has been found in OpenSC up to 0.27.1. The impacted element is the function setcos_construct_fci_44 of the file src/libopensc/card-setcos.c. Executing a manipulation of the argument type_attr can lead to stack-based buffer overflow. The attack can be launched remotely. This patch is called ad730304052937c32b4eb489a06835ac6123632c. It is best practice to apply a patch to resolve this issue.

You can find information about how to handle these issues in the security team's documentation.

Created: 2026-03-31 Last update: 2026-10-05 05:00
Standards version of the package is outdated. wishlist
The package should be updated to follow the last version of Debian Policy (Standards-Version 4.7.4 instead of 4.7.0).
Created: 2021-08-18 Last update: 2026-10-05 03:21
testing migrations
  • This package will soon be part of the auto-openssl transition. You might want to ensure that your package is ready for it. You can probably find supplementary information in the debian-release archives or in the corresponding release.debian.org bug.
  • excuses:
    • Migration status for opensc (0.27.1-2 to 0.27.1-3): BLOCKED: Maybe temporary, maybe blocked but Britney is missing information (check below)
    • Issues preventing migration:
    • ∙ ∙ Missing build on riscv64
    • ∙ ∙ Autopkgtest deferred on riscv64: missing arch:riscv64 build
    • ∙ ∙ Autopkgtest for clevis/23-1: amd64: Pass, arm64: Test triggered, armhf: Pass, i386: Test triggered, ppc64el: Pass, s390x: Test triggered
    • ∙ ∙ Autopkgtest for hsmwiz/0.0.2-2: amd64: Pass, arm64: Test triggered, armhf: Pass, i386: Test triggered, ppc64el: Pass, s390x: Pass
    • ∙ ∙ Autopkgtest for libp11/0.4.20-1: amd64: Pass, arm64: Test triggered, armhf: Pass, i386: Test triggered, ppc64el: Pass, s390x: Pass
    • ∙ ∙ Autopkgtest for swugenerator/0.6-9: amd64: Pass, arm64: Test triggered, armhf: Pass, i386: Test triggered, ppc64el: Pass, s390x: Pass
    • ∙ ∙ Autopkgtest for systemd/262-1: amd64: Pass, arm64: Test triggered, armhf: Pass, i386: Test triggered, ppc64el: Pass, s390x: Pass
    • ∙ ∙ Lintian check waiting for test results on riscv64 - info
    • ∙ ∙ Too young, only 1 of 5 days old
    • Additional info (not blocking):
    • ∙ ∙ Piuparts tested OK - https://piuparts.debian.org/sid/source/o/opensc.html
    • ∙ ∙ Reproduced on amd64 - info
    • ∙ ∙ Reproduced on arm64 - info
    • ∙ ∙ Reproduced on armhf - info
    • ∙ ∙ Reproduced on i386 - info
    • Not considered
news
[rss feed]
  • [2026-10-04] Accepted opensc 0.27.1-3 (source) into unstable (Bastian Germann) (signed by: bage@debian.org)
  • [2026-06-13] opensc 0.27.1-2 MIGRATED to testing (Debian testing watch)
  • [2026-06-07] Accepted opensc 0.27.1-2 (source) into unstable (Bastian Germann) (signed by: bage@debian.org)
  • [2026-04-06] opensc 0.27.1-1 MIGRATED to testing (Debian testing watch)
  • [2026-03-31] Accepted opensc 0.27.1-1 (source) into unstable (Eric Dorland)
  • [2026-03-20] opensc 0.27.0~rc2-1 MIGRATED to testing (Debian testing watch)
  • [2026-03-15] Accepted opensc 0.27.0~rc2-1 (source) into unstable (Eric Dorland)
  • [2026-03-04] opensc 0.27.0~rc1-1 MIGRATED to testing (Debian testing watch)
  • [2026-02-27] Accepted opensc 0.27.0~rc1-1 (source) into unstable (Eric Dorland)
  • [2025-09-11] opensc 0.26.1-3 MIGRATED to testing (Debian testing watch)
  • [2025-09-05] Accepted opensc 0.26.1-3 (source) into unstable (Bastian Germann) (signed by: bage@debian.org)
  • [2025-06-11] opensc 0.26.1-2 MIGRATED to testing (Debian testing watch)
  • [2025-06-06] Accepted opensc 0.26.1-2 (source) into unstable (Bastian Germann) (signed by: bage@debian.org)
  • [2025-03-28] opensc 0.26.1-1 MIGRATED to testing (Debian testing watch)
  • [2025-03-22] Accepted opensc 0.26.1-1 (source) into unstable (Eric Dorland)
  • [2025-01-04] Accepted opensc 0.23.0-0.3+deb12u2 (source) into proposed-updates (Debian FTP Masters) (signed by: Guilhem Moulin)
  • [2024-12-28] Accepted opensc 0.21.0-1+deb11u1 (source) into oldstable-security (Guilhem Moulin)
  • [2024-12-28] opensc 0.26.0-1 MIGRATED to testing (Debian testing watch)
  • [2024-12-23] Accepted opensc 0.26.0-1 (source) into unstable (Bastian Germann) (signed by: bage@debian.org)
  • [2024-12-23] Accepted opensc 0.25.1-2.1 (source) into unstable (Guilhem Moulin) (signed by: bage@debian.org)
  • [2024-09-04] opensc 0.25.1-2 MIGRATED to testing (Debian testing watch)
  • [2024-08-29] Accepted opensc 0.25.1-2 (source) into unstable (Bastian Germann) (signed by: bage@debian.org)
  • [2024-07-09] opensc 0.25.1-1 MIGRATED to testing (Debian testing watch)
  • [2024-07-04] Accepted opensc 0.25.1-1 (source) into unstable (Bastian Germann) (signed by: bage@debian.org)
  • [2024-02-24] opensc 0.25.0~rc1-1 MIGRATED to testing (Debian testing watch)
  • [2024-02-18] Accepted opensc 0.25.0~rc1-1 (source) into unstable (Bastian Germann) (signed by: bage@debian.org)
  • [2023-12-02] Accepted opensc 0.23.0-0.3+deb12u1 (source) into proposed-updates (Debian FTP Masters) (signed by: bage@debian.org)
  • [2023-11-27] Accepted opensc 0.19.0-1+deb10u3 (source) into oldoldstable (Guilhem Moulin)
  • [2023-11-15] opensc 0.24.0~rc1-1 MIGRATED to testing (Debian testing watch)
  • [2023-11-10] Accepted opensc 0.24.0~rc1-1 (source) into unstable (Bastian Germann) (signed by: bage@debian.org)
  • 1
  • 2
bugs [bug history graph]
  • all: 17
  • RC: 0
  • I&N: 15
  • M&W: 2
  • F&P: 0
  • patch: 3
links
  • homepage
  • lintian (0, 3)
  • buildd: logs, reproducibility, cross
  • popcon
  • browse source code
  • other distros
  • security tracker
  • screenshots
  • debian patches
ubuntu Ubuntu logo [Information about Ubuntu for Debian Developers]
  • version: 0.27.1-2ubuntu2
  • 14 bugs (3 patches)
  • patches for 0.27.1-2ubuntu2

Debian Package Tracker — Copyright 2013-2025 The Distro Tracker Developers
Report problems to the tracker.debian.org pseudo-package in the Debian BTS.
Documentation — Bugs — Git Repository — Contributing