# CVE-2021-42780

- Priority: **Routine**
- Reason: Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2022-04-18 · Modified: 2025-11-03
- Aliases: UBUNTU-CVE-2021-42780, DEBIAN-CVE-2021-42780
- Record: https://cvemate.com/vulnerability/CVE-2021-42780 · JSON: https://cvemate.com/vulnerability/CVE-2021-42780/json

## Description

```text
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.
```

## Signals

- CVSS: 5.3 medium (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- EPSS: 2.161%, percentile 82.827%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian opensc (Debian): \< 0.22.0-1
- ubuntu opensc (Ubuntu): \< 0.15.0-1ubuntu1+esm2 \| \< 0.17.0-3ubuntu0.1~esm2 \| \< 0.20.0-3ubuntu0.1~esm4
- fedoraproject fedora: 33
- opensc\_project opensc: \< 0.22.0
- redhat enterprise\_linux: 7.0

## References

- <https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=28383>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2016139>
- <https://github.com/OpenSC/OpenSC/commit/5df913b7>
- <https://security.gentoo.org/glsa/202209-03>
- <https://lists.debian.org/debian-lts-announce/2023/06/msg00025.html>
- <https://lists.debian.org/debian-lts-announce/2024/12/msg00026.html>
- <https://ubuntu.com/security/CVE-2021-42780>
- <https://access.redhat.com/security/cve/CVE-2021-42780>
- <https://www.cve.org/CVERecord?id=CVE-2021-42780>
- <https://ubuntu.com/security/notices/USN-7346-1>
- <https://ubuntu.com/security/notices/USN-7346-3>
- <https://security-tracker.debian.org/tracker/CVE-2021-42780>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-42780>

---

Data as of 2026-12-05T13:42:41.034Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
