REDHAT-BUG-2431909: Medium severity Opencryptoki opencryptoki vulnerability
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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Patch 5e6e4b4
Event History
Frequently Asked Questions
What is the severity of REDHAT-BUG-2431909?
The severity of REDHAT-BUG-2431909 is rated as medium with a score of 4.
How do I fix REDHAT-BUG-2431909?
To fix REDHAT-BUG-2431909, upgrade to a version of Opencryptoki that is not affected by the symlink-following vulnerability.
What versions are affected by REDHAT-BUG-2431909?
Versions 2.3.2 and above of Opencryptoki are vulnerable to the symlink-following issue.
What type of vulnerability is REDHAT-BUG-2431909?
REDHAT-BUG-2431909 is a symlink-following vulnerability that can be exploited in privileged contexts.
Who is impacted by REDHAT-BUG-2431909?
Token-group users operating within environments using Opencryptoki may be impacted by REDHAT-BUG-2431909.