CVE-2012-4454: Low severity Opencryptoki Project Opencryptoki vulnerability

Published Aug 15, 2011
·
Updated

openCryptoki before 2.4.1, when using spinlocks, allows local users to create or set world-writable permissions on arbitrary files via a symlink attack on the (1) .pkapixpk or (2) .pkcs11spinloc file in /tmp.

Other sources

opencryptoki, when compiled with -DSPINXPL (as it is in Red Hat Enterprise Linux and Fedora), creates certain dot files in the /tmp directory, such as .pkapixpk and .pkcs11spinloc. These are not temporary files and are rather used for locking purposes. They are created in a way that allows symlink attacks.

As files are opened RDWR, and not written to, they don't seem to allow file corruption as typical symlink attacks do. It is still possible to create new files at arbitrary locations (e.g. /etc/nologin) or make arbitrary file world writable (e.g. /etc/shadow) with the privileges of the user running pkcsslotd or an application using opencrpytoki library. Attacker does not need to be a member of the pkcs11 group, though symlinks would usually need to be created before the first use of the opencryptoki on the system.

Affected Software

12 affected components
Opencryptoki Project Opencryptoki<=2.4
Opencryptoki Project Opencryptoki=2.2.3
Opencryptoki Project Opencryptoki=2.2.4
Opencryptoki Project Opencryptoki=2.2.4.1
Opencryptoki Project Opencryptoki=2.2.5
Opencryptoki Project Opencryptoki=2.2.6
Opencryptoki Project Opencryptoki=2.2.7
Opencryptoki Project Opencryptoki=2.2.8
Opencryptoki Project Opencryptoki=2.3.0
Opencryptoki Project Opencryptoki=2.3.1
Opencryptoki Project Opencryptoki=2.3.2
Opencryptoki Project Opencryptoki=2.3.3

Event History

Aug 15, 2011
Data Sourced
07:41 AM
DescriptionSeverityAffected Software
Oct 10, 2012
CVE Published
via MITRE·06:00 PM
Data Sourced
via MITRE·06:00 PM
Description

Frequently Asked Questions

1

What is the severity of CVE-2012-4454?

CVE-2012-4454 has a severity rating of medium due to its exploitation potential through symbolic link attacks.

2

How do I fix CVE-2012-4454?

To fix CVE-2012-4454, update to the latest version of Opencryptoki that addresses this vulnerability.

3

What versions of Opencryptoki are affected by CVE-2012-4454?

CVE-2012-4454 affects all Opencryptoki versions up to and including 2.4.

4

Can CVE-2012-4454 be exploited remotely?

CVE-2012-4454 requires local access to the vulnerable system for exploitation.

5

What is the nature of the vulnerability in CVE-2012-4454?

CVE-2012-4454 involves improper handling of lock files in the /tmp directory, allowing for potential symlink attacks.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203