Debian Package Tracker
Register | Log in
Subscribe

opencryptoki

PKCS#11 implementation (daemon)

Choose email to subscribe with

general
  • source: opencryptoki (main)
  • version: 3.23.0+dfsg-0.3
  • maintainer: Paulo Vital (DMD)
  • arch: any
  • std-ver: 4.6.2
  • VCS: unknown
versions [more versions can be listed by madison] [old versions available from snapshot.debian.org]
[pool directory]
  • o-o-stable: 3.8.1+dfsg-3.2
  • oldstable: 3.8.1+dfsg-3.2
  • stable: 3.23.0+dfsg-0.3
  • testing: 3.23.0+dfsg-0.3
  • unstable: 3.23.0+dfsg-0.3
versioned links
  • 3.8.1+dfsg-3.2: [.dsc, use dget on this link to retrieve source package] [changelog] [copyright] [rules] [control]
  • 3.23.0+dfsg-0.3: [.dsc, use dget on this link to retrieve source package] [changelog] [copyright] [rules] [control]
binaries
  • libopencryptoki-dev
  • libopencryptoki0
  • opencryptoki (2 bugs: 1, 1, 0, 0)
action needed
A new upstream version is available: 3.26.0 high
A new upstream version 3.26.0 is available, you should consider packaging it.
Created: 2025-11-27 Last update: 2026-04-25 16:30
2 security issues in trixie high

There are 2 open security issues in trixie.

1 important issue:
  • CVE-2026-40253: openCryptoki is a PKCS#11 library and provides tooling for Linux and AIX. In versions 3.26.0 and below, the BER/DER decoding functions in the shared common library (asn1.c) accept a raw pointer but no buffer length parameter, and trust attacker-controlled BER length fields without validating them against actual buffer boundaries. All primitive decoders are affected: ber_decode_INTEGER, ber_decode_SEQUENCE, ber_decode_OCTET_STRING, ber_decode_BIT_STRING, and ber_decode_CHOICE. Additionally, ber_decode_INTEGER can produce integer underflows when the encoded length is zero. An attacker supplying a malformed BER-encoded cryptographic object through PKCS#11 operations such as C_CreateObject or C_UnwrapKey, token loading from disk, or remote backend communication can trigger out-of-bounds reads. This affects all token backends (Soft, ICA, CCA, TPM, EP11, ICSF) since the vulnerable code is in the shared common library. A patch is available thorugh commit ed378f463ef73364c89feb0fc923f4dc867332a3.
1 issue left for the package maintainer to handle:
  • CVE-2026-23893: (needs triaging) openCryptoki is a PKCS#11 library and provides tooling for Linux and AIX. Versions 2.3.2 and above are vulnerable to symlink-following when running in privileged contexts. A token-group user can redirect file operations to arbitrary filesystem targets by planting symlinks in group-writable token directories, resulting in privilege escalation or data exposure. Token and lock directories are 0770 (group-writable for token users), so any token-group member can plant files and symlinks inside them. When run as root, the base code handling token directory file access, as well as several openCryptoki tools used for administrative purposes, may reset ownership or permissions on existing files inside the token directories. An attacker with token-group membership can exploit the system when an administrator runs a PKCS#11 application or administrative tool that performs chown on files inside the token directory during normal maintenance. This issue is fixed in commit 5e6e4b4, but has not been included in a released version at the time of publication.

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

Created: 2026-01-23 Last update: 2026-04-17 23:30
2 security issues in sid high

There are 2 open security issues in sid.

2 important issues:
  • CVE-2026-23893: openCryptoki is a PKCS#11 library and provides tooling for Linux and AIX. Versions 2.3.2 and above are vulnerable to symlink-following when running in privileged contexts. A token-group user can redirect file operations to arbitrary filesystem targets by planting symlinks in group-writable token directories, resulting in privilege escalation or data exposure. Token and lock directories are 0770 (group-writable for token users), so any token-group member can plant files and symlinks inside them. When run as root, the base code handling token directory file access, as well as several openCryptoki tools used for administrative purposes, may reset ownership or permissions on existing files inside the token directories. An attacker with token-group membership can exploit the system when an administrator runs a PKCS#11 application or administrative tool that performs chown on files inside the token directory during normal maintenance. This issue is fixed in commit 5e6e4b4, but has not been included in a released version at the time of publication.
  • CVE-2026-40253: openCryptoki is a PKCS#11 library and provides tooling for Linux and AIX. In versions 3.26.0 and below, the BER/DER decoding functions in the shared common library (asn1.c) accept a raw pointer but no buffer length parameter, and trust attacker-controlled BER length fields without validating them against actual buffer boundaries. All primitive decoders are affected: ber_decode_INTEGER, ber_decode_SEQUENCE, ber_decode_OCTET_STRING, ber_decode_BIT_STRING, and ber_decode_CHOICE. Additionally, ber_decode_INTEGER can produce integer underflows when the encoded length is zero. An attacker supplying a malformed BER-encoded cryptographic object through PKCS#11 operations such as C_CreateObject or C_UnwrapKey, token loading from disk, or remote backend communication can trigger out-of-bounds reads. This affects all token backends (Soft, ICA, CCA, TPM, EP11, ICSF) since the vulnerable code is in the shared common library. A patch is available thorugh commit ed378f463ef73364c89feb0fc923f4dc867332a3.
