CVE-2021-42781
published 2022-04-18CVE-2021-42781: 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.
PriorityP427medium5.3CVSS 3.1
AVNACLPRNUINSUCNINAL
EPSS
2.80%
85.0th percentile
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
10 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | opensc | < opensc 0.22.0-1 (bookworm) | opensc 0.22.0-1 (bookworm) |
| fedoraproject | fedora | — | — |
| msrc | cbl2_opensc_0.22.0-1_on_cbl_mariner_2.0 | — | — |
| opensc_project | opensc | < 0.22.0 | 0.22.0 |
| opensc_project | opensc | — | — |
| opensc_project | opensc | >= 0 < 0.21.0-1+deb11u1 | 0.21.0-1+deb11u1 |
| opensc_project | opensc | >= 0 < 0.22.0-1 | 0.22.0-1 |
| opensc_project | opensc | >= 0 < 0.22.0-1 | 0.22.0-1 |
| opensc_project | opensc | >= 0 < 0.22.0-1 | 0.22.0-1 |
| redhat | enterprise_linux | — | — |
CVSS provenance
nvdv3.15.3MEDIUMCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
nvdv2.05.0MEDIUMAV:N/AC:L/Au:N/C:N/I:N/A:P
osv5.3MEDIUM
vendor_debian5.3MEDIUM
vendor_msrc5.3MEDIUM
vendor_redhat5.3MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
GHSA-93j9-4rqq-x6gr: Heap buffer overflow issues were found in Opensc before version 0
ghsa_unreviewed·2022-04-19
CVE-2021-42781 [MEDIUM] CWE-119 GHSA-93j9-4rqq-x6gr: Heap buffer overflow issues were found in Opensc before version 0
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.
OSV
CVE-2021-42781: Heap buffer overflow issues were found in Opensc before version 0
osv·2022-04-18·CVSS 5.3
CVE-2021-42781 [MEDIUM] CVE-2021-42781: Heap buffer overflow issues were found in Opensc before version 0
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.
Microsoft
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.
vendor_msrc·2022-04-12·CVSS 5.3
CVE-2021-42781 [MEDIUM] CWE-787 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.
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.
FAQ: Is Azure Linux the only Microsoft product that includes this open-source library and is therefore potentially affected by this vulnerability?
One of the main benefits to our customers who choose to use the Azure Linux distro is the commitment to keep it up to date with the most recent and most secure versions of the open source libraries with which the distro is composed. Microsoft is committed to transparency in this work which is why we began publishing CSAF/VEX in October 2025. See this blog post for more information. If impact to additional products is identified, we will update the CVE to reflect this.
Mariner: Mariner
redhat: red
Red Hat
opensc: Heap buffer overflow in pkcs15-oberthur.c
vendor_redhat·2021-03-18·CVSS 5.3
CVE-2021-42781 [MEDIUM] CWE-119 opensc: Heap buffer overflow in pkcs15-oberthur.c
opensc: Heap buffer overflow in pkcs15-oberthur.c
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.
Package: opensc (Red Hat Enterprise Linux 7) - Out of support scope
Package: opensc (Red Hat Enterprise Linux 8) - Fix deferred
Package: opensc (Red Hat Enterprise Linux 9) - Not affected
Debian
CVE-2021-42781: opensc - Heap buffer overflow issues were found in Opensc before version 0.22.0 in pkcs15...
vendor_debian·2021·CVSS 5.3
CVE-2021-42781 [MEDIUM] CVE-2021-42781: opensc - Heap buffer overflow issues were found in Opensc before version 0.22.0 in pkcs15...
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.
Scope: local
bookworm: resolved (fixed in 0.22.0-1)
bullseye: resolved (fixed in 0.21.0-1+deb11u1)
forky: resolved (fixed in 0.22.0-1)
sid: resolved (fixed in 0.22.0-1)
trixie: resolved (fixed in 0.22.0-1)
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://bugzilla.redhat.com/show_bug.cgi?id=2016439https://github.com/OpenSC/OpenSC/commit/05648b06https://github.com/OpenSC/OpenSC/commit/17d8980chttps://github.com/OpenSC/OpenSC/commit/40c50a3ahttps://github.com/OpenSC/OpenSC/commit/5d4daf6chttps://github.com/OpenSC/OpenSC/commit/cae5c71fhttps://lists.debian.org/debian-lts-announce/2023/06/msg00025.htmlhttps://security.gentoo.org/glsa/202209-03https://bugzilla.redhat.com/show_bug.cgi?id=2016439https://github.com/OpenSC/OpenSC/commit/05648b06https://github.com/OpenSC/OpenSC/commit/17d8980chttps://github.com/OpenSC/OpenSC/commit/40c50a3ahttps://github.com/OpenSC/OpenSC/commit/5d4daf6chttps://github.com/OpenSC/OpenSC/commit/cae5c71fhttps://lists.debian.org/debian-lts-announce/2023/06/msg00025.htmlhttps://lists.debian.org/debian-lts-announce/2024/12/msg00026.htmlhttps://security.gentoo.org/glsa/202209-03
2022-04-18
Published