# CVE-2021-42780: A use after return issue was found in Opensc before version 0.22.0 in insertpin function that could potentially crash programs using the li…

- Severity: Medium 5.3 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.16%, higher than 82% of CVEs (2026-12-01)
- Published: 2022-04-18T00:00:00.000Z
- Modified: 2026-06-17T04:10:08.090Z
- Weaknesses: CWE-252
- Assigned by: redhat

## Description

A use after return issue was found in Opensc before version 0.22.0 in insert_pin function that could potentially crash programs using the library.

(As written by CVE List.)

## Affected

- opensc: opensc 0.22.0
- opensc_project opensc: before 0.22.0
- fedoraproject fedora: 33
- redhat enterprise_linux: 7.0

## Every score

- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`

## References

- <https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=28383> (issue-tracking, mailing-list, patch, third-party-advisory)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2016139> (issue-tracking, patch, third-party-advisory)
- <https://github.com/OpenSC/OpenSC/commit/5df913b7> (patch, third-party-advisory)
- <https://security.gentoo.org/glsa/202209-03> (third-party-advisory, vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2023/06/msg00025.html> (mailing-list)
- <https://lists.debian.org/debian-lts-announce/2024/12/msg00026.html>

## Sources

- CVE List: [CVE-2021-42780](https://www.cve.org/CVERecord?id=CVE-2021-42780), CVE Terms of Use, modified 2025-11-03
- NVD: [CVE-2021-42780](https://nvd.nist.gov/vuln/detail/CVE-2021-42780), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-42780 · Whole record: https://cve.day/CVE-2021-42780.json · Rebuilt by cve.day 2026-11-25T22:58:07.391Z