Created: 2026-01-23 Last update: 2026-04-17 23:30
2 security issues in forky high

There are 2 open security issues in forky.

2 important issues:
  • CVE-2026-23893: openCryptoki is a PKCS#11 library and provides tooling for Linux and AIX. Versions 2.3.2 and above are vulnerable to symlink-following when running in privileged contexts. A token-group user can redirect file operations to arbitrary filesystem targets by planting symlinks in group-writable token directories, resulting in privilege escalation or data exposure. Token and lock directories are 0770 (group-writable for token users), so any token-group member can plant files and symlinks inside them. When run as root, the base code handling token directory file access, as well as several openCryptoki tools used for administrative purposes, may reset ownership or permissions on existing files inside the token directories. An attacker with token-group membership can exploit the system when an administrator runs a PKCS#11 application or administrative tool that performs chown on files inside the token directory during normal maintenance. This issue is fixed in commit 5e6e4b4, but has not been included in a released version at the time of publication.
  • CVE-2026-40253: openCryptoki is a PKCS#11 library and provides tooling for Linux and AIX. In versions 3.26.0 and below, the BER/DER decoding functions in the shared common library (asn1.c) accept a raw pointer but no buffer length parameter, and trust attacker-controlled BER length fields without validating them against actual buffer boundaries. All primitive decoders are affected: ber_decode_INTEGER, ber_decode_SEQUENCE, ber_decode_OCTET_STRING, ber_decode_BIT_STRING, and ber_decode_CHOICE. Additionally, ber_decode_INTEGER can produce integer underflows when the encoded length is zero. An attacker supplying a malformed BER-encoded cryptographic object through PKCS#11 operations such as C_CreateObject or C_UnwrapKey, token loading from disk, or remote backend communication can trigger out-of-bounds reads. This affects all token backends (Soft, ICA, CCA, TPM, EP11, ICSF) since the vulnerable code is in the shared common library. A patch is available thorugh commit ed378f463ef73364c89feb0fc923f4dc867332a3.
Created: 2026-01-23 Last update: 2026-04-17 23:30
3 security issues in bookworm high

There are 3 open security issues in bookworm.

1 important issue:
  • CVE-2026-40253: openCryptoki is a PKCS#11 library and provides tooling for Linux and AIX. In versions 3.26.0 and below, the BER/DER decoding functions in the shared common library (asn1.c) accept a raw pointer but no buffer length parameter, and trust attacker-controlled BER length fields without validating them against actual buffer boundaries. All primitive decoders are affected: ber_decode_INTEGER, ber_decode_SEQUENCE, ber_decode_OCTET_STRING, ber_decode_BIT_STRING, and ber_decode_CHOICE. Additionally, ber_decode_INTEGER can produce integer underflows when the encoded length is zero. An attacker supplying a malformed BER-encoded cryptographic object through PKCS#11 operations such as C_CreateObject or C_UnwrapKey, token loading from disk, or remote backend communication can trigger out-of-bounds reads. This affects all token backends (Soft, ICA, CCA, TPM, EP11, ICSF) since the vulnerable code is in the shared common library. A patch is available thorugh commit ed378f463ef73364c89feb0fc923f4dc867332a3.
