{"id":"CVE-2021-42781","published":"2022-04-18T00:00:00Z","modified":"2025-11-03T21:45:30Z","title":"Heap buffer overflow issues were found in Opensc before version 0.22.0 in pkcs15-oberthur.c that could potentially…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.02873,"percentile":0.8711,"provenance":"source"},"cwes":[{"id":"CWE-119","name":"Improper Restriction of Operations within the Bounds of a Memory Buffer"}],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2016439","tags":[]},{"url":"https://github.com/OpenSC/OpenSC/commit/17d8980c","tags":[]},{"url":"https://github.com/OpenSC/OpenSC/commit/40c50a3a","tags":[]},{"url":"https://github.com/OpenSC/OpenSC/commit/05648b06","tags":[]},{"url":"https://github.com/OpenSC/OpenSC/commit/5d4daf6c","tags":[]},{"url":"https://github.com/OpenSC/OpenSC/commit/cae5c71f","tags":[]},{"url":"https://security.gentoo.org/glsa/202209-03","tags":["vendor-advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/06/msg00025.html","tags":["mailing-list"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/12/msg00026.html","tags":[]}],"priority":{"score":17.4,"factors":[{"name":"EPSS percentile","points":17.42}]},"affectedVersions":[{"vendor":"n/a","product":"opensc","versions":["opensc 0.22.0"]}],"euvd":{"id":"EUVD-2021-29737","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-cve-2020-26570-family-cve-2020-26570","parents":[{"from":"CVE-2020-26570","to":"CVE-2021-42781","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/libopensc/pkcs15-oberthur.c"],"commits":["https://github.com/OpenSC/OpenSC/commit/6903aebfddc466d966c7b865fae34572bf3ed23e","https://github.com/OpenSC/OpenSC/commit/17d8980cde7be597afc366b7e311d0d7cadcb1f4","https://github.com/OpenSC/OpenSC/commit/40c50a3a4219308aae90f6efd7b10213794a8d86"],"basis":"shared function","functions":["sc_pkcs15_card"]}]},{"from":"CVE-2021-42779","to":"CVE-2021-42781","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/libopensc/pkcs15-oberthur.c"],"commits":["https://github.com/OpenSC/OpenSC/commit/1db88374bb7706a115d5c3617c6f16115c33bf27","https://github.com/OpenSC/OpenSC/commit/17d8980cde7be597afc366b7e311d0d7cadcb1f4","https://github.com/OpenSC/OpenSC/commit/40c50a3a4219308aae90f6efd7b10213794a8d86"],"basis":"shared function","functions":["sc_pkcs15_card"]}]}]}}