Stack buffer overflow issues were found in Opensc before version 0.22.0 in various places that could potentially crash programs using the library.
https://security.gentoo.org/glsa/202209-03
https://lists.debian.org/debian-lts-announce/2023/06/msg00025.html
https://github.com/OpenSC/OpenSC/commit/ae1cf0be
https://github.com/OpenSC/OpenSC/commit/78cdab94
https://github.com/OpenSC/OpenSC/commit/7114fb71
https://github.com/OpenSC/OpenSC/commit/456ac566