# CVE-2021-42782

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

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

## 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.782%, percentile 86.845%, 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): All versions (No fix recorded) \| \< 0.20.0-3ubuntu0.1~esm4
- fedoraproject fedora: 33
- opensc\_project opensc: \< 0.22.0

## References

- <https://bugzilla.redhat.com/show_bug.cgi?id=2016448>
- <https://github.com/OpenSC/OpenSC/commit/78cdab94>
- <https://github.com/OpenSC/OpenSC/commit/7114fb71>
- <https://github.com/OpenSC/OpenSC/commit/1252aca9>
- <https://github.com/OpenSC/OpenSC/commit/ae1cf0be>
- <https://github.com/OpenSC/OpenSC/commit/456ac566>
- <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-42782>
- <https://access.redhat.com/security/cve/CVE-2021-42782>
- <https://www.cve.org/CVERecord?id=CVE-2021-42782>
- <https://ubuntu.com/security/notices/USN-7346-1>
- <https://ubuntu.com/security/notices/USN-7346-3>
- <https://security-tracker.debian.org/tracker/CVE-2021-42782>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-42782>

---

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