Vulnerability identifier: #VU45486
Vulnerability risk: High
CVSSv3.1: 7.3 [CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C]
CVE-ID:
CWE-ID:
CWE-121
Exploitation vector: Local
Exploit availability: No
Vulnerable software:
OpenSC
Universal components / Libraries /
Libraries used by multiple products
Vendor: OpenSC
Description
The vulnerability allows a remote attacker to execute arbitrary code on the target system.
The vulnerability exists due to a boundary error when processing a long serial-number field on a smart card, related to (1) card-acos5.c, (2) card-atrust-acos.c, and (3) card-starcos.c. A remote unauthenticated attacker can trigger stack-based buffer overflow and execute arbitrary code on the target system.
Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.
Mitigation
Install update from vendor's website.
Vulnerable software versions
OpenSC: 0.3.2 - 0.11.12
External links
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=607427
http://labs.mwrinfosecurity.com/files/Advisories/mwri_opensc-get-serial-buffer-overflow_2010-12-13.pdf
http://lists.fedoraproject.org/pipermail/package-announce/2011-January/052777.html
http://lists.fedoraproject.org/pipermail/package-announce/2011-January/052796.html
http://lists.opensuse.org/opensuse-security-announce/2011-01/msg00006.html
http://openwall.com/lists/oss-security/2010/12/21/2
http://openwall.com/lists/oss-security/2010/12/22/3
http://secunia.com/advisories/42658
http://secunia.com/advisories/42807
http://secunia.com/advisories/43068
http://www.h-online.com/open/news/item/When-a-smart-card-can-root-your-computer-1154829.html
http://www.mandriva.com/security/advisories?name=MDVSA-2011:011
http://www.securityfocus.com/bid/45435
http://www.vupen.com/english/advisories/2011/0009
http://www.vupen.com/english/advisories/2011/0109
http://www.vupen.com/english/advisories/2011/0212
http://bugs.launchpad.net/ubuntu/+source/opensc/+bug/692483
http://bugzilla.redhat.com/show_bug.cgi?id=664831
http://www.opensc-project.org/opensc/changeset/4913
Can this vulnerability be exploited remotely?
No. This vulnerability can be exploited locally. The attacker should have authentication credentials and successfully authenticate on the system.
Is there known malware, which exploits this vulnerability?
No. We are not aware of malware exploiting this vulnerability.