# CVE-2021-42781

- 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: DEBIAN-CVE-2021-42781
- Record: https://cvemate.com/vulnerability/CVE-2021-42781 · JSON: https://cvemate.com/vulnerability/CVE-2021-42781/json

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

## 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.873%, percentile 87.265%, 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
- fedoraproject fedora: 33
- opensc\_project opensc: \< 0.22.0
- redhat enterprise\_linux: 7.0

## References

- <https://bugzilla.redhat.com/show_bug.cgi?id=2016439>
- <https://github.com/OpenSC/OpenSC/commit/17d8980c>
- <https://github.com/OpenSC/OpenSC/commit/40c50a3a>
- <https://github.com/OpenSC/OpenSC/commit/05648b06>
- <https://github.com/OpenSC/OpenSC/commit/5d4daf6c>
- <https://github.com/OpenSC/OpenSC/commit/cae5c71f>
- <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://security-tracker.debian.org/tracker/CVE-2021-42781>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-42781>

---

Data as of 2026-12-05T13:42:51.961Z. 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