2 issues left for the package maintainer to handle:
  • CVE-2024-0914: (needs triaging) A timing side-channel vulnerability has been discovered in the opencryptoki package while processing RSA PKCS#1 v1.5 padded ciphertexts. This flaw could potentially enable unauthorized RSA ciphertext decryption or signing, even without access to the corresponding private key.
  • CVE-2026-23893: (needs triaging) openCryptoki is a PKCS#11 library and provides tooling for Linux and AIX. Versions 2.3.2 and above are vulnerable to symlink-following when running in privileged contexts. A token-group user can redirect file operations to arbitrary filesystem targets by planting symlinks in group-writable token directories, resulting in privilege escalation or data exposure. Token and lock directories are 0770 (group-writable for token users), so any token-group member can plant files and symlinks inside them. When run as root, the base code handling token directory file access, as well as several openCryptoki tools used for administrative purposes, may reset ownership or permissions on existing files inside the token directories. An attacker with token-group membership can exploit the system when an administrator runs a PKCS#11 application or administrative tool that performs chown on files inside the token directory during normal maintenance. This issue is fixed in commit 5e6e4b4, but has not been included in a released version at the time of publication.

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

Created: 2024-01-26 Last update: 2026-04-17 23:30
3 security issues in bullseye high

There are 3 open security issues in bullseye.

1 important issue:
  • CVE-2026-40253: openCryptoki is a PKCS#11 library and provides tooling for Linux and AIX. In versions 3.26.0 and below, the BER/DER decoding functions in the shared common library (asn1.c) accept a raw pointer but no buffer length parameter, and trust attacker-controlled BER length fields without validating them against actual buffer boundaries. All primitive decoders are affected: ber_decode_INTEGER, ber_decode_SEQUENCE, ber_decode_OCTET_STRING, ber_decode_BIT_STRING, and ber_decode_CHOICE. Additionally, ber_decode_INTEGER can produce integer underflows when the encoded length is zero. An attacker supplying a malformed BER-encoded cryptographic object through PKCS#11 operations such as C_CreateObject or C_UnwrapKey, token loading from disk, or remote backend communication can trigger out-of-bounds reads. This affects all token backends (Soft, ICA, CCA, TPM, EP11, ICSF) since the vulnerable code is in the shared common library. A patch is available thorugh commit ed378f463ef73364c89feb0fc923f4dc867332a3.
2 issues postponed or untriaged:
  • CVE-2024-0914: (needs triaging) A timing side-channel vulnerability has been discovered in the opencryptoki package while processing RSA PKCS#1 v1.5 padded ciphertexts. This flaw could potentially enable unauthorized RSA ciphertext decryption or signing, even without access to the corresponding private key.
  • CVE-2026-23893: (postponed; to be fixed through a stable update) openCryptoki is a PKCS#11 library and provides tooling for Linux and AIX. Versions 2.3.2 and above are vulnerable to symlink-following when running in privileged contexts. A token-group user can redirect file operations to arbitrary filesystem targets by planting symlinks in group-writable token directories, resulting in privilege escalation or data exposure. Token and lock directories are 0770 (group-writable for token users), so any token-group member can plant files and symlinks inside them. When run as root, the base code handling token directory file access, as well as several openCryptoki tools used for administrative purposes, may reset ownership or permissions on existing files inside the token directories. An attacker with token-group membership can exploit the system when an administrator runs a PKCS#11 application or administrative tool that performs chown on files inside the token directory during normal maintenance. This issue is fixed in commit 5e6e4b4, but has not been included in a released version at the time of publication.
