# CVE-2021-42779: A heap use after free issue was found in Opensc before version 0.22.0 in scfilevalid.

- 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.08%, higher than 82% of CVEs (2026-12-01)
- Published: 2022-04-18T00:00:00.000Z
- Modified: 2026-06-17T04:10:07.977Z
- Weaknesses: CWE-416
- Assigned by: redhat

## Description

A heap use after free issue was found in Opensc before version 0.22.0 in sc_file_valid.

(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; 8.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=28843> (issue-tracking, mailing-list, patch, third-party-advisory)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2016086> (issue-tracking, patch, third-party-advisory)
- <https://github.com/OpenSC/OpenSC/commit/1db88374> (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-42779](https://www.cve.org/CVERecord?id=CVE-2021-42779), CVE Terms of Use, modified 2025-11-03
- NVD: [CVE-2021-42779](https://nvd.nist.gov/vuln/detail/CVE-2021-42779), Public domain, modified 2026-06-17

---

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