Skip to content

CVE-2026-23893 openCryptoki has improper link resolution before file access (link following)

MediumCVSS 6.8 EPSS 0.19%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: total
Technology
UbuntuDebianRed Hat

Description

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.

Upgrade path

16 packages: 11 fixed, 4 with no fix yet.

PackageAffectedFixed inStatus
debian/opencryptoki(Debian 12) = 3.8.1+dfsg-3.2; = 3.23.0+dfsg-0.1; = 3.23.0+dfsg-0.2; = 3.23.0+dfsg-0.3 +3 more No fix listed No fix yet
opencryptoki project opencryptoki >= 2.3.2 No fix listed No fix yet
redhat/opencryptoki(Red Hat rhel_els 6) All versions No fix listed No fix yet
redhat/opencryptoki(Red Hat rhel_els 7) All versions No fix listed No fix yet
debian/opencryptoki(Debian 13) < 3.23.0+dfsg-0.3+deb13u1; = 3.23.0+dfsg-0.3 3.23.0+dfsg-0.3+deb13u1 Fixed
debian/opencryptoki(Debian 14) < 3.27.0-1; = 3.23.0+dfsg-0.3; = 3.23.0+dfsg-0.4 3.27.0-1 Fixed
redhat/opencryptoki(Red Hat enterprise_linux 10.1) < 3.25.0-5.el10_1.2 3.25.0-5.el10_1.2 Fixed
redhat/opencryptoki(Red Hat enterprise_linux 8) < 3.22.0-3.el8_10.2 3.22.0-3.el8_10.2 Fixed
redhat/opencryptoki(Red Hat enterprise_linux 9) < 3.25.0-4.el9_7.2 3.25.0-4.el9_7.2 Fixed
redhat/opencryptoki(Red Hat enterprise_linux_eus 10.0) < 3.24.0-6.el10_0.1 3.24.0-6.el10_0.1 Fixed
redhat/opencryptoki(Red Hat rhel_eus 9.4) < 3.22.0-3.el9_4.2 3.22.0-3.el9_4.2 Fixed
redhat/opencryptoki(Red Hat rhel_eus 9.6) < 3.24.0-5.el9_6.1 3.24.0-5.el9_6.1 Fixed
ubuntu/opencryptoki(Ubuntu 22.04) < 3.17.0+dfsg+20220202.b40982e-0ubuntu1.3 3.17.0+dfsg+20220202.b40982e-0ubuntu1.3 Fixed
ubuntu/opencryptoki(Ubuntu 24.04) < 3.23.0+dfsg-0ubuntu3.1 3.23.0+dfsg-0ubuntu3.1 Fixed
ubuntu/opencryptoki(Ubuntu 26.04) < 3.26.0+dfsg-0ubuntu1.1 3.26.0+dfsg-0ubuntu1.1 Fixed
opencryptoki = >= 2.3.2 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
opencryptoki = >= 2.3.2 No fix listed
debian/opencryptoki(Debian:12) All versions No fix listed
debian/opencryptoki(Debian:12) = 3.23.0+dfsg-0.1 No fix listed
debian/opencryptoki(Debian:12) = 3.23.0+dfsg-0.2 No fix listed
debian/opencryptoki(Debian:12) = 3.23.0+dfsg-0.3 No fix listed
debian/opencryptoki(Debian:12) = 3.23.0+dfsg-0.4 No fix listed
debian/opencryptoki(Debian:12) = 3.27.0-1 No fix listed
debian/opencryptoki(Debian:12) = 3.8.1+dfsg-3.2 No fix listed
debian/opencryptoki(Debian:13) < 3.23.0+dfsg-0.3+deb13u1 3.23.0+dfsg-0.3+deb13u1
debian/opencryptoki(Debian:13) = 3.23.0+dfsg-0.3 No fix listed
debian/opencryptoki(Debian:14) < 3.27.0-1 3.27.0-1
debian/opencryptoki(Debian:14) = 3.23.0+dfsg-0.3 No fix listed
debian/opencryptoki(Debian:14) = 3.23.0+dfsg-0.4 No fix listed
ubuntu/opencryptoki(Ubuntu:22.04) < 3.17.0+dfsg+20220202.b40982e-0ubuntu1.3 3.17.0+dfsg+20220202.b40982e-0ubuntu1.3
redhat/opencryptoki(Red Hat:enterprise_linux:10.1) < 3.25.0-5.el10_1.2 3.25.0-5.el10_1.2
redhat/opencryptoki(Red Hat:enterprise_linux_eus:10.0) < 3.24.0-6.el10_0.1 3.24.0-6.el10_0.1
redhat/opencryptoki(Red Hat:enterprise_linux:8) < 3.22.0-3.el8_10.2 3.22.0-3.el8_10.2
redhat/opencryptoki(Red Hat:enterprise_linux:9) < 3.25.0-4.el9_7.2 3.25.0-4.el9_7.2
redhat/opencryptoki(Red Hat:rhel_eus:9.4) < 3.22.0-3.el9_4.2 3.22.0-3.el9_4.2
redhat/opencryptoki(Red Hat:rhel_eus:9.6) < 3.24.0-5.el9_6.1 3.24.0-5.el9_6.1
redhat/opencryptoki(Red Hat:rhel_els:6) All versions No fix listed
redhat/opencryptoki(Red Hat:rhel_els:7) All versions No fix listed
ubuntu/opencryptoki(Ubuntu:24.04) < 3.23.0+dfsg-0ubuntu3.1 3.23.0+dfsg-0ubuntu3.1
ubuntu/opencryptoki(Ubuntu:26.04) < 3.26.0+dfsg-0ubuntu1.1 3.26.0+dfsg-0ubuntu1.1
opencryptoki project opencryptoki >= 2.3.2 No fix listed

References