Vulnerability · Published Apr 18, 2022 · Assigned by redhat
CVE-2021-42781
Medium 5.3
In plain English
A medium-severity memory corruption in opensc. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.9% (higher than 87% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS NVD)5.3Medium
Exploit odds (30 days)2.9%top 13.1% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official description
Heap buffer overflow issues were found in Opensc before version 0.22.0 in pkcs15-oberthur.c that could potentially crash programs using the library.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | opensc | 0.22.0-1 | DEBIAN-CVE-2021-42781 |
| Debian:13 | opensc | 0.22.0-1 | DEBIAN-CVE-2021-42781 |
| Debian:14 | opensc | 0.22.0-1 | DEBIAN-CVE-2021-42781 |
Affected products (as reported)
Weakness: CWE-119
References
- https://bugzilla.redhat.com/show_bug.cgi?id=2016439
- https://github.com/OpenSC/OpenSC/commit/17d8980c
- https://github.com/OpenSC/OpenSC/commit/40c50a3a
- https://github.com/OpenSC/OpenSC/commit/05648b06
- https://github.com/OpenSC/OpenSC/commit/5d4daf6c
- https://github.com/OpenSC/OpenSC/commit/cae5c71f
- GLSA-202209-03 vendor-advisory
- [debian-lts-announce] 20230621 [SECURITY] [DLA 3463-1] opensc security update mailing-list
- https://lists.debian.org/debian-lts-announce/2024/12/msg00026.html