{"id":"CVE-2021-42782","published":"2022-04-18T00:00:00Z","modified":"2025-11-03T21:45:32Z","title":"Stack buffer overflow issues were found in Opensc before version 0.22.0 in various places that could potentially crash…","vendor":null,"product":null,"tier":"tail","description":{"text":"Stack buffer overflow issues were found in Opensc before version 0.22.0 in various places that could potentially crash programs using the library.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.02782,"percentile":0.86741,"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=2016448","tags":[]},{"url":"https://github.com/OpenSC/OpenSC/commit/78cdab94","tags":[]},{"url":"https://github.com/OpenSC/OpenSC/commit/7114fb71","tags":[]},{"url":"https://github.com/OpenSC/OpenSC/commit/1252aca9","tags":[]},{"url":"https://github.com/OpenSC/OpenSC/commit/ae1cf0be","tags":[]},{"url":"https://github.com/OpenSC/OpenSC/commit/456ac566","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.3,"factors":[{"name":"EPSS percentile","points":17.35}]},"affectedVersions":[{"vendor":"n/a","product":"opensc","versions":["opensc 0.22.0"]}],"euvd":{"id":"EUVD-2021-29738","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-opensc-cve-2018-16426","parents":[{"from":"CVE-2018-16427","to":"CVE-2021-42782","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/libopensc/pkcs15-tcos.c"],"commits":["https://github.com/OpenSC/OpenSC/commit/8fe377e93b4b56060e5bbfb6f3142ceaeca744fa","https://github.com/OpenSC/OpenSC/commit/78cdab949f098ad7e593d853229fccf57d749d0c","https://github.com/OpenSC/OpenSC/commit/7114fb71b54ddfe06ce5dfdab013f4c38f129d14"],"basis":"shared function","functions":["insert_key"]}]},{"from":"CVE-2021-42780","to":"CVE-2021-42782","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/libopensc/pkcs15-tcos.c"],"commits":["https://github.com/OpenSC/OpenSC/commit/5df913b7f57ad89b9832555d24c08d23a534311e","https://github.com/OpenSC/OpenSC/commit/78cdab949f098ad7e593d853229fccf57d749d0c","https://github.com/OpenSC/OpenSC/commit/7114fb71b54ddfe06ce5dfdab013f4c38f129d14"],"basis":"rarely changed file"}]}]}}