Descriptionsrc/tools/pkcs11-tool.c in pkcs11-tool in OpenSC 0.11.7, when used with unspecified third-party PKCS#11 modules, generates RSA keys with incorrect public exponents, which allows attackers to read the cleartext form of messages that were intended to be encrypted.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, bugtraq, EDB, Metasploit, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, Mageia, GitHub code/issues, web search, more)
NVD severitymedium
Debian Bugs527640

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
opensc (PTS)stretch0.16.0-3+deb9u1fixed
bookworm, sid0.22.0-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
openscsourceetch(not affected)
openscsourcelenny(not affected)


[etch] - opensc <not-affected> (vulnerable code introduced in 0.11.7)
[lenny] - opensc <not-affected> (vulnerable code introduced in 0.11.7)
checked code, public exponent set correctly in etch/lenny versions (CK_BYTE publicExponent[] = { 3 };)

Search for package or bug name: Reporting problems