Created: 2026-04-17 Last update: 2026-04-17 23:30
1 bug tagged patch in the BTS normal
The BTS contains patches fixing 1 bug, consider including or untagging them.
Created: 2026-04-06 Last update: 2026-04-25 17:00
Depends on packages which need a new maintainer normal
The packages that opencryptoki depends on which need a new maintainer are:
  • trousers (#1125431)
    • Depends: libtspi1
    • Build-Depends: libtspi-dev
Created: 2019-11-22 Last update: 2026-04-25 15:32
lintian reports 9 warnings normal
Lintian reports 9 warnings about this package. You should make the package lintian clean getting rid of them.
Created: 2024-07-20 Last update: 2026-03-18 05:00
debian/patches: 3 patches to forward upstream low

Among the 4 debian patches available in version 3.23.0+dfsg-0.3 of the package, we noticed the following issues:

  • 3 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: 2024-07-20 01:26
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.6.2).
Created: 2018-04-16 Last update: 2026-03-31 15:01
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.
news
[rss feed]
  • [2024-07-24] opencryptoki 3.23.0+dfsg-0.3 MIGRATED to testing (Debian testing watch)
  • [2024-07-19] Accepted opencryptoki 3.23.0+dfsg-0.3 (source) into unstable (Chris Hofstaedtler) (signed by: Christian Hofstaedtler)
  • [2024-06-20] Accepted opencryptoki 3.23.0+dfsg-0.2 (source) into unstable (Chris Hofstaedtler) (signed by: Christian Hofstaedtler)
  • [2024-06-20] Accepted opencryptoki 3.23.0+dfsg-0.1 (source) into unstable (Chris Hofstaedtler) (signed by: Christian Hofstaedtler)
  • [2021-07-12] opencryptoki 3.8.1+dfsg-3.2 MIGRATED to testing (Debian testing watch)
  • [2021-06-22] Accepted opencryptoki 3.8.1+dfsg-3.2 (source) into unstable (Laurent Bigonville)
  • [2018-09-01] opencryptoki 3.8.1+dfsg-3.1 MIGRATED to testing (Debian testing watch)
  • [2018-08-26] Accepted opencryptoki 3.8.1+dfsg-3.1 (source) into unstable (Adrian Bunk)
  • [2017-11-10] opencryptoki 3.8.1+dfsg-3 MIGRATED to testing (Debian testing watch)
  • [2017-11-09] Accepted opencryptoki 3.8.1+dfsg-3 (source) into unstable (Paulo Vital) (signed by: Adam Borowski)
  • [2017-11-09] opencryptoki 3.8.1+dfsg-2 MIGRATED to testing (Debian testing watch)
  • [2017-11-04] Accepted opencryptoki 3.8.1+dfsg-2 (source) into unstable (Paulo Vital) (signed by: Adam Borowski)
  • [2017-11-02] Accepted opencryptoki 3.8.1+dfsg-1 (source) into unstable (Paulo Vital) (signed by: Adam Borowski)
  • [2017-07-05] opencryptoki 3.7.0+dfsg-4 MIGRATED to testing (Debian testing watch)
  • [2017-06-30] Accepted opencryptoki 3.7.0+dfsg-4 (source) into unstable (Paulo Vital) (signed by: Adrian Bunk)
  • [2017-06-27] opencryptoki 3.7.0+dfsg-3 MIGRATED to testing (Debian testing watch)
  • [2017-06-21] Accepted opencryptoki 3.7.0+dfsg-3 (source) into unstable (Paulo Vital) (signed by: Adam Borowski)
  • [2017-06-20] opencryptoki 3.6.1+dfsg-2 MIGRATED to testing (Debian testing watch)
  • [2017-06-19] Accepted opencryptoki 3.7.0+dfsg-2 (source) into unstable (Paulo Vital) (signed by: Gianfranco Costamagna)
  • [2017-06-06] Accepted opencryptoki 3.6.1+dfsg-2 (source) into unstable (Paulo Vital) (signed by: Breno Leitao)
  • [2017-03-20] Accepted opencryptoki 3.6.2+dfsg-2 (source) into experimental (Paulo Vital) (signed by: Breno Leitao)
  • [2017-02-21] Accepted opencryptoki 3.6.2+dfsg-1 (source) into experimental (Dimitri John Ledkov)
  • [2017-01-14] opencryptoki 3.6.1+dfsg-1 MIGRATED to testing (Debian testing watch)
  • [2017-01-03] Accepted opencryptoki 3.6.1+dfsg-1 (source) into unstable (Dimitri John Ledkov)
  • [2016-12-14] Accepted opencryptoki 3.6+dfsg-2 (source) into experimental (Dimitri John Ledkov)
  • [2016-11-28] Accepted opencryptoki 3.6+dfsg-1 (source) into experimental (Dimitri John Ledkov)
  • [2016-11-27] opencryptoki 3.5+dfsg-2 MIGRATED to testing (Debian testing watch)
  • [2016-11-11] opencryptoki REMOVED from testing (Debian testing watch)
  • [2016-08-22] opencryptoki 3.5+dfsg-2 MIGRATED to testing (Debian testing watch)
  • [2016-08-16] Accepted opencryptoki 3.5+dfsg-2 (source) into unstable (Dimitri John Ledkov)
  • 1
  • 2
bugs [bug history graph]
  • all: 4
  • RC: 1
  • I&N: 3
  • M&W: 0
  • F&P: 0
  • patch: 1
links
  • homepage
  • lintian (0, 9)
  • buildd: logs, reproducibility, cross
  • popcon
  • browse source code
  • other distros
  • security tracker
  • debian patches
ubuntu Ubuntu logo [Information about Ubuntu for Debian Developers]
  • version: 3.26.0+dfsg-0ubuntu1
  • 7 bugs (1 patch)
  • patches for 3.26.0+dfsg-0ubuntu1

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